Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@hanzel98
Copy link
Contributor

@hanzel98 hanzel98 commented Mar 7, 2025

What?

  • Enforces that only the leaf delegator can call SwapByDelegation

Why?

  • It is important to prevent anyone but the leaf delegator from calling SwapByDelegation because this prevents frontrunning attacks.

How?

  • Validating the first delegation in the chain and making sure the delegator is the same as the msg.sender

@hanzel98 hanzel98 requested a review from a team as a code owner March 7, 2025 22:18
@hanzel98 hanzel98 self-assigned this Mar 7, 2025
@hanzel98 hanzel98 merged commit 16bb886 into main Mar 8, 2025
4 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.

3 participants