What this does
This plug holds an Aave WETH collateral and USDC borrow loop at a target debt on the Ethereum market at 0x2f39d218133afab8f2b819b1066c7e434ad94e9e. It reads reserve data, the socket account position, the WETH oracle price, and the liquidation LTV. When no aWETH is held it supplies 5 WETH, then computes the liquidation ceiling divided by 1.5 and repays USDC and withdraws WETH if debt is above target or supplies WETH and borrows USDC if below. Rebalancing by hand on a stale price risks over-leverage toward liquidation.
Actions · 29





























Related plugs · 8