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

BAL Hookathon - MEV Tax Hook #102

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

gerrrg
Copy link

@gerrrg gerrrg commented Oct 19, 2024

The MEV Tax Hook allows Balancer pools to capture their own MEV by charging a dynamic swap fee based on the priority fee of transactions interacting with them.

The hook calculates the priority fee, then multiplies this by a configurable tax multiplier to determine the tax owed. This dynamic fee is combined with the swap's static base fee, enabling the pool to capture a portion of the MEV generated by high-priority transactions.

Copy link

vercel bot commented Oct 19, 2024

@gerrrg is attempting to deploy a commit to the Matt Pereira's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

@danielmkm danielmkm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, really cool to see this implemented as a dynamic fee. There's been internal discussion on whether it'd be better as a dynamic fee or a custom router (which would facilitate paying the fee in ETH). The dynamic fee implementation is simple and clean.

@mendesfabio
Copy link
Member

this is very cool! I thought about implementing it but you front-ran 😆

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