-
Notifications
You must be signed in to change notification settings - Fork 80
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
fix(universal-router-sdk): handles all ETH/WETH transitions #157
Merged
Merged
Changes from 18 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
d6cdba7
universal-router-sdk handles ETH output fee
ewilz f2b0019
tests to wrap ETH output to WETH for recipient, fails need v4-sdk bug…
ewilz 1de6365
fix encodeToPath
ewilz ae9d28d
add test cases (so I can see clean diff) and small var rename
ewilz f042591
Revert "fix encodeToPath"
ewilz 043c608
tons of tests failing, have to find what changed
ewilz eb8c695
found bug all previous tests now back to passing, moving onto my new …
ewilz 3ab3903
install new v4-sdk
ewilz dec6963
import new router-sdk
ewilz 40804e0
Merge remote-tracking branch 'origin/main' into ur-weth-eth
ewilz 8064579
all tests passing, still more tests to put in solidity
ewilz 5f78eb8
lint
ewilz e54cc77
Merge remote-tracking branch 'origin/main' into ur-weth-eth
ewilz f7fc070
lint interop
ewilz 9e97a40
support unwrapping WETH to trade ETH on v4
ewilz 5529762
support wrapping ETH to trade on V4 (exact output)
ewilz 0553c96
lint
ewilz 1b49ea1
force types to appease build (better way to do this??)
ewilz f445984
PR comments
ewilz 38ebceb
PR comments
ewilz 73457b3
woops forgot one PR comment
ewilz e941e22
Merge remote-tracking branch 'origin/main' into ur-weth-eth
ewilz 61c8505
revert submodule change
ewilz b89f494
Merge branch 'main' into ur-weth-eth
ewilz b38b124
refund ETH on exactOutput native trade
ewilz 276aa21
typo
ewilz bf5cb50
lint
ewilz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { Currency } from '@uniswap/sdk-core' | ||
import { ETH_ADDRESS } from './constants' | ||
|
||
export function getCurrencyAddress(currency: Currency): string { | ||
return currency.isNative ? ETH_ADDRESS : currency.wrapped.address | ||
} |
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
could just be done using a
this.payerIsUser = () ? false : true
might be clearer?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.
linting on this is ugly IMO but could be done...
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.
ok fair