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

MEV protection #1

Open
That3Percent opened this issue Jun 27, 2022 · 0 comments
Open

MEV protection #1

That3Percent opened this issue Jun 27, 2022 · 0 comments

Comments

@That3Percent
Copy link

Consider having the start block be block.number + 1. This prevents "MEV"-style attacks which would subscribe and unsubscribe in the same transaction for "free" (less gas costs) to pretend they were subscribers for a short time.

https://github.com/edgeandnode/subscription-payments-contract/blob/7b0368e4da25ece37440e0999fbeee652ad8b103/contracts/Subscriptions.sol#L85

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

No branches or pull requests

1 participant