Skip to content

fix(quest-engine): prevent duplicate explore quest payouts#97

Open
syed-ghufran-hassan wants to merge 5 commits into
learnault:mainfrom
syed-ghufran-hassan:feat/explore-verification-replay-guard
Open

fix(quest-engine): prevent duplicate explore quest payouts#97
syed-ghufran-hassan wants to merge 5 commits into
learnault:mainfrom
syed-ghufran-hassan:feat/explore-verification-replay-guard

Conversation

@syed-ghufran-hassan

@syed-ghufran-hassan syed-ghufran-hassan commented Jul 26, 2026

Copy link
Copy Markdown
  • Add ExploreVerification DataKey to track (learner, quest_id)
  • Check verification marker before processing payout
  • Revert with clear panic if duplicate verification
  • Persist verification marker after successful payout
  • Add comprehensive tests for replay protection
  • Different learners on same quest remain independently payable

Closes #91

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.

[QuestEngine] Prevent duplicate Explore quest verification payouts

1 participant