@curvefi/api 2.66.5 → 2.66.7
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/lib/dao.js +2 -1
- package/lib/interfaces.d.ts +1 -0
- package/lib/pools/subClasses/statsPool.js +1 -1
- package/package.json +1 -1
package/lib/dao.js
CHANGED
|
@@ -225,7 +225,8 @@ export const userGaugeVotes = (...args_1) => __awaiter(void 0, [...args_1], void
|
|
|
225
225
|
const gaugeData = Object.values(yield _getAllGauges());
|
|
226
226
|
const calls = [veMulticallContract.balanceOf(address)];
|
|
227
227
|
for (const d of gaugeData) {
|
|
228
|
-
|
|
228
|
+
const gaugeAddress = d.rootGauge ? d.rootGauge : d.gauge;
|
|
229
|
+
calls.push(gcMulticallContract.vote_user_slopes(address, gaugeAddress));
|
|
229
230
|
}
|
|
230
231
|
const [veCrvBalance, ...votes] = yield curve.multicallProvider.all(calls);
|
|
231
232
|
const res = { gauges: [], powerUsed: "0.0", veCrvUsed: "0.0" };
|
package/lib/interfaces.d.ts
CHANGED
|
@@ -155,7 +155,7 @@ export class StatsPool {
|
|
|
155
155
|
});
|
|
156
156
|
this.tokenApy = (...args_1) => __awaiter(this, [...args_1], void 0, function* (useApi = true) {
|
|
157
157
|
var _a;
|
|
158
|
-
if (curve.isLiteChain) {
|
|
158
|
+
if (curve.isLiteChain && curve.chainId !== 146) {
|
|
159
159
|
throw Error('tokenApy is not supported for the lite version');
|
|
160
160
|
}
|
|
161
161
|
if (this.pool.rewardsOnly())
|