Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This one will never work in the current state because the sender and receiver are asserted in the static calls. Apart from that, the signatures validate with the Global Maker contract. I opted to pass some information to the Global Maker when it is constructed on where the maker address (/ from address) for specific call data will be. I do this by providing a list of function signatures and corresponding byte offsets. It makes it rather flexible and helper functions could be created to add more signatures without having to redeploy the contract.
There are multiple ways to get this to work. I assume a quick solution could be to add a call recipient address to
Order
(or something), and when present, pass that to the static call instead of the maker. Huge downside is that we have to changeOrder
, obviously. Another possible solution is abandoning this model and looking at a shared proxy contract via the registry perhaps.Input is appreciated.