From 77d5a04d8f38b0dd5e49f874c97a4538f81bb8c8 Mon Sep 17 00:00:00 2001 From: toteki <63419657+toteki@users.noreply.github.com> Date: Tue, 12 Sep 2023 08:47:36 -0600 Subject: [PATCH] modify amounts --- tests/e2e/e2e_leverage_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/e2e/e2e_leverage_test.go b/tests/e2e/e2e_leverage_test.go index c9d4a7b0f3..b0e71cb31a 100644 --- a/tests/e2e/e2e_leverage_test.go +++ b/tests/e2e/e2e_leverage_test.go @@ -91,17 +91,17 @@ func (s *E2ETest) TestLeverageBasics() { ) s.Run( "initial leverage collateralize", func() { - s.collateralize(valAddr, "u/"+appparams.BondDenom, 70_000_000) + s.collateralize(valAddr, "u/"+appparams.BondDenom, 80_000_000) }, ) s.Run( "initial leverage borrow", func() { - s.borrow(valAddr, appparams.BondDenom, 10_000_000) + s.borrow(valAddr, appparams.BondDenom, 12_000_000) }, ) s.Run( "initial leverage repay", func() { - s.repay(valAddr, appparams.BondDenom, 5_000_000) + s.repay(valAddr, appparams.BondDenom, 2_000_000) }, ) s.Run( @@ -119,8 +119,8 @@ func (s *E2ETest) TestLeverageBasics() { { // a set allowing UMEE to borrow more of itself Assets: []string{appparams.BondDenom}, - CollateralWeight: sdk.MustNewDecFromStr("0.8"), - LiquidationThreshold: sdk.MustNewDecFromStr("0.9"), + CollateralWeight: sdk.MustNewDecFromStr("0.75"), + LiquidationThreshold: sdk.MustNewDecFromStr("0.8"), }, } s.Require().NoError( @@ -134,7 +134,7 @@ func (s *E2ETest) TestLeverageBasics() { appparams.BondDenom, sdk.NewIntFromUint64(30_000_000), ) - s.mustSucceedTx(leveragetypes.NewMsgBorrow(valAddr, asset)) + s.mustEventuallySucceedTx(leveragetypes.NewMsgBorrow(valAddr, asset)) }, ) }