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

Develop script for estimating a multi-hop exchange rate between any two tokens #1

Open
danfinlay opened this issue Mar 23, 2020 · 0 comments

Comments

@danfinlay
Copy link
Owner

danfinlay commented Mar 23, 2020

Per the readme directive:

Develop tools for allowing easy multi-hop personal token exchange, so that larger and larger networks of people with personal tokens can access each others' liquidity and services.

As a creator of a personal token with an exchange rate on uniswap with exchange rates for some other tokens, but not all tokens,

I would like to easily view "the best price I could possibly get for X of my tokens" (or "maximal flow") of another token.

Acceptance Criteria

Simplest typescript method signature:

type BestPriceGetter = (myTokenAddress: string, myTokenQuantity:string, targetTokenAddress:string) => Promise<targetTokenQuantity:string>
  • A JavaScript module that can run in a browser.

Stretch goals

It would be even better if the function returned a graph representing the series of trades required to redeem that price.

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

No branches or pull requests

1 participant