@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 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
- calls.push(gcMulticallContract.vote_user_slopes(address, d.gauge));
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" };
@@ -208,6 +208,7 @@ export interface IProfit {
208
208
  export interface IGaugesDataFromApi {
209
209
  blockchainId: string;
210
210
  gauge: string;
211
+ rootGauge?: string;
211
212
  swap: string;
212
213
  swap_token: string;
213
214
  shortName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "2.66.5",
3
+ "version": "2.66.6",
4
4
  "description": "JavaScript library for curve.fi",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",