Skip to content

Commit

Permalink
lints
Browse files Browse the repository at this point in the history
  • Loading branch information
gangov committed Jul 29, 2024
1 parent d664c9b commit e58fe28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions contracts/pool_stable/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ pub fn compute_swap(

let greatest_precision = get_greatest_precision(env);

soroban_sdk::testutils::arbitrary::std::dbg!("DBG");
// soroban_sdk::testutils::arbitrary::std::dbg!("DBG");
let new_ask_pool = calc_y(
env,
amp as u128,
Expand All @@ -974,7 +974,7 @@ pub fn compute_swap(
greatest_precision,
);

soroban_sdk::testutils::arbitrary::std::dbg!("SWAP", ask_pool, new_ask_pool);
// soroban_sdk::testutils::arbitrary::std::dbg!("SWAP", ask_pool, new_ask_pool);

let return_amount = ask_pool - new_ask_pool;
// We consider swap rate 1:1 in stable swap thus any difference is considered as spread.
Expand Down Expand Up @@ -1030,7 +1030,7 @@ pub fn compute_offer_amount(
],
greatest_precision,
);
soroban_sdk::testutils::arbitrary::std::dbg!("REVERSE SWAP", new_offer_pool, offer_pool);
// soroban_sdk::testutils::arbitrary::std::dbg!("REVERSE SWAP", new_offer_pool, offer_pool);

let offer_amount = new_offer_pool - offer_pool;

Expand Down
4 changes: 2 additions & 2 deletions contracts/pool_stable/src/tests/swap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ fn simple_swap_with_two_tokens_both_with_7_decimals() {

token1.mint(&user, &1_100);
token2.mint(&user, &1_100);
pool.provide_liquidity(&user, &1_000, &1_000, &None, &None::<u64>);
pool.provide_liquidity(&user, &1_000, &1_000, &None, &None::<u64>, &None);

let spread = 100i64; // 1% maximum spread allowed
pool.simulate_reverse_swap(&token1.address, &1);
Expand Down Expand Up @@ -653,7 +653,7 @@ fn simple_swap_with_tokens_with_6_8_decimals() {

token1.mint(&user, &1_100);
token2.mint(&user, &1_100);
pool.provide_liquidity(&user, &1_000, &1_000, &None, &None::<u64>);
pool.provide_liquidity(&user, &1_000, &1_000, &None, &None::<u64>, &None);

let spread = 100i64; // 1% maximum spread allowed
pool.swap(
Expand Down

0 comments on commit e58fe28

Please sign in to comment.