What this does
This plug rebalances a WETH collateral and USDC debt position on Aave at 0x2f39d218133afab8f2b819b1066c7e434ad94e9e, targeting debt at the liquidation ceiling divided by 1.5 while tracking a stored price peak. It requires the exited_loop flag to be unset and reads last_peak_price from its own storage. It fires when supply is empty, price sets a new peak, debt drifts off target, or price falls 10 percent below the peak, which triggers a full repay and withdraw. Running this manually or on a stale peak price risks liquidation or a missed stop exit.
Actions · 67



































































Related plugs · 8