@curvefi/api 2.66.5 → 2.66.6
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/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