Skip to main content
All Hadron Pools have price and risk curves which help maker encode their trading strategy into the on-chain PDA for the operator’s propAMM. A operator deploys a pool by describing a quoting function:
Screenshot 2026 05 08 At 10 14 28 AM
The operator picks the midprice, picks how price changes with trade size, picks how price shifts with their inventory. Hadron is the engine that runs that function on chain.

Hadron Quoting Pipeline

Image

updateBaseSpread

Add a flat pool level fee to all swaps. This is added to any additional spread initialised later in the curve setup by default.

Creating Price Curves

Write a price curve to a prefab slot.
  • Curves comprise of three key ideas
    • AmountIn: Stored in atoms(lowest unit of the token based on the token decimal) of the amount inputed by the taker. Stored internally as Bigint
    • PriceFactor : Distance from the midprice in BPS

switchPriceCurve

Switch between different price curves in a single instruction. Up to 16 per curve side, set at pool initialization.
Hadron protocol fees are added at the pool level to all pools and need to be factored into pools to remain competitive. For the latest fee rates go to https://docs.hadron.fi/fees

setRiskCurve

Write a risk curve using percent-of-vault x-axis.

setRiskCurveAbsolute

Write a risk curve using absolute token amounts on the x-axis.

switchRiskCurve

Switch between different risk curves in a single instruction. Up to 16 per curve side, set at pool initialization.
For a visual helper please visit https://dashboard.hadron.fi/curves