What this does
This plug unwinds a WETH/USDC leverage loop on the Aave market at 0x2f39d218133afab8f2b819b1066c7e434ad94e9e by repaying USDC debt and withdrawing WETH collateral to the socket. It asks the caller for the position holder address 0x484428507A212cA56D71baa27Ca6089a6dB63a88 and the global flag exited_weth/usdc_loop. It fires when that flag is false, the USDC borrow rate is at or above 0.055, and outstanding USDC debt is greater than zero. Running it by hand or on a stale borrow rate risks repaying against a closed loop or missing the rate trigger.
Actions · 17

















Related plugs · 8