From ade19dab5c6487a2c3b5c126b88ac611a08e37d9 Mon Sep 17 00:00:00 2001 From: vishnukumavat Date: Thu, 25 Jan 2024 14:43:10 +0530 Subject: [PATCH] test cases fixed --- x/liquidity/amm/pool_test.go | 2 +- x/liquidity/keeper/swap_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x/liquidity/amm/pool_test.go b/x/liquidity/amm/pool_test.go index 5031eb42e..7f8e02229 100644 --- a/x/liquidity/amm/pool_test.go +++ b/x/liquidity/amm/pool_test.go @@ -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", diff --git a/x/liquidity/keeper/swap_test.go b/x/liquidity/keeper/swap_test.go index 0e90776c1..e0dfd78eb 100644 --- a/x/liquidity/keeper/swap_test.go +++ b/x/liquidity/keeper/swap_test.go @@ -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)))