FAILURE MAP
← Case archive

FA-84797 / Betting odds conversion / Member archive

Acca bonus applied to the whole return or to the stake · case 02

Bonus payouts include a percentage of the stake.

Member previewVariant 2 · 3 implementations · 7 checks per implementation

Case contract

Winning accumulator bonus. Every leg price multiplies the accumulator. Legs priced at 1.20 or more qualify; the bonus percentage by qualifying count is {3: 5, 4: 10, 5: 15, 6: 20, 7: 25} with 7 or more paying 25 and fewer than 3 paying 0. The bonus is applied to the profit only: return = stake + profit * (100 + pct) / 100, rounded down. Return [qualifying legs, bonus pct, return cents].

Why this case matters

Acca promotions depend on minimum-odds qualification and apply the bonus to winnings.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
control treble[3, 5, 840][3, 5, 835]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 ↗