diff --git a/x/vaults/keeper/msg_server.go b/x/vaults/keeper/msg_server.go index f1083b7..9a23f8d 100644 --- a/x/vaults/keeper/msg_server.go +++ b/x/vaults/keeper/msg_server.go @@ -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 } diff --git a/x/vaults/keeper/vaults_test.go b/x/vaults/keeper/vaults_test.go index 7cc27da..562b503 100644 --- a/x/vaults/keeper/vaults_test.go +++ b/x/vaults/keeper/vaults_test.go @@ -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)