Relaying fee specification in the locking transaction (eth-connector) #508
Replies: 3 comments 1 reply
-
My personal view is that pros are outweighing cons. A single transaction interaction is just what we need, just because we for sure don't want make user to wait until the transfer is completed. 7 min transfer Ethereum -> NEAR is still OK, but the transfer back of up to 17h is a disaster. No-one wants to check the FE to send additional transaction. Second con on the ETH fees will be the problem until we build something like OpenGSN for the relayers. This is an overcomplicated approach at the moment. We can think of the transaction submission process like:
In this model Relayer need to account for the risks of exchange rate change. In case there're multiple relayers (competition), a user would choose the one which behaves correctly and work with it. Plus, user transactions are public and any relayer can finalise the transfer. Mixing up logic is a very valid point, but I believe for now this simple solution is OK, and later we should update it with more appropriate option. |
Beta Was this translation helpful? Give feedback.
-
This might be an issue in both directions:
|
Beta Was this translation helpful? Give feedback.
-
Discussed over the phone with @mfornet . General points:
|
Beta Was this translation helpful? Give feedback.
-
Current implementation of the Ethereum-side connector includes the locking transaction with a
fee
parameter. This parameter represents the fee in ETH to be payed to the relayer, which will eventually (after the sync of the Ethereum light client) submit the fininalization transaction on the NEAR side and complete the transfer. This approach has pros and cons.Pros:
Cons:
We need to make a decision on the approach.
Beta Was this translation helpful? Give feedback.
All reactions