trustline-inc / probity

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

Make sure sure can close their equity position fully #376

Closed shine2lay closed 2 years ago

shine2lay commented 2 years ago

The solution I implemented here is similar to modifyDebt where the interest is subtracted before principal is reduced. With the only obvious difference is that the interestAmount of systemCurrency and PBT is added to equity position holder's balance.

closes #371