Skip to content

interpolateLadder

interpolateLadder(points, amount): bigint | null

A ladder's output at amount (§7): proportional below the first point, linear between points, none above the last. Integer division, truncating toward zero.

Parameter Type
points [string, string][]
amount bigint

bigint | null