
What this does
This plug unwinds a WETH/USDC loop on the Aave market at 0x2f39d218133afab8f2b819b1066c7e434ad94e9e by repaying the full USDC debt and withdrawing the aWETH collateral. It reads the exited_weth/usdc_loop flag, the caller's USDC debt balance, and the aWETH supply position. It fires once when that flag is false, the USDC borrow rate is at or above 0.055, and outstanding debt remains, then sets the flag to true. Doing this by hand or on a stale rate risks acting against a closed position or missing the borrow rate trigger.
Actions · 17

















Related plugs · 8