FAILURE MAP
← Case archive

FA-84830 / Betting odds conversion / Member archive

Lay price converted with the profit instead of the ratio · case 05

Laying at 3.00 is shown as backing the field at 2.00.

Member previewVariant 5 · 3 implementations · 7 checks per implementation

Case contract

Laying a selection at price L (> 1, else "invalid") is equivalent to backing "not this selection" at L / (L - 1). After exchange commission c percent on winnings, the effective price is 1 + (equivalent - 1) * (100 - c) / 100. Return both, rounded half up to three decimals.

Why this case matters

Matched-betting and trading calculators compare lay prices with bookmaker back prices.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
control lay evens["1.000", "1.000"]["2.000", "2.000"]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 ↗