-
Notifications
You must be signed in to change notification settings - Fork 10
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
🧩 ERC-7412 Support #9
Conversation
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.
LGTM, seems pretty straight forward.
My only question: is the intent by not restricting function calls to the trusted forwarder, to enable our own internal multicall to be used in the future?
@@ -11,4 +11,7 @@ contract OptimismParameters { | |||
0xb2F30A7C980f052f02563fb518dcc39e6bf38175; | |||
|
|||
address public constant PYTH = 0xff1a0f4744e8582DF1aE09D5611b887B6a12925C; | |||
|
|||
/// @custom:todo Optimism doesn't have a trusted forwarder yet | |||
address public constant TRUSTED_FORWARDER = address(0); |
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.
Question: Are we not going to use this contract yet then? We will just wait until the trusted forwarder is deployed on OP before we deploy our new SMv3?
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.
We will wait until the trusted forwarder is on OP before deploying
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.
LGTM 👍
One thing I am not clear on (separate to this PR) is how the |
Support calls to
ERC-7412.fulfillOracleQuery
function from the SMv3 EngineDescription
EIP7412.sol
ERC2771Context
toEngine.sol
msg.sender
withERC2771Context._msgSender()
_trustedForwarder
parameter to theEngine.constructor
EIP7412.sol
.env-example
(PRIVATE_KEY must now start with0x
else parsing will fail within deploy script)Related issue(s)
N/A
Motivation and Context
These changes are required to interact with Synthetix Perps v3 after it adopted ERC-7412