SuperFi Docs

Slippage & safety

How Super9MM's price guard and slippage caps protect every automated action.

Automation moves money on-chain, so Super9MM wraps every keeper action in protections. Understanding them helps you set them well.

The TWAP price guard

Before any keeper action (rebalance, compound, close, DCA-open), the contract checks the pool's time-weighted average price (TWAP) against the current price. If they diverge beyond your tolerance — a sign of manipulation or a momentary spike — the action reverts.

Why it matters: it stops the keeper from being tricked into a bad rebalance or an early stop-loss by a one-block price wick or a sandwich attempt. It's enforced on-chain, so even a buggy keeper can't skip it. If the guard isn't configured, the keeper treats the position as paused and does nothing (fail-closed).

Setting it: a tighter tolerance is safer but may cause actions to wait during normal volatility; a looser one acts more readily but allows more price deviation. Set it tighter on thin/volatile pools.

Slippage caps (minimum output)

Any swap inside an automation (e.g. rebalancing into the right token ratio, or closing to a single token) carries a minimum-output amount derived from your slippage setting. If the swap can't meet it, the action fails rather than executing at a bad price.

Setting it: too tight and rebalances may fail on volatile/thin pools; too loose and you accept worse fills. A moderate cap is right for most liquid pools; widen slightly for volatile ones.

Rate limiting

A minimum interval between keeper actions prevents churn — an attacker (or a bug) can't spam rebalances to bleed your position via repeated fees and slippage.

Realistic expectations

  • On liquid pools, default tolerances work well and actions execute smoothly.
  • On thin pools, the same move costs more slippage and the guard may reject more often — that's the protection working. Consider a wider range (fewer rebalances) or a more liquid pool.
  • TP/SL fires on the guarded price, so it reacts to a sustained move, not an instantaneous spike — intentional, to avoid manipulation.
ℹ️

These guards are why Super9MM can act on your funds safely. Tune them per pool: tighter for thin/volatile, looser for deep/liquid.