@curvefi/api 2.66.4 → 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.
@@ -17,8 +17,8 @@ export const POOLS_DATA_ARBITRUM = lowerCasePoolDataAddresses({
17
17
  token_address: '0x7f90122bf0700f9e7e1f688fe926940e8839f353',
18
18
  gauge_address: '0xCE5F24B7A95e9cBa7df4B54E911B4A3Dc8CDAf6f',
19
19
  is_plain: true,
20
- underlying_coins: ['USDC.e', 'USDT'],
21
- wrapped_coins: ['USDC.e', 'USDT'],
20
+ underlying_coins: ['USDC.e', 'USD₮0'],
21
+ wrapped_coins: ['USDC.e', 'USD₮0'],
22
22
  underlying_coin_addresses: [
23
23
  '0xff970a61a04b1ca14834a43f5de4533ebddb5cc8',
24
24
  '0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9',
@@ -42,8 +42,8 @@ export const POOLS_DATA_ARBITRUM = lowerCasePoolDataAddresses({
42
42
  token_address: '0x8e0B8c8BB9db49a46697F3a5Bb8A308e744821D2',
43
43
  gauge_address: '0x555766f3da968ecBefa690Ffd49A2Ac02f47aa5f',
44
44
  deposit_address: '0xF97c707024ef0DD3E77a0824555a46B622bfB500',
45
- underlying_coins: ['USDT', 'WBTC', 'ETH'],
46
- wrapped_coins: ['USDT', 'WBTC', 'WETH'],
45
+ underlying_coins: ['USD₮0', 'WBTC', 'ETH'],
46
+ wrapped_coins: ['USD₮0', 'WBTC', 'WETH'],
47
47
  underlying_coin_addresses: [
48
48
  '0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9',
49
49
  '0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f',
@@ -96,7 +96,7 @@ export const POOLS_DATA_ARBITRUM = lowerCasePoolDataAddresses({
96
96
  is_meta: true,
97
97
  is_crypto: true,
98
98
  base_pool: '2pool',
99
- underlying_coins: ['EURS', 'USDC.e', 'USDT'],
99
+ underlying_coins: ['EURS', 'USDC.e', 'USD₮0'],
100
100
  wrapped_coins: ['EURS', '2CRV'],
101
101
  underlying_coin_addresses: [
102
102
  '0xd22a58f79e9481d1a88e00c343885a588b34b68b',
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.4",
3
+ "version": "2.66.6",
4
4
  "description": "JavaScript library for curve.fi",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",