trustline-inc / probity

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

Handle liquidation of equity position #267

Closed shine2lay closed 2 years ago

shine2lay commented 2 years ago

Details: When we are liquidating a equity position we take underlying assets amount that is equal to (initialEquity * penaltyFee(1e16 = 1%)) / currentPrice and auction it off the rest is returned to the owner of the equity position.

Auctioneer now supports a mode where if sellAllLot = true it no longer factor debt size into matter, it'll try to sell all the lot available.

closes #249