Skip to content

Commit

Permalink
test cases fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
vishnukumavat committed Jan 25, 2024
1 parent 301b978 commit ade19da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x/liquidity/amm/pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ func TestCreateRangedPool(t *testing.T) {
utils.ParseDec("1.0"), utils.ParseDec("1.001"),
utils.ParseDec("1.0005"),
"",
sdkmath.NewInt(1_000000000000000000), sdkmath.NewInt(999000936633622179),
sdkmath.NewInt(1_000000000000000000), sdkmath.NewInt(999000936633614182),
},
{
"small x asset",
Expand Down
2 changes: 1 addition & 1 deletion x/liquidity/keeper/swap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2336,7 +2336,7 @@ func (s *KeeperTestSuite) TestExhaustRangedPool() {
ammPool := pool.AMMPool(rx.Amount, ry.Amount, sdkmath.Int{})
s.Require().True(coinEq(rx, utils.ParseCoin("997231denom2")))
s.Require().True(coinEq(ry, utils.ParseCoin("984671denom1")))
s.Require().True(decEq(ammPool.Price(), utils.ParseDec("1.003719250732340753")))
s.Require().True(decEq(ammPool.Price(), utils.ParseDec("1.003719250732340754")))

s.Require().True(coinsEq(utils.ParseCoins("31534denom2"), s.getBalances(sdk.MustAccAddressFromBech32(params.DustCollectorAddress))))
s.Require().True(coinsEq(utils.ParseCoins("12546884denom1,12666562denom2"), s.getBalances(orderer)))
Expand Down

0 comments on commit ade19da

Please sign in to comment.