Skip to content

Fix bracket connector alignment (3+ rounds) - #98

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

Fix bracket connector alignment (3+ rounds)#98
rifkyeasy merged 4 commits into
mainfrom
dev

Conversation

@rifkyeasy

Copy link
Copy Markdown
Contributor

Knockout bracket paired R16 winners into the wrong quarter-finals. Root cause: alignRounds ran front-to-back, aligning a round to its successor's raw date order before that successor was itself reordered. Now aligns back-to-front. Adds a 3-round regression test.

rifkyeasy added 4 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)
@rifkyeasy
rifkyeasy merged commit 6d60e47 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