Skip to content

Commit

Permalink
Fix drink tests after the changes
Browse files Browse the repository at this point in the history
  • Loading branch information
woocash2 committed Oct 14, 2024
1 parent 347c879 commit 03355ef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
9 changes: 1 addition & 8 deletions amm/drink-tests/src/router_v2_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -158,7 +158,6 @@ fn test_cache_stable_pool_with_add_liquidity(mut session: Session) {
1,
initial_reserves.clone(),
bob(),
false,
0,
BOB,
)
Expand Down Expand Up @@ -1012,7 +1011,6 @@ fn test_stable_pool_liqudity(mut session: Session) {
1,
initial_reserves.clone(),
bob(),
false,
0,
BOB,
)
Expand All @@ -1036,7 +1034,6 @@ fn test_stable_pool_liqudity(mut session: Session) {
max_share,
to_withdraw,
bob(),
false,
BOB,
)
.expect("Should successfully add liquidity");
Expand All @@ -1053,7 +1050,6 @@ fn test_stable_pool_liqudity(mut session: Session) {
share_amount,
min_amounts,
bob(),
false,
BOB,
)
.expect("Should successfully add liquidity");
Expand Down Expand Up @@ -1120,7 +1116,6 @@ fn test_stable_pool_liqudity_native(mut session: Session) {
1,
initial_reserves.clone(),
bob(),
true,
initial_reserves[0],
BOB,
)
Expand Down Expand Up @@ -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");
Expand All @@ -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");
Expand Down
6 changes: 0 additions & 6 deletions amm/drink-tests/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,6 @@ pub mod router_v2 {
min_share_amount: u128,
amounts: Vec<u128>,
to: AccountId,
native: bool,
native_amount: u128,
caller: drink::AccountId32,
) -> Result<(u128, u128), RouterV2Error> {
Expand All @@ -367,7 +366,6 @@ pub mod router_v2 {
amounts,
to,
deadline,
native,
)
.with_value(native_amount),
)
Expand All @@ -383,7 +381,6 @@ pub mod router_v2 {
max_share_amount: u128,
amounts: Vec<u128>,
to: AccountId,
native: bool,
caller: drink::AccountId32,
) -> Result<(u128, u128), RouterV2Error> {
let now = get_timestamp(session);
Expand All @@ -398,7 +395,6 @@ pub mod router_v2 {
amounts,
to,
deadline,
native,
),
)
.unwrap()
Expand All @@ -413,7 +409,6 @@ pub mod router_v2 {
share_amount: u128,
min_amounts: Vec<u128>,
to: AccountId,
native: bool,
caller: drink::AccountId32,
) -> Result<Vec<u128>, RouterV2Error> {
let now = get_timestamp(session);
Expand All @@ -428,7 +423,6 @@ pub mod router_v2 {
min_amounts,
to,
deadline,
native,
),
)
.unwrap()
Expand Down

0 comments on commit 03355ef

Please sign in to comment.