What this does
This plug builds a leveraged wind position on Aave by flash loaning supply_amount of supply_token, supplying it as collateral, borrowing borrow_amount of borrow_token, and routing the borrowed funds through the solver back into supply_token. It asks the caller for supply_amount, supply_token, aave_market, borrow_amount, and borrow_token. It fires when the routed supply_token gain, measured across the solver step, is greater than or equal to the flash loan repayment recorded in wind_loan_owed. Running the legs by hand or on a stale routing quote risks the require aborting the whole transaction.
Actions · 14














Related plugs · 8