What this does
This plug winds or unwinds an Aave position, using a flash loan to either supply collateral and borrow, or repay debt and withdraw collateral. It asks the caller for supply_amount, supply_token, borrow_amount, borrow_token, aave_market, and the is_winding flag. It fires on the wind path when is_winding equals 1, and on the unwind path otherwise. Each path requires the solver's routing gain to cover the flash loan owed, reverting if it falls short.
Actions · 30






























Related plugs · 8