What this does
This plug unwinds a WETH/USDC leverage loop on the Aave market at 0x2f39d218133afab8f2b819b1066c7e434ad94e9e by repaying outstanding USDC debt and withdrawing WETH collateral to the socket. It asks the caller for the position address 0x484428507A212cA56D71baa27Ca6089a6dB63a88 and the exited_weth/usdc_loop flag. It fires when that flag is false, an aWETH supply exists, and the WETH oracle price reaches 2700 or above. Doing it by hand or on a stale price risks missing the target or repaying against an already closed position.
Actions · 17

















Related plugs · 8