Contract Math & Pricing Reference
How Bolt computes execution prices and trade outcomes
Overview
This page documents the pricing and execution math used by Bolt Outposts. It is intended for integrators implementing off-chain simulation, validation tooling, or custom execution logic.
Bolt does not use bonding curves or AMM-style invariant math. Instead, execution is based on:
Oracle-anchored reference prices
Inventory availability
Fixed execution rules
Pricing Model
Prices are sourced from Bolt’s Oracle, which aggregates global market data
Proof of Price Efficiency (PoPE) ensures prices reflect best-available market rates
Execution price is independent of pool depth
Swap Calculation
At a high level:
amountOutis derived directly from the oracle priceNo curve-based adjustment is applied
Execution succeeds if sufficient inventory is available
There is no marginal price movement as trade size increases.
Important Notes
Contract math may evolve as the protocol upgrades
Integrators should not reverse-engineer bytecode
Always rely on the latest reference implementation
For correctness, off-chain simulations must exactly mirror the on-chain math.
Last updated