Skip to content

Function: commissionForPrice() ​

commissionForPrice(priceMist, terms): bigint

Defined in: ptb.ts:383

Commission (MIST) on priceMist under terms, exactly as the contract computes it: max(price × bps / 10000, minMist) (percentage rounded down), never more than 10% of the price; 0 for a price of 0.

Parameters ​

priceMist ​

number | bigint

terms ​

CommissionTerms

Returns ​

bigint

2026 Meddleware. All jams preserved.