From line to config
How the drawing turns into Meteora's 16 liquidity weights.
Sixteen segments
Meteora's Dynamic Bonding Curve stores a curve as up to 16 segments. Its SDK helper buildCurveWithLiquidityWeights splits the price range between the first-buy market cap and the graduation market cap into 16 ranges of equal ratio: each one ends at the same multiple of the one before.
With the default range, 30 → 420 SOL, the ratio is the 16th root of 14: each band is about 18% above the previous one.
From supply to weights
Curvv slices your drawing along those 16 price bands and measures how much supply your line sells inside each. In a constant-product segment, liquidity relates supply to price through square roots, so the liquidity of band k is:
Δxk is the supply sold in the band, pk and pk+1 its price limits. The 16 liquidities, scaled so the first is 1, are the liquidityWeights passed to the SDK, which then sizes everything so the full supply is used: what the curve sells, plus what pairs with the raised SOL at graduation.
import { buildCurveWithLiquidityWeights } from '@meteora-ag/dynamic-bonding-curve-sdk'
const curve = buildCurveWithLiquidityWeights({
...curvvDefaults, // 1B supply, 1% fee, DAMM v2, all LP locked
initialMarketCap: 30, // SOL, the first buy
migrationMarketCap: 420, // SOL, graduation
liquidityWeights: weights, // the 16 numbers from your drawing
})Watch the weights move
Draw on the canvas: the 16 numbers in the code below are recomputed on every stroke, and the ones that change flash.
×14 to graduate
import { buildCurveWithLiquidityWeights } from '@meteora-ag/dynamic-bonding-curve-sdk' // drawn on curvv · stairs const curve = buildCurveWithLiquidityWeights({ ...curvvDefaults, initialMarketCap: 30, // SOL migrationMarketCap: 420, liquidityWeights: [ 1.00, 0.10, 0.10, 0.21, 1.39, 0.13, 0.15, 0.30, 1.93, 0.19, 0.20, 0.41, 2.69, 0.26, 0.28, 0.57, ], })
Same numbers as the SDK
The “raises” figure on the canvas runs the SDK's own segment math in the browser; measured against the SDK, the difference is 0.00%. With the default range, a straight line raises about 109 SOL and sells 74% of the supply on the curve.