Skip to content

Conversation

@wyc-dev
Copy link

@wyc-dev wyc-dev commented Nov 23, 2025

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:

  • The PR edits only existing draft PRs.
  • The build passes.
  • Your GitHub username or email address is listed in the 'author' header of all affected PRs, inside .
  • If matching on email address, the email address is the one publicly listed on your GitHub profile.

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.
@eip-review-bot
Copy link
Collaborator

eip-review-bot commented Nov 23, 2025

File ERCS/erc-6666.md

Requires 1 more reviewers from @g11tech, @SamWilsn, @xinbenlv

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
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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

Copy link
Author

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

wyc-dev and others added 2 commits November 24, 2025 19:14
Co-authored-by: Andrew B Coathup <[email protected]>
Co-authored-by: Andrew B Coathup <[email protected]>
@github-actions
Copy link

The commit b5f54fa (as a parent of 216f2f5) contains errors.
Please inspect the Run Summary for details.

@github-actions github-actions bot added the w-ci label Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants