Skip to content

Commit

Permalink
modify amounts
Browse files Browse the repository at this point in the history
  • Loading branch information
toteki committed Sep 12, 2023
1 parent fe219f4 commit 77d5a04
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/e2e/e2e_leverage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand All @@ -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))
},
)
}

0 comments on commit 77d5a04

Please sign in to comment.