-
Notifications
You must be signed in to change notification settings - Fork 13
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
sushi token resolver #117
sushi token resolver #117
Conversation
…getComponents in token resolver interface
…-token-resolver # Conflicts: # .prettierignore
…-token-resolver # Conflicts: # .prettierignore # packages/core-sdk/resolvers/token-resolvers/resolvers/curve/src/query/__tests__/e2e/integration.spec.ts
packages/core-sdk/resolvers/token-resolvers/resolvers/sushi/src/query/constants.ts
Outdated
Show resolved
Hide resolved
...core-sdk/resolvers/token-resolvers/resolvers/sushi/src/query/functions/getTokenComponents.ts
Outdated
Show resolved
Hide resolved
return [token0AddressResult.unwrap(), token1AddressResult.unwrap()]; | ||
} | ||
|
||
function getSushiSwapComponents( |
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.
I am wondering whether we should re-use the uniswap token resolver here?
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.
What is the best way to do that? They are in different packages, so should we add the uniswap token resolver to npm and then add it as a dependency in the sushi token resolver??
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.
Sorry, I just realized I misread your original comment. They are similar enough that we could combine them into one token resolver. I think same with linkswap. The main difference is in the contract addresses being queried, and sushibar is a little different.
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.
Exactly, but for now, let's keep it as it is and open an issue to investigate this further.
…-token-resolver # Conflicts: # .prettierignore
…-token-resolver # Conflicts: # .prettierignore
…-token-resolver # Conflicts: # yarn.lock
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!
…-token-resolver # Conflicts: # .prettierignore
includes sushiswap and sushibar