Skip to content

feat(contracts): add prediction market contract#444

Merged
adams813 merged 1 commit into
benelabs:mainfrom
Gezziy:prediction-market
Jun 3, 2026
Merged

feat(contracts): add prediction market contract#444
adams813 merged 1 commit into
benelabs:mainfrom
Gezziy:prediction-market

Conversation

@Gezziy
Copy link
Copy Markdown
Contributor

@Gezziy Gezziy commented Jun 1, 2026

closes #394
Summary
Adds a new Soroban prediction market contract example with:

Binary YES/NO outcomes
Token-collateralized market positions
Admin-controlled resolution after market close
Proportional payouts for winning positions
Protection against invalid buys, early resolution, double resolution, losing claims, and double claims
Unit tests covering lifecycle, accounting, timing, auth, and payout behavior

Reason
This implements the MVP-critical Prediction Market contract requested in issue #394, integrating it cleanly into the existing examples workspace and following the established contract/test structure.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 1, 2026

@Gezziy Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@adams813
Copy link
Copy Markdown
Collaborator

adams813 commented Jun 3, 2026

Nice implementation, LGTM!

@adams813 adams813 merged commit 6b53b60 into benelabs:main Jun 3, 2026
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.

[Contracts] Implement Prediction Market contract

3 participants