What this does
This plug closes a WETH/USDC leverage loop on Aave's Ethereum market by repaying the outstanding USDC debt and withdrawing the WETH collateral back to the socket. It reads the socket's exited_weth/usdc_loop flag, the WETH and USDC reserves, the account's aWETH and vUSDC balances, and the market oracle price of WETH. It fires only when the flag is false, an aWETH position exists, and the WETH price is at or above 2700. Monitoring the oracle by hand risks missing the trigger or acting on a stale price.
Actions · 17

















Related plugs · 8