trustline-inc / probity

A transparent asset-based lending protocol implemented for the EVM.
https://docs.trustline.co
Other
3 stars 1 forks source link

VaultEngine: Liquidation doesn't remove the principal #385

Closed shine2lay closed 2 years ago

shine2lay commented 2 years ago

During liquidation, the reserve pool needs to accept the debt position along with the collateral so I believe we need to make sure that the principal is also cleared when liquidator grabs the collateral.