alpha deployment

This commit is contained in:
Tim Olson
2023-11-16 17:36:44 -04:00
parent 0098d7f29f
commit 55591848be
10 changed files with 18 additions and 54 deletions

View File

@@ -6,6 +6,7 @@
import {useStore} from "@/store/store";
import {subPrices, unsubPrices} from "@/blockchain/prices.js";
import {computed, onBeforeUnmount} from "vue";
import {FixedNumber} from "ethers";
const s = useStore()
@@ -23,7 +24,8 @@ const price = computed(()=>{
if( !p )
return ''
p = Number(p) // TODO: Temporary workaround. Better to fix reason for p being set to string.
console.log('pool price is',p)
console.log('pool price is',typeof p, p)
p = FixedNumber.fromString(p)
if( props.inverted )
p = 1/p
return p.toPrecision(props.precision)