tickerForOrder() fix
This commit is contained in:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user