Executor
Improvements
#752
LayneHaber
started this conversation in
Archive
Replies: 3 comments 1 reply
-
I think that is a good idea to remove |
Beta Was this translation helpful? Give feedback.
1 reply
-
Updated to reflect that #748 will not calculate costs onchain. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Implemented in #865 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Remove the
ReentrancyGuard
for gas savings, no longer necessary with theonlyTransactionManager
modifier. Update the order of actions. Adopt the contract calculation ofrelayerFee
outlined here.Motivation
There are a few improvements to the
FulfillInterpreter
that were recommended during the last audit:Both are minor issues, and have gotten different feedback from different auditors, but should be addressed regardless.
Additionally, calculating the appropriate
relayerFees
necessary for executing arbitrary calldata is complex. The routers only care if they are relaying the transaction, but relayer networks will start to enforce these are sensible as well.Proposed Solution
Failure Case
Reentrancy
ReentrancyGuard
and rely solely on theonlyTransactionManager
modifierGas Costs
prepare
the transaction what the approximate cost of the execution ofcalldata
on the receiving chain will be. This is because they must include enough in theSenderPrepare
to cover the router fees, relayer fees, and be sufficient to get across chainscalldata
is encrypted, nobody else can assess this ahead of time. Additionally, it may fail on.estimateGas
calls until theFulfill
is done.SenderPrepare
. We should allow the user to pass in thegasPrice
and thegasLimit
for a givenfulfill
transaction to the sdk functions, and continue to emit therelayerFee
used in events.Test Cases
Not sure what test cases could be included to assess these changes outside of the expected scope of other tests.
Outstanding Questions
Tasks
Beta Was this translation helpful? Give feedback.
All reactions