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.