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

Create a Smart Order Router (SOR) Package #11

Open
stxphxn opened this issue Jun 26, 2023 · 0 comments
Open

Create a Smart Order Router (SOR) Package #11

stxphxn opened this issue Jun 26, 2023 · 0 comments
Assignees

Comments

@stxphxn
Copy link
Collaborator

stxphxn commented Jun 26, 2023

Description:

The task at hand is to develop a Smart Order Router (SOR) package. The SOR's function is to find the optimal swaps for a given input and output tokens, whether that be a direct swap within one pool or a combination of swaps navigating through multiple pools.

Tasks include:

  • Develop a SOR package using TypeScript
  • The SOR should take as input the desired input and output tokens
  • Implement logic to determine the most optimal swaps, whether they are direct or multi-hop
  • Optimal routing should consider factors such as slippage, gas fees, and liquidity depth
  • Handle potential errors and exceptions gracefully, providing clear error messages

Acceptance Criteria:

  • The SOR package is able to correctly identify and return the optimal swap path
  • The package correctly handles a variety of scenarios including direct swaps and multi-pool hops
  • The SOR correctly accounts for factors like slippage, gas fees, and liquidity depth in its calculations
  • The package handles potential errors or exceptions correctly
@stxphxn stxphxn added this to the Frontend🖥🎨 milestone Jun 26, 2023
@stxphxn stxphxn self-assigned this Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant