Scale a human-readable price to a chain integer.
Truncates to the market's maximum precision using floor rounding.
The market definition (provides quote decimals and precision).
The human-readable price as a number.
The scaled price as a chain integer (bigint).
const chainPrice = scalePriceForMarket(market, 0.025); // e.g., 25000000n Copy
const chainPrice = scalePriceForMarket(market, 0.025); // e.g., 25000000n
Scale a human-readable price to a chain integer.
Truncates to the market's maximum precision using floor rounding.