FAILURE MAP
← Case archive

FA-84740 / Betting odds conversion / Member archive

Boost applied to the whole price instead of the profit · case 05

A 25 percent boost on 2.00 pays as if the price were 2.50.

Member previewVariant 5 · 3 implementations · 7 checks per implementation

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 fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
control boosted evens["2.25", 2500]["2.25", 2250]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 ↗