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 claimDelayedWithdrawals to not pull on its own #44

Closed

Conversation

danoctavian
Copy link
Contributor

@danoctavian danoctavian commented Mar 16, 2024

Since DelayedWithdrawalRouter.claimDelayedWithdrawals can be called by anyone.

Existing logic assumes it's permissioned (it's not).

Refactor code so that you can support that assuming anyone can call it.

The way to solve that is to register withdrawn validators before pulling the funds.

This way you don't tax principal and it's just put back into the pool

@danoctavian danoctavian changed the base branch from audit/yieldnest-mvp to release-candidate March 20, 2024 12:59
@danoctavian danoctavian force-pushed the fix/claimDelayedWithdrawals-external-call branch 2 times, most recently from 2043fa8 to e9bdd6a Compare March 23, 2024 13:01
@danoctavian danoctavian force-pushed the fix/claimDelayedWithdrawals-external-call branch from e9bdd6a to 9181157 Compare March 25, 2024 08:30
@danoctavian danoctavian force-pushed the fix/claimDelayedWithdrawals-external-call branch from d9478c8 to b0c358c Compare March 25, 2024 13:41
@danoctavian danoctavian deleted the fix/claimDelayedWithdrawals-external-call branch May 24, 2024 11:57
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.

1 participant