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

SDK: allow indexR address to be passed to swap and simulate #1

Open
Zergity opened this issue Dec 23, 2024 · 0 comments
Open

SDK: allow indexR address to be passed to swap and simulate #1

Zergity opened this issue Dec 23, 2024 · 0 comments
Assignees

Comments

@Zergity
Copy link
Contributor

Zergity commented Dec 23, 2024

INDEX_R: this.getIndexR(TOKEN_R)

INDEX_R is the Uniswap v3 pool address of the TOKEN_R (reserve token) and a stablecoin (USDC, USDT), it is passed to the swap tx to track the reserve price for historical data.

getIndexR try to find the pool in the whitelisted routes, which usually don't have all unpopular token. So it's best to allow client to pass the indexR (bytes32) in.

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

2 participants