osmosis-labs / isotonic

Smart Contracts for the Lendex Protocol
MIT License
1 stars 0 forks source link

Allow list for who can liquidate #66

Closed ethanfrey closed 2 years ago

ethanfrey commented 2 years ago

We may not want to allow everyone to liquidate loans at first.

We can define an Allow List at the Credit Agency level of a number of addresses. Only these addresses would be allowed to call liquidate. And they would follow the same logic we currently have, just limited who can call it.

This allow list must be adjusted by credit agency governance #49 and should be optional (so it can later be removed with a simple vote and not a code upgrade)

ks-victor commented 2 years ago

Not relevant as we will do liquidation through the AMM and make the triggering minimal financial interesting. Most earnings will go to liquidity providers.