Skip to content
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

Merged
merged 25 commits into from
Apr 7, 2022
Merged

sushi token resolver #117

merged 25 commits into from
Apr 7, 2022

Conversation

krisbitney
Copy link
Contributor

includes sushiswap and sushibar

return [token0AddressResult.unwrap(), token1AddressResult.unwrap()];
}

function getSushiSwapComponents(
Copy link
Collaborator

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?

Copy link
Contributor Author

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??

Copy link
Contributor Author

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.

Copy link
Collaborator

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.

Copy link
Collaborator

@Niraj-Kamdar Niraj-Kamdar left a 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
@krisbitney krisbitney merged commit a4d6d6a into nk/defiwrapper-alpha Apr 7, 2022
@krisbitney krisbitney deleted the sushi-token-resolver branch April 8, 2022 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants