chore: fmt

This commit is contained in:
Georgios Konstantopoulos 2022-05-23 14:19:17 -07:00
parent dc107ce892
commit 324004cfd6
1 changed files with 2 additions and 2 deletions

View File

@ -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();