Documentation
    Preparing search index...
    • The inventory-impact potential of liability: the marginal rate rises linearly from zero to max_rate over scale, then stays capped:

      phi(L) = r_max * L^2 / (2B) for L <= B phi(L) = phi(B) + r_max * (L - B) for L > B.

      Defined by this exact sequence of rounded integer operations, so charges and rebates, which always subtract two evaluations, telescope exactly.

      Parameters

      Returns (tx: Transaction) => TransactionResult