Skip to content

Feat/issues 1031 1032 1033 1034 - #1167

Merged
Ehonrie merged 3 commits into
Netwalls:mainfrom
deborah111haruna:feat/issues-1031-1032-1033-1034
Jul 28, 2026
Merged

Feat/issues 1031 1032 1033 1034#1167
Ehonrie merged 3 commits into
Netwalls:mainfrom
deborah111haruna:feat/issues-1031-1032-1033-1034

Conversation

@deborah111haruna

Copy link
Copy Markdown
Contributor

Market Resolution and Dispute Flow Implementation

Implement oracle-driven market resolution, dispute mechanism, and finalization workflow for the prediction market contract.

Changes

  • resolve_market: Oracle-driven market resolution with timestamp recording and dispute window activation
  • dispute_resolution: Bettor-initiated dispute mechanism allowing challenges within dispute window
  • finalize_resolution: Market finalization with permissionless (post-window) and admin-controlled (disputed) paths
  • cancel_market: Admin-only market cancellation with full refund mechanism
  • calculate_payout: Payout estimation utility using claim_winnings formula
  • Cleanup: Remove duplicate imports, functions, and malformed code; fix place_bet implementation

Closes

Closes #1031
Closes #1032
Closes #1033
Closes #1034

…functions

- Implement finalize_resolution (Issue Netwalls#1033) with permissionless and admin-controlled paths
- Fix resolve_dispute to use correct admin validation
- Remove duplicate get_market_info, get_bet implementations
- Fix get_bets_by_address by removing duplicate code
- Implement calculate_payout function with proper payout calculation
…1032

- Rename raise_dispute to dispute_resolution to match Issue Netwalls#1032 naming
- Update event name to 'resolution_disputed' as per issue requirement
- Function allows bettors to challenge submitted market resolutions
- Enforces bettor must have existing bets and be within dispute window
@Ehonrie
Ehonrie merged commit f1f0676 into Netwalls:main Jul 28, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants