diff --git a/amm/drink-tests/src/router_v2_tests.rs b/amm/drink-tests/src/router_v2_tests.rs index fe291f9..7a9252a 100644 --- a/amm/drink-tests/src/router_v2_tests.rs +++ b/amm/drink-tests/src/router_v2_tests.rs @@ -41,7 +41,7 @@ fn setup_router( fn test_cache_stable_pool(mut session: Session) { upload_all(&mut session); - // Fix timestamp. Otherwise underlying UNIX clock is used. + // Fix timestamp. Otherwise, underlying UNIX clock is used. let now = get_timestamp(&mut session); set_timestamp(&mut session, now); @@ -158,7 +158,6 @@ fn test_cache_stable_pool_with_add_liquidity(mut session: Session) { 1, initial_reserves.clone(), bob(), - false, 0, BOB, ) @@ -1012,7 +1011,6 @@ fn test_stable_pool_liqudity(mut session: Session) { 1, initial_reserves.clone(), bob(), - false, 0, BOB, ) @@ -1036,7 +1034,6 @@ fn test_stable_pool_liqudity(mut session: Session) { max_share, to_withdraw, bob(), - false, BOB, ) .expect("Should successfully add liquidity"); @@ -1053,7 +1050,6 @@ fn test_stable_pool_liqudity(mut session: Session) { share_amount, min_amounts, bob(), - false, BOB, ) .expect("Should successfully add liquidity"); @@ -1120,7 +1116,6 @@ fn test_stable_pool_liqudity_native(mut session: Session) { 1, initial_reserves.clone(), bob(), - true, initial_reserves[0], BOB, ) @@ -1150,7 +1145,6 @@ fn test_stable_pool_liqudity_native(mut session: Session) { max_share, to_withdraw, bob(), - true, BOB, ) .expect("Should successfully add liquidity"); @@ -1167,7 +1161,6 @@ fn test_stable_pool_liqudity_native(mut session: Session) { share_amount, min_amounts, bob(), - true, BOB, ) .expect("Should successfully add liquidity"); diff --git a/amm/drink-tests/src/utils.rs b/amm/drink-tests/src/utils.rs index fd438b1..583c893 100644 --- a/amm/drink-tests/src/utils.rs +++ b/amm/drink-tests/src/utils.rs @@ -350,7 +350,6 @@ pub mod router_v2 { min_share_amount: u128, amounts: Vec, to: AccountId, - native: bool, native_amount: u128, caller: drink::AccountId32, ) -> Result<(u128, u128), RouterV2Error> { @@ -367,7 +366,6 @@ pub mod router_v2 { amounts, to, deadline, - native, ) .with_value(native_amount), ) @@ -383,7 +381,6 @@ pub mod router_v2 { max_share_amount: u128, amounts: Vec, to: AccountId, - native: bool, caller: drink::AccountId32, ) -> Result<(u128, u128), RouterV2Error> { let now = get_timestamp(session); @@ -398,7 +395,6 @@ pub mod router_v2 { amounts, to, deadline, - native, ), ) .unwrap() @@ -413,7 +409,6 @@ pub mod router_v2 { share_amount: u128, min_amounts: Vec, to: AccountId, - native: bool, caller: drink::AccountId32, ) -> Result, RouterV2Error> { let now = get_timestamp(session); @@ -428,7 +423,6 @@ pub mod router_v2 { min_amounts, to, deadline, - native, ), ) .unwrap()