Steer Protocol
Module Deep DivesExecution Layer

Execution Layer

Runtime orchestration modules that gate swaps and settle mint/redeem flows.

What It Does

The Execution Layer is the runtime path for user intent. It converts swap or mint/redeem requests into explicit allow/reject outcomes using hook checks, collateral accounting, and bounded settlement callbacks.

Runtime Contract

Execution modules are expected to preserve these guarantees:

  • risk checks happen before state-changing settlement
  • settlement deltas stay within configured absolute bounds
  • rejected paths fail with explicit errors or rejection events
  • transient hook state is cleared after settlement

Request Flow

In practice:

  1. User intent enters a Uniswap v4 pool using HybridCollateralSettlementHook.
  2. Unsigned swaps pass through with zero hook delta and no vault settlement when pool liquidity is allowed.
  3. Signed swaps validate pool config, safe mode, oracle output, and the full requested amount against the transaction limit.
  4. Signed hook sizing asks the manager/controller for vaultSettlementSpecifiedAbs, checks that leg against the block limit in ExternalSettlementVolume mode, then previews previewSwapExternal only when the vault leg is nonzero.
  5. Signed afterSwap enforces each token's PoolAssetRiskConfig.maxSettlementAbsDelta, records executed external settlement volume or all volume under the selected block-cap mode, calls settleSwapExternal when a vault leg is active, consumes a valid zero-vault signed quote otherwise, emits telemetry, and clears transient state. AllVolume mode also counts ordinary pool swaps.

Signed settlement mode rules:

  • No signed quote supplied => pure AMM pass-through when poolAllowed is true, with no vault rail.
  • Signed quote supplied and valid => signed quote settlement path.
  • Signed quote supplied but invalid => revert; no same-transaction fallback to unsigned settlement.

Primary Modules

Failure Signals to Monitor

  • Hook risk-gate errors such as GlobalPaused, OraclePaused, PriceDeviationTooHigh, and BlockCapExceeded.
  • Settlement bound failures via SettlementDeltaTooLarge.
  • Settlement callbacks are executed only via the authorized hook and are risk-checked by HybridCollateralSettlementHook + CollateralManager.
  • Cap/debt failures from manager paths via CapExceeded, DebtCeilingExceeded, or GlobalDebtCeilingExceeded.

On this page