bug fixes

This commit is contained in:
akildemir
2024-10-18 09:50:49 +03:00
parent a116bdfea2
commit be46ac3ee1
4 changed files with 24 additions and 26 deletions

View File

@@ -1157,10 +1157,10 @@ fn swap_exact_tokens_for_tokens_in_multi_hops() {
));
// burn half of the taken fees
let burn_amount = get_burn_amount(liquidity2);
let burn_amount = get_burn_amount(input_amount);
liquidity2 -= burn_amount;
let burn_amount = get_burn_amount(liquidity1_pool2);
let burn_amount = get_burn_amount(expect_out2);
liquidity1_pool2 -= burn_amount;
let pool_id1 = Dex::get_pool_id(coin1, coin2).unwrap();