FA-84834 / Betting odds conversion / Member archive
Commission deducted from the whole price · case 04
Effective prices are reduced by commission on the stake as well as winnings.
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 fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| control lay favourite | ["3.000", "2.850"] | ["3.000", "2.900"] | 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 ↗