This repository was archived by the owner on Oct 15, 2024. It is now read-only.
feat: support ExchangeProxy for swap quotes (Swap V1)#262
Merged
Conversation
ed60524 to
04817eb
Compare
24e147b to
c0ad8bd
Compare
dekz
reviewed
Jun 24, 2020
dekz
suggested changes
Jun 24, 2020
Contributor
Author
|
deploy staging |
c4f64f2 to
d79a170
Compare
0a2fad6 to
e57bb80
Compare
dekz
previously requested changes
Jun 25, 2020
2a98d3b to
7b443d7
Compare
03f92e7 to
7264975
Compare
xianny
commented
Jun 25, 2020
Contributor
Author
|
deploy staging |
324e35b to
1d0235f
Compare
Member
|
deploy staging |
f4ef0a1 to
37cccb2
Compare
Contributor
Author
|
deploy staging |
09baeb2 to
1967bfc
Compare
Contributor
|
deploy staging |
Contributor
|
deploy staging |
Contributor
|
deploy staging |
Member
|
deploy staging |
5e8955e to
feaf5d4
Compare
2dfe8cb to
fb9b8d9
Compare
Member
Member
|
deploy staging |
Member
Member
|
deploy production |
|
🎉 This PR is included in version 1.11.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
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.





Description
Introduces
swap/v1and preserves old functionality inswap/v0.Changes:
shouldBatchBridgeOrders(waiting for "on-chain fills without protocol fees" to ship)Note on versioning
This PR adds paths for V0 and V1 functionality within the code. This approach is less than ideal as code complexity can quickly grow unmanageable. We're doing this as a one-off because V1 does not have significant changes compared to V0. We'll need to revisit our approach for future major version bumps.
Additional context: Technically V1 does not have breaking interface changes from V0 and might not warrant a major version bump. However, one of our integrators who rely on hardcoded contract addresses or users not expecting a new allowance target will have a badd experience. We'll be running V0 and V1 concurrently to support them. Discussion is still open as to how we will approach similar situations in the future.
Testing Instructions
Existing unit tests have been copied and moved
swap_test.ts->swap_v0_test.tswith no meaningful changes. These should still pass.swap_test.tshas the same tests as before, with one difference. WhensellToken=ETHit should return the exchange proxy address instead of the forwarder address as thetofield.Checklist
[WIP]if necessary.This PR now includes Balancer changes from #277
DO NOT MERGE until: