diff --git a/x/vaults/keeper/vault.go b/x/vaults/keeper/vault.go index aefe083..ad722e7 100644 --- a/x/vaults/keeper/vault.go +++ b/x/vaults/keeper/vault.go @@ -119,7 +119,7 @@ func (k *Keeper) CreateNewVault( ), ) - return k.VaultsManager.Set(ctx, denom, vm) + return k.VaultsManager.Set(ctx, key, vm) } func (k *Keeper) CloseVault( diff --git a/x/vaults/keeper/vaults_test.go b/x/vaults/keeper/vaults_test.go index 562b503..b4c88a8 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, "nomUSD") + vm, err := s.k.GetVaultManager(s.Ctx, denom, mintDenom) s.Require().NoError(err) s.Require().NotEqual(maxDebt, vm.MintAvailable)