Skip to content

No-loss pot distribution (fee on yield only) - #97

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

No-loss pot distribution (fee on yield only)#97
rifkyeasy merged 3 commits into
mainfrom
dev

Conversation

@rifkyeasy

Copy link
Copy Markdown
Contributor

Protocol fee now charged on yield (surplus over winners' stakes) only — never principal. A winner never receives less than their stake; all-on-winner markets return full stake. Fixes the phantom sub-stake payout that made a win look like a loss. Fee default 250→1000 (10% of yield). Tests updated.

rifkyeasy added 3 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)
@rifkyeasy
rifkyeasy merged commit ee61dce 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