Skip to content

Guard against duplicate - #2175

Merged
RUKAYAT-CODER merged 5 commits into
EarnQuestOne:mainfrom
gloskull:Guard-against-duplicate
Aug 24, 2026
Merged

Guard against duplicate#2175
RUKAYAT-CODER merged 5 commits into
EarnQuestOne:mainfrom
gloskull:Guard-against-duplicate

Conversation

@gloskull

Copy link
Copy Markdown
Contributor

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

google-labs-jules Bot and others added 2 commits August 22, 2026 07:40
- 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
@RUKAYAT-CODER

Copy link
Copy Markdown
Contributor

Well done on the job done so far!
Kindly resolve conflict and fix workflow to pass

@gloskull

Copy link
Copy Markdown
Contributor Author

Hello Maintainer, i've resolved the conflicts correctly. Please review and Merge

@RUKAYAT-CODER

RUKAYAT-CODER commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

well done on the job so far!
Kindly fix workflow to pass.
You can run npm run format

@gloskull

Copy link
Copy Markdown
Contributor Author

NOTED, i'd be done in abit

google-labs-jules Bot and others added 2 commits August 24, 2026 13:01
Co-authored-by: gloskull <189399494+gloskull@users.noreply.github.com>
@gloskull

Copy link
Copy Markdown
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
Closes #2150

@gloskull

Copy link
Copy Markdown
Contributor Author

Hello Maintainer, please review and Merge.

@RUKAYAT-CODER

RUKAYAT-CODER commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Thank you for contributing to the project.

@RUKAYAT-CODER
RUKAYAT-CODER merged commit 8f12d41 into EarnQuestOne:main Aug 24, 2026
3 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.

Guard against duplicate reward claims with an in-flight lock in ClaimButton

2 participants