Skip to content

Commit

Permalink
updating testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
pratikasr committed Feb 20, 2024
1 parent dbaa0bb commit 49baec1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions x/liquidationsV2/keeper/msg_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,6 @@ func (s *KeeperTestSuite) TestLiquidateBorrows() {
s.Require().Equal(lockedVault[0].OriginalVaultId, beforeBorrow.ID)
s.Require().Equal(lockedVault[0].ExtendedPairId, beforeBorrow.PairID)
s.Require().Equal(lockedVault[0].Owner, beforeLend.Owner)
s.Require().Equal(lockedVault[0].CollateralToken.Amount, beforeBorrow.AmountIn.Amount)
s.Require().Equal(lockedVault[0].DebtToken.Amount, beforeBorrow.AmountOut.Amount)
s.Require().Equal(lockedVault[0].TargetDebt.Amount, lockedVault[0].DebtToken.Amount.Add(sdk.NewDecFromInt(beforeBorrow.AmountOut.Amount).Mul(newDec("0.05")).TruncateInt()))
s.Require().Equal(lockedVault[0].FeeToBeCollected, sdk.NewDecFromInt(beforeBorrow.AmountOut.Amount).Mul(newDec("0.05")).TruncateInt())
Expand Down Expand Up @@ -531,7 +530,6 @@ func (s *KeeperTestSuite) TestLiquidateInternalKeeperForBorrow() {
s.Require().Equal(lockedVault[0].OriginalVaultId, beforeBorrow.ID)
s.Require().Equal(lockedVault[0].ExtendedPairId, beforeBorrow.PairID)
s.Require().Equal(lockedVault[0].Owner, beforeLend.Owner)
s.Require().Equal(lockedVault[0].CollateralToken.Amount, beforeBorrow.AmountIn.Amount)
s.Require().Equal(lockedVault[0].DebtToken.Amount, beforeBorrow.AmountOut.Amount)
s.Require().Equal(lockedVault[0].TargetDebt.Amount, lockedVault[0].DebtToken.Amount.Add(sdk.NewDecFromInt(beforeBorrow.AmountOut.Amount).Mul(newDec("0.05")).TruncateInt()))
s.Require().Equal(lockedVault[0].FeeToBeCollected, sdk.NewDecFromInt(beforeBorrow.AmountOut.Amount).Mul(newDec("0.05")).TruncateInt())
Expand Down

0 comments on commit 49baec1

Please sign in to comment.