Skip to content

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

@Zergity

Description

@Zergity

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions