FA-84742 / Betting odds conversion / Member archive
Maximum extra winnings cap applied to total profit or not at all · case 02
Large boosted bets exceed the promotional cap, or pay less than the unboosted price.
Case contract
Profit boost promotion. Normal profit = stake * (price - 1). The boost increases the profit by boost_pct percent, but the extra winnings over the normal profit are capped at max_extra_cents. The displayed boosted price is 1 + (price - 1) * (1 + boost/100) rounded half up to two decimals (display only). Return [displayed price, potential return = stake + floor(normal profit + extra)].
Why this case matters
Promotional boosts must be applied to profit, not stake, and respect maximum extra winnings.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| boundary capped extra | ["7.00", 7000] | ["7.00", 6000] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗