What this does
This plug maintains a leveraged loop of wstETH collateral against USDC debt on the Aave market at 0x2f39d218133afab8f2b819b1066c7e434ad94e9e. It reads the exited_loop flag, wstETH and USDC reserve data, and the socket's account data, prices, and liquidation LTV. It runs only while the loop is open, repaying all debt and withdrawing all collateral once the USDC borrow rate reaches 0.055, and otherwise steering debt to the liquidation ceiling divided by 1.2. Rebalancing by hand or on a stale rate risks liquidation or holding debt at an unfavorable rate.
Actions · 47















































Related plugs · 8