What this does
This plug rebalances a socket's Aave position toward a debt target set by the collateral's liquidation LTV divided by a chosen health factor. It asks the caller for the Aave market, the supply_token used as collateral, the borrow_token, and the target_health_factor. When current debt exceeds target it repays borrow_token and withdraws supply_token, otherwise it supplies supply_token and borrows borrow_token to lever up. Acting on a stale oracle price or LTV missizes the repay, withdraw, supply, or borrow amounts.
Actions · 23























Related plugs · 8