tickerForOrder() fix

This commit is contained in:
tim
2024-10-11 17:35:17 -04:00
parent 43a11b057b
commit 4b5626094a

View File

@@ -86,8 +86,7 @@ const feeGroups = {} // keyed by ticker without the final fee field. values are
// symbol is keyed by the `ticker` which is defined as 'chain_id|pool_addr' for absolute uniqueness.
export function tickerForOrder(chainId, order) {
const [exchange, fee] = order.route
return tickerKey(chainId, exchange, order.tokenIn, order.tokenOut, fee, true)
return tickerKey(chainId, order.route.exchange, order.tokenIn, order.tokenOut, order.route.fee, true)
}
export function tickerKey(chainId, exchange, tokenAddrA, tokenAddrB, fee, chooseInversion=false ) {