Skip to content

Commit

Permalink
fix vaults
Browse files Browse the repository at this point in the history
  • Loading branch information
DongLieu committed Nov 12, 2024
1 parent 1597fc9 commit 70ec621
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x/vaults/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (k msgServer) UpdatesCollateral(ctx context.Context, msg *types.MsgUpdatesC
return nil, errorsmod.Wrapf(types.ErrInvalidSigner, "invalid authority; expected %s, got %s", k.authority, msg.Authority)
}

err = k.UpdatesCollateralAsset(ctx, msg.CollateralDenom, msg.MinCollateralRatio, msg.LiquidationRatio, msg.MaxDebt, msg.StabilityFee, msg.MintingFee, msg.LiquidationPenalty)
err = k.UpdatesCollateralAsset(ctx, msg.CollateralDenom, msg.MintDenom, msg.MinCollateralRatio, msg.LiquidationRatio, msg.MaxDebt, msg.StabilityFee, msg.MintingFee, msg.LiquidationPenalty)
if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion x/vaults/keeper/vaults_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (s *KeeperTestSuite) TestCreateNewVault() {
} else {
s.Require().NoError(err)

vm, err := s.k.GetVaultManager(s.Ctx, denom)
vm, err := s.k.GetVaultManager(s.Ctx, denom, "nomUSD")
s.Require().NoError(err)
s.Require().NotEqual(maxDebt, vm.MintAvailable)

Expand Down

0 comments on commit 70ec621

Please sign in to comment.