Skip to content

Commit

Permalink
temporary fix for useVaultPrice
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalsine85 committed Jul 8, 2023
1 parent 046c88e commit 318034c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/hooks/gauges/useGaugeTVL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,21 @@ const useGaugeTVL = (gauge: ActiveSupportedGauge) => {
const bao = useBao()
const poolInfo = usePoolInfo(gauge)
const gaugeInfo = useGaugeInfo(gauge)
const bSTBLPrice = useVaultPrice(Config.vaults['baoUSD'].markets[1].vaultAddresses[chainId], 'baoUSD')
const baoUSDPrice = useVaultPrice(Config.vaults['baoUSD'].markets[3].vaultAddresses[chainId], 'baoUSD')
const bETHPrice = useVaultPrice(Config.vaults['baoETH'].markets[1].vaultAddresses[chainId], 'baoETH')
const baoETHPrice = useVaultPrice(Config.vaults['baoETH'].markets[2].vaultAddresses[chainId], 'baoETH')
const bSTBLPrice = usePrice('dai') //useVaultPrice(Config.vaults['baoUSD'].markets[1].vaultAddresses[chainId], 'baoUSD')
const baoUSDPrice = usePrice('dai') //useVaultPrice(Config.vaults['baoUSD'].markets[3].vaultAddresses[chainId], 'baoUSD')
const bETHPrice = usePrice('ethereum') // useVaultPrice(Config.vaults['baoETH'].markets[1].vaultAddresses[chainId], 'baoETH')
const baoETHPrice = usePrice('ethereum') //useVaultPrice(Config.vaults['baoETH'].markets[2].vaultAddresses[chainId], 'baoETH')
const daiPrice = usePrice('dai')
const ethPrice = usePrice('ethereum')
const threeCrvPrice = usePrice('lp-3pool-curve')
const baoPrice = usePrice('bao-finance-v2')
const lusdPrice = usePrice('liquity-usd')

console.log('baoUSD Price', formatUnits(baoUSDPrice))
console.log('bSTBL Price', formatUnits(bSTBLPrice))
console.log('bETH Price', formatUnits(bETHPrice))
console.log('baoETH Price', formatUnits(baoETHPrice))

const [baoUSDlusdPrice, setBaoUSDlusdPrice] = useState<BigNumber>(BigNumber.from(0))
const [baoETHethPrice, setBaoETHethPrice] = useState<BigNumber>(BigNumber.from(0))
const [bETHbaoETHPrice, setBETHbaoETHPrice] = useState<BigNumber>(BigNumber.from(0))
Expand Down

0 comments on commit 318034c

Please sign in to comment.