protocol-core icon indicating copy to clipboard operation
protocol-core copied to clipboard

[Vault Module]: Refactor vault contract to only manage vault state

Open njokuScript opened this issue 1 year ago • 0 comments

Description

Currently, the vault contract stores users' funds and interacts directly with the token contracts. We want to make sure that the vault is not making any external calls.

  • [ ] Vault should only be responsible for managing vault state(balances, collateralization ratio)
  • [ ] Introduce Vault IDs when creating vaults
  • [ ] Abstract out Liquidation function from Vault module

njokuScript avatar Mar 15 '24 20:03 njokuScript