historical order query

This commit is contained in:
Tim Olson
2023-11-13 20:55:57 -04:00
parent 580f0f0f9b
commit e0eea24f00
2 changed files with 2 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ const price = computed(()=>{
let p = s.poolPrices[route.pool]
if( !p )
return ''
console.log('pool price is',p)
if( props.inverted )
p = 1/p
return p.toPrecision(props.precision)

View File

@@ -31,7 +31,7 @@ socket.on('p', async (chainId, pool, price) => {
return
const prices = {}
prices[pool] = price
console.log('pool price', pool, price)
console.log('pool price from message', pool, price)
const poolPrices = s.poolPrices
poolPrices[pool] = price
s.poolPrices = poolPrices