historical order query
This commit is contained in:
@@ -22,6 +22,7 @@ const price = computed(()=>{
|
|||||||
let p = s.poolPrices[route.pool]
|
let p = s.poolPrices[route.pool]
|
||||||
if( !p )
|
if( !p )
|
||||||
return ''
|
return ''
|
||||||
|
console.log('pool price is',p)
|
||||||
if( props.inverted )
|
if( props.inverted )
|
||||||
p = 1/p
|
p = 1/p
|
||||||
return p.toPrecision(props.precision)
|
return p.toPrecision(props.precision)
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ socket.on('p', async (chainId, pool, price) => {
|
|||||||
return
|
return
|
||||||
const prices = {}
|
const prices = {}
|
||||||
prices[pool] = price
|
prices[pool] = price
|
||||||
console.log('pool price', pool, price)
|
console.log('pool price from message', pool, price)
|
||||||
const poolPrices = s.poolPrices
|
const poolPrices = s.poolPrices
|
||||||
poolPrices[pool] = price
|
poolPrices[pool] = price
|
||||||
s.poolPrices = poolPrices
|
s.poolPrices = poolPrices
|
||||||
|
|||||||
Reference in New Issue
Block a user