Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: already claimed tokens should not be in claim proof #240

Merged
merged 3 commits into from
Nov 20, 2024

Conversation

shrimalmadhur
Copy link
Collaborator

Fixes # .

What Changed?

The current logic generates proof for tokens where all the amount has already been claimed. The current smart contract logic https://github.com/Layr-Labs/eigenlayer-contracts/blob/ac57bc1b28c83d9d7143c0da19167c148c3596a3/src/contracts/core/RewardsCoordinator.sol#L575-L578 expects that the claim proof should only have token where there's something eligible for claiming. the S3 root provides all the tokens no matter if it's claimable or not as it provides cummulative state.

We added a filter which would filter out tokens where s3 root amount is equal to the cummulative claimed from onchain state for a particular token

@shrimalmadhur shrimalmadhur merged commit 5f6537f into master Nov 20, 2024
8 checks passed
@shrimalmadhur shrimalmadhur deleted the madhur/fix-bug-for-already-claimed-tokens branch November 20, 2024 23:13
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