SteppedRate
A piecewise fee rate over a USD amount — Splice's Splice.Fees.SteppedRate.
Semantics (from chargeSteppedRate in splice's daml/splice-amulet/daml/Splice/Fees.daml): the rate applies per tranche, like tax brackets. Step boundaries are absolute amounts, not tranche widths: SteppedRate(0.01, [(100, 0.001), (1000, 0.0001), (1000000, 0.00001)]) charges 1% on the first 100, 0.1% between 100 and 1000, 0.01% between 1000 and 1000000, and 0.001% above that.
Properties
Functions
Link copied to clipboard
The fee this schedule charges on amount, per Splice's chargeSteppedRate: each tranche's width times its rate, summed. Amounts <= 0 charge zero. Every tranche product is rounded to 10 decimal places half-even, mirroring Daml Decimal arithmetic.