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

Add full SOR support for MixedRoutes #101

Merged
merged 133 commits into from
Aug 10, 2022
Merged

Conversation

zhongeric
Copy link
Contributor

@zhongeric zhongeric commented Jun 22, 2022

Main areas of concern:

  • New getMixedRouteCandidatePools() in get-candidate-pools.ts, especially the logic for the heuristic implementation.
  • Refactor of V3QuoteProvider to OnChainQuoteProvider, as well as introducing the generic type used to create instances of the class.
  • Logic around what we should do for other networks besides mainnet for mxiedRoutes (we currently only create an instance of MixedRouteQuoteProvider for mainnet + eth testnets)

Note: package-lock should not change besides the resolved versions of ethers and ethersproject/providers being ^5.6.1 and ^5.4.0, respectively. I think current diff is from installing a local tarball of router-sdk, but will fix before merging.

@zhongeric zhongeric merged commit 9e656a8 into main Aug 10, 2022
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.

Support mixed paths in SOR & successfully find IL quotes
3 participants