From 324004cfd6572780731cc769063ca4a5aca4cf02 Mon Sep 17 00:00:00 2001 From: Georgios Konstantopoulos Date: Mon, 23 May 2022 14:19:17 -0700 Subject: [PATCH] chore: fmt --- examples/remove_liquidity.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/remove_liquidity.rs b/examples/remove_liquidity.rs index aa2b6c9a..ab4ceab9 100644 --- a/examples/remove_liquidity.rs +++ b/examples/remove_liquidity.rs @@ -50,8 +50,8 @@ async fn main() -> Result<()> { println!("Reserves (token A, Token B): ({}, {})", reserve0, reserve1); let price = - if reserve0 > reserve1 { 1000 * reserve0 / reserve1 } else { 1000 * reserve1 / reserve0 } - / 1000; + if reserve0 > reserve1 { 1000 * reserve0 / reserve1 } else { 1000 * reserve1 / reserve0 } / + 1000; println!("token0 / token1 price = {}", price); let liquidity = 100.into();