Steer Protocol

Oracle and Risk Controls

Oracle modes, reason codes, and mint/redeem limit system.

Operator Rule

Treat oracle mode as a hard gate. Do not route mint flows unless mode and reason code indicate acceptable health.

Oracle Modes

Prop

Type

Typical Reason-Code Triggers

  • stale or invalid primary feed data
  • primary invalid with no fallback configured
  • out-of-bounds answers
  • excessive primary-vs-fallback deviation
  • L2 sequencer-down condition
  • sequencer grace-period window

Cap and Ceiling Controls

The system applies both per-collateral and global controls:

Prop

Type

Solvency Constraints

SolvencyEngine is the final economic gate before state transitions are accepted.

Prop

Type

Operationally:

  • Mint requests fail if projected post-mint debt exceeds solvency headroom.
  • Redeem/withdraw paths fail if resulting collateralization drops below required ratio.
  • Hook settlement callbacks apply the same post-transition solvency checks as direct manager flows.

Hook-Level Safety

beforeSwap and afterSwap enforce:

  • pool-risk config gating; unconfigured pools or pools with collateral == 0 revert closed
  • oracle-mode gating
  • cap/debt-bound checks
  • bounded post-trade settlement delta
  • explicit event telemetry for execution and rejection outcomes

Mode Decision Diagram

Example Guardrails

Price Freshness

Reject stale or invalid feed snapshots before settlement calculations.

Cap Pressure

Throttle by tx, block, and day so volume spikes cannot over-mint.

Debt Safety

Enforce per-collateral and global ceilings before any mint execution.

Signed Quote vs Pure AMM Settlement

  • Pure AMM path (default): the hook returns ZERO_DELTA; the swap stays pure AMM and never reaches vault settlement.
  • Signed-quote path: vault settlement is derived from SwapParams, but a signed quote payload (encoded into hookData) must pass:
    • signature verification
    • trader binding and pool binding
    • expiry and replay checks
    • amount cap check
    • oracle-policy validation

Signed quotes are required for the vault rail; they do not replace the LP-led AMM execution.

Use signed quotes when you want tighter routing control and explicit issuer intent.

Fallback behavior is conditional:

  • no signed quote supplied => pure AMM pass-through
  • signed quote supplied and valid => signed quote flow
  • signed quote supplied but invalid => revert (strict reject, no same-transaction fallback)

Decision Notes

PathUpsideTradeoff
Pure AMM onlyMaximum availability for normal LP liquidity; no signer dependency; no vault movementDoes not use collateral-manager liquidity or signed issuer intent
Signed quote (strict reject on invalid supplied quote)Better certainty for pricing/intent; same base liquidity behavior with explicit bound checks and optional vault settlementRequires quote/signature availability and signer governance

On this page