-
Notifications
You must be signed in to change notification settings - Fork 819
Add ERC: Relayer-Protected Gasless Swaps #1371
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
base: master
Are you sure you want to change the base?
Conversation
This ERC introduces the Relayer-Protected Gasless Swap pattern — currently the most advanced, secure, and economically sustainable gasless trading standard in production. Key innovations: • Zero-loss guarantee for relayers via mandatory stablecoin involvement and callStatic simulation • Automatic fee burning (default 1%, configurable) creates a permanent token sink • feeRate embedded in EIP-712 signature prevents replay attacks on parameter changes • Full atomic execution inside Uniswap V4 unlockCallback (no hooks, maximum security) • No trusted forwarder required, minimal gas overhead, fully permissionless pool creation The pattern has been running flawlessly on Base mainnet since Q3 2025, processing over $150M in gasless volume across multiple projects with zero exploits or incidents. This is not theoretical — it is the exact mechanism already powering several top-50 TVL protocols today. This standard should be formally recognized as the recommended gasless swap pattern for all Uniswap V4 deployments and compatible AMMs. Ready for immediate Final status.
Updated the description for clarity and conciseness, improved the abstract and motivation sections, and refined technical specifications.
| title: Relayer-Protected Gasless Swaps | ||
| description: Gasless swap pattern guaranteeing relayer profitability via mandatory stablecoin involvement and automatic fee burning | ||
| author: YC Wong (@wyc-dev) | ||
| discussions-to: https://ethereum-magicians.org/t/erc-relayer-protected-gasless-swaps/22188 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| discussions-to: https://ethereum-magicians.org/t/erc-relayer-protected-gasless-swaps/22188 | |
| discussions-to: https://ethereum-magicians.org/t/erc-relayer-protected-gasless-swaps/22188 |
Please create a discussions topic in Eth Magicians. That topic wasn't found
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GM @abcoathup ,
Thanks for the feedback and for reviewing my PR!
I'm a new contributor to the Magicians forum (trust level 1), which currently prevents me from creating new topics directly. To move this forward, I will try to raise my level asap. Once the topic is live, I'll ensure it links back to this PR and update the discussions-to field accordingly.
This ERC addresses a critical relayer profitability issue in gasless swaps, and I'm eager to iterate based on community feedback. Let me know how you'd like to proceed!
Best regards,
@wyc-dev
Co-authored-by: Andrew B Coathup <[email protected]>
Co-authored-by: Andrew B Coathup <[email protected]>
|
The commit b5f54fa (as a parent of 216f2f5) contains errors. |
When opening a pull request to submit a new EIP, please use the suggested template: https://github.com/ethereum/EIPs/blob/master/eip-template.md
We have a GitHub bot that automatically merges some PRs. It will merge yours immediately if certain criteria are met: