What this does
This plug opens a leveraged position by flash-borrowing supply_amount of supply_token from an Aave market, supplying it as collateral, and borrowing borrow_amount of borrow_token against it. It asks the caller for supply_amount, supply_token, the aave_market address, borrow_amount, and borrow_token. It fires when routing the borrowed funds through the solver produces a supply_token gain greater than or equal to the flash loan owed, saved as wind_loan_owed. Running this by hand or on a stale routed amount risks a require failure that reverts the whole transaction.
Actions · 14














Related plugs · 8