Skip to content

Commit

Permalink
updates debt when close vault
Browse files Browse the repository at this point in the history
  • Loading branch information
DongLieu committed Nov 19, 2024
1 parent f141e85 commit 6a56744
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions script/proposal-vault-1.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"min_collateral_ratio": "0.5",
"liquidation_ratio":"0.5",
"max_debt":"1000000000000000000000000000",
"oracl_script": "44",
"collateral_oracle_script": "44",
"mint_oracle_script":44,
"mint_denom": "nomUSD",
"mint_symbol":"USD",
"stability_fee": "0.1"
Expand All @@ -20,7 +21,8 @@
"min_collateral_ratio": "0.5",
"liquidation_ratio":"0.5",
"max_debt":"1000000000000000000000000000",
"oracl_script": "44",
"collateral_oracle_script": "44",
"mint_oracle_script":44,
"mint_denom": "nomUSD",
"mint_symbol":"USD",
"stability_fee": "0.1"
Expand Down
1 change: 1 addition & 0 deletions x/vaults/keeper/vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ func (k *Keeper) CloseVault(
// Update vault
vault.CollateralLocked.Amount = math.ZeroInt()
vault.Status = types.CLOSED
vault.Debt.Amount = math.ZeroInt()
return k.SetVault(ctx, vault)
}

Expand Down

0 comments on commit 6a56744

Please sign in to comment.