Skip to content

Message Relayer #116

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

Open
wants to merge 5 commits into
base: decouple-eth-bridge
Choose a base branch
from
Open

Message Relayer #116

wants to merge 5 commits into from

Conversation

LeoPatOZ
Copy link
Collaborator

@LeoPatOZ LeoPatOZ commented May 1, 2025

In order to abstract away fees / gas limits, we can introduce a third party contract that relays the deposit message and deals with fees. The simple flow is:

  • User specifies the deposit is to be fulfilled by a relayer by setting the 'to' address to a relayer contract (of their choosing)
  • Relayer contract calls claimDeposit on behalf of user - receiving the deposited ETH
  • It forwards the call to any contract / EOA as specified by the user
  • Takes a fee (specified by the user in the data) for completing this task

The relayer profits the difference between the fee and any gas cost incurred by calling relayMessage. It is up to the relayer to determine if this is a profitable trade for them. The user will always get a determined amount (i.e amount deposited - fee).

I suspect other protocols / relayers might deploy their own relayer contract with a more complex fee mechanism.

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.

1 participant