Skip to content

Implement resolve_pool function with oracle/admin authorization#298

Merged
martinvibes merged 2 commits intoWeb3Novalabs:mainfrom
Ndifreke000:main
Jan 29, 2026
Merged

Implement resolve_pool function with oracle/admin authorization#298
martinvibes merged 2 commits intoWeb3Novalabs:mainfrom
Ndifreke000:main

Conversation

@Ndifreke000
Copy link
Contributor

Closes #245

  • Add Admin/Operator role-based authorization for pool resolution
  • Validate pool state (exists, not resolved, ended, within resolution window)
  • Validate outcome is within valid range (< options_count)
  • Calculate and store winning stakes
  • Emit PoolResolvedEvent with resolution details
  • Fix role references in tests (Oracle -> Operator, User -> Moderator)
  • Simplify place_prediction authorization logic
  • All acceptance criteria met

- Add Admin/Operator role-based authorization for pool resolution
- Validate pool state (exists, not resolved, ended, within resolution window)
- Validate outcome is within valid range (< options_count)
- Calculate and store winning stakes
- Emit PoolResolvedEvent with resolution details
- Fix role references in tests (Oracle -> Operator, User -> Moderator)
- Simplify place_prediction authorization logic
- All acceptance criteria met
@vercel
Copy link

vercel bot commented Jan 29, 2026

@Ndifreke000 is attempting to deploy a commit to the shola's projects Team on Vercel.

A member of the Team first needs to authorize it.

@martinvibes
Copy link
Collaborator

LGTM

@martinvibes martinvibes merged commit 858d0c3 into Web3Novalabs:main Jan 29, 2026
1 of 2 checks 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.

Implement resolve_pool Function

2 participants