Closed
Conversation
Contributor
|
Change looks good! I think that the code here looks nicer and that this scheme is more future proof. On the other hand, 750 gas per order is a non-negligible amount. This was a surprise to me (given that this should be a Some other things to consider when talking about re-deploying contracts like this:
|
Contributor
|
We have decided not to have this PR in the first version. But once we update the smart contract, in order to deal with Nic's excellent update order strategy, we might also add this PR again. Hence, let's keep it open for now. |
Contributor
|
Old. re-open if needed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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 is a naïve implementation of @nlordell suggestion of using more general arbitrary extra data instead of explicitly specifying
quoteId, as in the future we might want to transmit different data to the backend from the contract (e.g. future new parameters or modified parameter types).Unfortunately, it looks like these changes increase the gas cost of creating an order of about 700 gas:
Considering that the ETH flow contract is easily replaceable in case we change the format of our backend, my preference goes against these changes, even if I consider using
extraDatacleaner and easier in terms of making the code understandable.CC @josojo.