Using limit order with post interaction to protect users against getting liquidated on aave
This project sets out to solve one problem - it is getting liquidated on lending markets through the use of limit order protocol. The idea is simple, as soon as your collateral value drops below a certain price or the borrowed asset rises in price leading to higher risk of liquidation, the limit order with post interaction kicks in to protect the user from inevitable liquidation. The order is set to exchange the borrowed assets and redeposit on the lending protocol. For this project, the only available protocol is AAVE on base mainnet but it can easily be extended to all the lending markets out there.
The submission has 3 main components:
interface to delegate call into a MulticallV3's
aggregate3Value` . The encoding of the underlying calls is done in the UI, currently does three things: token allowance for the aave pool, token transfers to the post interaction implementation and finally supplying on aave.