This commit is contained in:
Tim
2024-01-23 01:32:44 -04:00
parent 0e5a4bac6d
commit ee021c9590
6 changed files with 63 additions and 3 deletions

View File

@@ -8,6 +8,7 @@ import {subPrices, unsubPrices, WIDE_PRICE_FORMAT} from "@/blockchain/prices.js"
import {computed, onBeforeUnmount} from "vue";
import {FixedNumber} from "ethers";
import {routeInverted} from "@/misc.js";
import {subOHLCs} from "@/blockchain/ohlcs.js";
const s = useStore()
const os = useOrderStore()
@@ -37,8 +38,10 @@ const price = computed(()=>{
return p.toPrecision(props.precision)
})
if( route.value )
if( route.value ) {
subPrices([route.value])
subOHLCs( s.chainId.value, [[route.value.pool,'1D']])
}
else
console.log('route is empty: no price')