What this does
This plug manages a leveraged wstETH-collateral USDC-borrow loop on Aave in the market at 0x2f39d218133afab8f2b819b1066c7e434ad94e9e. It reads the exited_loop flag from plug storage and the socket's balances, requiring the loop to still be open. When the USDC borrow rate reaches 0.055, it repays the full vUSDC debt, withdraws all wstETH, and marks the loop exited; otherwise it rebalances debt to the liquidation LTV ceiling divided by 1.2. Running this by hand or on a stale borrow rate risks over-borrowing toward liquidation or missing the rate exit.
Actions · 47















































Related plugs · 8