@@ -430,7 +430,7 @@ func TestRouterSwapRouteBarBazExactOut(t *testing.T) {
430
430
shouldEQ(t, swapResult, bigint(5000))
431
431
432
432
shouldEQ(t, balanceOf(barObj, tr01), 99895000)
433
- shouldEQ(t, balanceOf(bazObj, tr01), 102099834 )
433
+ shouldEQ(t, balanceOf(bazObj, tr01), 102099835 )
434
434
435
435
std.TestSkipHeights(2)
436
436
}
@@ -488,7 +488,7 @@ func TestRouterSwapRouteWgnotFooBazBarExactIn(t *testing.T) {
488
488
"100", // quoteArr
489
489
300000, // tokenAmountLimit
490
490
)
491
- shouldEQ(t, swapResult, bigint(199900 ))
491
+ shouldEQ(t, swapResult, bigint(9984 ))
492
492
493
493
shouldEQ(t, balanceOf(barObj, tr01), 99894999)
494
494
shouldEQ(t, wugnotBalanceOf(tr01), 99995)
@@ -502,7 +502,7 @@ func TestPositionCollectFeeLpTokenId_1(t *testing.T) {
502
502
tokenId, amount0, amount1, poolPath := pos.CollectFee(1)
503
503
shouldEQ(t, tokenId, uint64(1))
504
504
shouldEQ(t, amount0, bigint(19))
505
- shouldEQ(t, amount1, bigint(198 ))
505
+ shouldEQ(t, amount1, bigint(200 ))
506
506
shouldEQ(t, poolPath, "gno.land/r/demo/bar:gno.land/r/demo/baz:100")
507
507
508
508
std.TestSkipHeights(1)
@@ -516,7 +516,7 @@ func TestPositionCollectFeeLpTokenId_4(t *testing.T) {
516
516
tokenId, amount0, amount1, poolPath := pos.CollectFee(4)
517
517
shouldEQ(t, tokenId, uint64(4))
518
518
shouldEQ(t, amount0, bigint(199))
519
- shouldEQ(t, amount1, bigint(18 ))
519
+ shouldEQ(t, amount1, bigint(20 ))
520
520
shouldEQ(t, poolPath, "gno.land/r/demo/baz:gno.land/r/demo/foo:100")
521
521
522
522
std.TestSkipHeights(1)
@@ -548,8 +548,8 @@ func TestStakerUnstake(t *testing.T) {
548
548
// it will return unstaked position's poolPath, amount0, amount1 ( not reward )
549
549
poolPath, amount0, amount1 := stk.UnstakeToken(1)
550
550
shouldEQ(t, poolPath, "gno.land/r/demo/bar:gno.land/r/demo/baz:100")
551
- shouldEQ(t, amount0, bigint(604921 ))
552
- shouldEQ(t, amount1, bigint(7900364 ))
551
+ shouldEQ(t, amount0, bigint(604922 ))
552
+ shouldEQ(t, amount1, bigint(7900345 ))
553
553
554
554
std.TestSkipHeights(1)
555
555
}
@@ -558,8 +558,8 @@ func TestPositionBurnUnstakedPosition(t *testing.T) {
558
558
tokenId, liquidity, amount0, amount1, poolPath := pos.Burn(1)
559
559
shouldEQ(t, tokenId, uint64(1))
560
560
shouldEQ(t, liquidity, bigint(4473213901))
561
- shouldEQ(t, amount0, bigint(604921 ))
562
- shouldEQ(t, amount1, bigint(7900364 ))
561
+ shouldEQ(t, amount0, bigint(604922 ))
562
+ shouldEQ(t, amount1, bigint(7900345 ))
563
563
shouldEQ(t, poolPath, "gno.land/r/demo/bar:gno.land/r/demo/baz:100")
564
564
565
565
std.TestSkipHeights(1)
0 commit comments