@stake-dao/reader 0.4.96 → 0.4.97
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { formatUnits } from 'viem'
|
|
2
2
|
|
|
3
|
-
import { ONE_YEAR, OneEther,
|
|
3
|
+
import { ONE_YEAR, OneEther, curveStrats, mainnet } from '@stake-dao/constants'
|
|
4
4
|
import type { Price } from '../../../prices.js'
|
|
5
5
|
import { type SdtEmissionData, getSdtApr } from '../../../sdt.js'
|
|
6
6
|
import { equalTlc } from '../../../utils.js'
|
|
@@ -78,7 +78,6 @@ export const fetchCurve = async ({
|
|
|
78
78
|
// TODO stratsData type
|
|
79
79
|
let stratsData: any[] = []
|
|
80
80
|
|
|
81
|
-
const crv = tokenWithId('crv', chainId)
|
|
82
81
|
decodedPromise.forEach((d: any, index: number) => {
|
|
83
82
|
if (index === 0) {
|
|
84
83
|
if (chainId === mainnet.id) {
|
|
@@ -162,12 +161,13 @@ export const fetchCurve = async ({
|
|
|
162
161
|
periodFinish,
|
|
163
162
|
rate: formatUnits(r.rate, 0),
|
|
164
163
|
lastUpdate: formatUnits(r.last_update, 0),
|
|
165
|
-
claimablePendingRewards:
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
164
|
+
claimablePendingRewards: '0',
|
|
165
|
+
// claimablePendingRewards: equalTlc(v.rewardsTokens[rewardIndex], crv?.address!)
|
|
166
|
+
// ? formatUnits(v.claimablePendingRewards, 0)
|
|
167
|
+
// : formatUnits(
|
|
168
|
+
// v.claimableData.find((c: any) => c.token === v.rewardsTokens[rewardIndex])?.claimable || Zero,
|
|
169
|
+
// 0,
|
|
170
|
+
// ),
|
|
171
171
|
}
|
|
172
172
|
})
|
|
173
173
|
|