← All proofs

Claim

RANK DISCOUNTS DERIVED SERVER-SIDE

Status

PROVEN_IN_CODE (NEW)

Law

The rank discount is computed in the server debit path — floor-safe, surfaced verbatim, and fail-open at full price; no frontend price math.

Implementation

applyRankDiscount in the tier debit path; floor-safe; surfaced verbatim; fail-open at full price

Test

apps/api/tests/rank-discount.test.ts (3/3)

Limitation

credits rail only; USD wire amounts unaffected

Last verified

2026-10-17 · build edd6a6f (edd6a6f35dcab81b178a2e1ef1a31c2901aa67b8)

Reproduction

pnpm --filter @tollbridge/api test tests/rank-discount.test.ts