
What this does
This plug closes a leveraged WETH/USDC position on the Aave market at 0x2f39d218133afab8f2b819b1066c7e434ad94e9e by repaying USDC debt and withdrawing aWETH collateral. It requires a connected wallet holding the supply and debt positions and the global flag exited_weth/usdc_loop set to false. It fires only when a supply position exists and the WETH oracle price reaches or exceeds 2700, then marks the loop exited. Acting by hand or on a stale price can repay and withdraw at a price the position no longer holds.
Actions · 17

















Related plugs · 8