Skip to content

Comments

Refactor payout distribution logic to require explicit claims from winners#291

Merged
greatest0fallt1me merged 1 commit intoPredictify-org:masterfrom
Jagadeeshftw:new-isuse
Jan 31, 2026
Merged

Refactor payout distribution logic to require explicit claims from winners#291
greatest0fallt1me merged 1 commit intoPredictify-org:masterfrom
Jagadeeshftw:new-isuse

Conversation

@Jagadeeshftw
Copy link
Contributor

  • Updated comments to clarify that winners must call claim_winnings(user, market_id) to receive payouts after market resolution.
  • Removed automatic payout distribution from the resolution process to prevent segfaults and ensure clarity in the claiming process.
  • Adjusted tests to reflect the new requirement for winners to explicitly claim their winnings, ensuring accurate state verification.

Closes #249

…nners

- Updated comments to clarify that winners must call `claim_winnings(user, market_id)` to receive payouts after market resolution.
- Removed automatic payout distribution from the resolution process to prevent segfaults and ensure clarity in the claiming process.
- Adjusted tests to reflect the new requirement for winners to explicitly claim their winnings, ensuring accurate state verification.
@Jagadeeshftw
Copy link
Contributor Author

@greatest0fallt1me Please review this PR. thanks.

@Jagadeeshftw
Copy link
Contributor Author

Please provide me with compliments for this Pr. I have worked on other issues as well in Predictify. Please check and provide compliments, @greatest0fallt1me

@greatest0fallt1me
Copy link
Contributor

LGTM!

@greatest0fallt1me greatest0fallt1me merged commit 8316a6e into Predictify-org:master Jan 31, 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.

feat: implement explicit claim winnings flow for resolved events

2 participants