Guard against duplicate - #2175
Merged
RUKAYAT-CODER merged 5 commits intoAug 24, 2026
Merged
Conversation
- Add inFlightRef and isPending state to ClaimButton to block repeat clicks during pending claims - Reset in-flight lock in finally block on success or failure - Add unit/regression tests for ClaimButton - Add performance benchmark verifying up to 99.9% duplicate request reduction - Document in-flight lock in CLAIM_BUTTON_IN_FLIGHT_LOCK.md and performance-optimizations.md Co-authored-by: gloskull <189399494+gloskull@users.noreply.github.com>
…82133940917134802 fix(rewards): guard against duplicate claims with in-flight lock
Contributor
|
Well done on the job done so far! |
Contributor
Author
|
Hello Maintainer, i've resolved the conflicts correctly. Please review and Merge |
Contributor
|
well done on the job so far! |
Contributor
Author
|
NOTED, i'd be done in abit |
Co-authored-by: gloskull <189399494+gloskull@users.noreply.github.com>
Fix Frontend CI Prettier format check
Contributor
Author
|
Fix Prettier formatting in FrontEnd/my-app/scripts/benchmarks/claim-button.bench.tsx to ensure npm run format:check and the Frontend CI pipeline succeed. ERRORS FIXED |
Contributor
Author
|
Hello Maintainer, please review and Merge. |
Contributor
|
Thank you for contributing to the project. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Guards against duplicate reward claim transactions by implementing a synchronous in-flight lock in ClaimButton. Includes unit tests, performance benchmarks, and documentation.
Closes EarnQuestOne#2150