@stake-dao/reader 0.4.61 → 0.4.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@ import { getFarmApr } from './pancakeswapMath.js'
|
|
|
8
8
|
import { STRAT_FEES, contracts, tokenWithId } from '@stake-dao/constants'
|
|
9
9
|
import { buildPancakeSwapStrategies, concatBytecode } from '../../../index.js'
|
|
10
10
|
import { type Price, mergePrices } from '../../../prices.js'
|
|
11
|
-
import { batchJsonRpc, equalTlc } from '../../../utils.js'
|
|
11
|
+
import { batchJsonRpc, equalTlc, lc } from '../../../utils.js'
|
|
12
12
|
import type { PancakeSwapGlobalData } from '../../types.js'
|
|
13
13
|
import { getAprBreakdown } from '../../utils/getAprBreakdown.js'
|
|
14
14
|
import { getPancakeV3Positions } from './getPancakeV3Positions.js'
|
|
@@ -123,7 +123,7 @@ export const getPancakeV3Vaults = async (
|
|
|
123
123
|
return computedPositionData.positionData
|
|
124
124
|
})
|
|
125
125
|
|
|
126
|
-
const protocolTvlData = stakedTVLS[strat.pool]
|
|
126
|
+
const protocolTvlData = stakedTVLS[lc(strat.pool)]
|
|
127
127
|
const protocolTvl = protocolTvlData
|
|
128
128
|
? Number(protocolTvlData.token0) * token0PriceInUsd + Number(protocolTvlData.token1) * token1PriceInUsd
|
|
129
129
|
: 0
|