What this does
This plug closes a WETH/USDC leveraged loop on the Aave market at 0x2f39d218133afab8f2b819b1066c7e434ad94e9e by repaying outstanding USDC debt and withdrawing WETH collateral. It reads the exited_weth/usdc_loop flag, the aWETH supply balance, the USDC debt balance, and the WETH oracle price. It fires only when the loop is not yet exited, a supply position exists, and the WETH price is at or below 2000. Watching this by hand or acting on a stale price risks unwinding late or against an already closed position.
Actions · 17

















Related plugs · 8