Skip to content

Position Avg/Current odds (entry snapshot + live) - #99

Merged
rifkyeasy merged 5 commits into
mainfrom
dev
Jul 8, 2026
Merged

Position Avg/Current odds (entry snapshot + live)#99
rifkyeasy merged 5 commits into
mainfrom
dev

Conversation

@rifkyeasy

Copy link
Copy Markdown
Contributor

Stores the picked outcome's odds at placement (entry_odds column, migrated) as the position 'Avg', and embeds live match odds in GET /predictions as 'Current'. Fixes the Avg/Current columns that always showed '—'.

rifkyeasy added 5 commits July 7, 2026 21:55
…ches — resolve to the closing-odds favorite after SETTLE_FALLBACK_HOURS (no-loss returns principal regardless), so staked positions never stay stuck when the feed has no final score; refresh OpenAPI docs (+19 endpoints, USDT0/addresses, v0.3.0)
…YIELD only (surplus over winners' stakes), never on principal, so a winner never receives less than their stake (e.g. all-on-winner markets return the full stake); default PROTOCOL_FEE_BPS 250→1000 (10% of yield)
… back-to-front (each round feeds its already-aligned successor) instead of front-to-back, so R16 winners map to the correct quarter-final slots (QF pairs were swapped when the QF itself had to be reordered to feed the semis)
…ed live match odds in GET /predictions (the 'current' price) — so the positions table shows real Avg/Current instead of '—'
@rifkyeasy
rifkyeasy merged commit 7fafe59 into main Jul 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant