osmosis-labs / isotonic

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

Optimize: Exit Markets #25

Closed ethanfrey closed 2 years ago

ethanfrey commented 2 years ago

Follow up from #24

If I move currencies a lot I may have entered many markets which now provide very high gas costs. In order to clean up, I must cleanly exit a market. A user can only exit a market if all are true:

If these checks all pass, we can remove them from the list of entered markets.