Skip to content

Fix concurrency issue with Ethena claims - #336

Merged
naddison36 merged 1 commit into
mainfrom
nicka/fix-ethena-claims
Aug 13, 2026
Merged

Fix concurrency issue with Ethena claims#336
naddison36 merged 1 commit into
mainfrom
nicka/fix-ethena-claims

Conversation

@naddison36

@naddison36 naddison36 commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fixes a race condition in the automated Ethena withdrawal claim action.

The action previously fetched totalRequests and individual unstaker states using separate latest RPC calls. A concurrent request or claim could therefore produce a mixed snapshot, causing the action to infer an invalid FIFO position and fail with errors such as:

Missing Ethena unstaker 28 for pending request 238

Changes

  • Pin all Ethena queue reads to a single block
  • Use the same block for adapter state, unstaker mappings, cooldown data, and timestamp checks
  • Include the snapshot block number in queue consistency errors
  • Update the queue consistency test

@naddison36
naddison36 merged commit e01e88e into main Aug 13, 2026
6 of 7 checks passed
@naddison36
naddison36 deleted the nicka/fix-ethena-claims branch August 13, 2026 09:08
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.

2 participants