@curvefi/api 1.11.0 → 1.15.0

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.
Files changed (52) hide show
  1. package/README.md +68 -0
  2. package/lib/constants/abis/abis-ethereum.js +144 -16
  3. package/lib/constants/abis/abis-polygon.js +17 -1
  4. package/lib/constants/abis/json/aave/rewards.json +107 -0
  5. package/lib/constants/abis/json/atricrypto3/swap.json +63 -63
  6. package/lib/constants/abis/json/atricrypto3/zap.json +8 -8
  7. package/lib/constants/abis/json/busd/deposit.json +5 -10
  8. package/lib/constants/abis/json/busd/swap.json +18 -36
  9. package/lib/constants/abis/json/compound/deposit.json +5 -10
  10. package/lib/constants/abis/json/compound/migration.json +1 -2
  11. package/lib/constants/abis/json/compound/oldSwap.json +16 -32
  12. package/lib/constants/abis/json/compound/swap.json +18 -36
  13. package/lib/constants/abis/json/crveth/swap.json +61 -61
  14. package/lib/constants/abis/json/eurt/swap.json +29 -29
  15. package/lib/constants/abis/json/eurtusd/deposit.json +13 -13
  16. package/lib/constants/abis/json/eurtusd/swap.json +59 -59
  17. package/lib/constants/abis/json/gauge.json +1 -1
  18. package/lib/constants/abis/json/gauge_factory.json +879 -0
  19. package/lib/constants/abis/json/gauge_rewards_only.json +649 -0
  20. package/lib/constants/abis/json/gauge_synthetix.json +590 -0
  21. package/lib/constants/abis/json/gauge_v2.json +942 -0
  22. package/lib/constants/abis/json/gauge_v3.json +954 -0
  23. package/lib/constants/abis/json/gauge_v4.json +913 -0
  24. package/lib/constants/abis/json/iearn/deposit.json +5 -10
  25. package/lib/constants/abis/json/iearn/swap.json +18 -36
  26. package/lib/constants/abis/json/minter.json +165 -0
  27. package/lib/constants/abis/json/pax/deposit.json +5 -10
  28. package/lib/constants/abis/json/pax/swap.json +19 -38
  29. package/lib/constants/abis/json/ren/swap.json +19 -38
  30. package/lib/constants/abis/json/ren-polygon/swap.json +46 -46
  31. package/lib/constants/abis/json/reth/swap.json +38 -38
  32. package/lib/constants/abis/json/sbtc/swap.json +19 -38
  33. package/lib/constants/abis/json/streamer.json +257 -0
  34. package/lib/constants/abis/json/susdv2/deposit.json +5 -10
  35. package/lib/constants/abis/json/susdv2/swap.json +16 -32
  36. package/lib/constants/abis/json/tricrypto2/deposit.json +3 -3
  37. package/lib/constants/abis/json/tricrypto2/swap.json +60 -60
  38. package/lib/constants/abis/json/usdt/deposit.json +5 -10
  39. package/lib/constants/abis/json/usdt/swap.json +19 -37
  40. package/lib/constants/aliases.d.ts +2 -0
  41. package/lib/constants/aliases.js +3 -1
  42. package/lib/constants/coins-ethereum.js +4 -2
  43. package/lib/constants/coins-polygon.js +3 -2
  44. package/lib/curve.d.ts +2 -1
  45. package/lib/curve.js +73 -30
  46. package/lib/index.d.ts +1 -1
  47. package/lib/interfaces.d.ts +8 -0
  48. package/lib/pools.d.ts +36 -5
  49. package/lib/pools.js +313 -52
  50. package/lib/utils.d.ts +1 -1
  51. package/lib/utils.js +40 -29
  52. package/package.json +1 -1
package/README.md CHANGED
@@ -211,6 +211,53 @@ import curve from "@curvefi/api";
211
211
  })()
212
212
  ```
213
213
 
214
+ ## Stats
215
+ ```ts
216
+ import curve from "@curvefi/api";
217
+
218
+ (async () => {
219
+ await curve.init('JsonRpc', {}, {gasPrice: 0, maxFeePerGas: 0, maxPriorityFeePerGas: 0});
220
+
221
+ const saave = new curve.Pool('aave');
222
+
223
+ console.log(await saave.stats.getParameters());
224
+ // {
225
+ // virtualPrice: '1.051888073134291314',
226
+ // fee: '0.04',
227
+ // adminFee: '0.02',
228
+ // A: '100',
229
+ // gamma: undefined
230
+ // }
231
+
232
+ console.log(await saave.stats.getPoolBalances());
233
+ // [ '56379002.278506498342855456', '40931955.428972956435172989' ]
234
+
235
+ console.log(await saave.stats.getPoolWrappedBalances());
236
+ // [ '56379002.278506498342855456', '40931955.428972956435172989' ]
237
+
238
+ console.log(await saave.stats.getTotalLiquidity());
239
+ // 97172772.77289483
240
+
241
+ console.log(await saave.stats.getVolume());
242
+ // 1022328.1797568246
243
+
244
+ console.log(await saave.stats.getBaseApy());
245
+ // [ '3.2200', '3.5690', '3.0858', '5.9629' ]
246
+
247
+ console.log(await saave.stats.getTokenApy());
248
+ // [ '0.0167', '0.0417' ]
249
+
250
+ console.log(await saave.stats.getRewardsApy());
251
+ // [
252
+ // {
253
+ // token: '0x4da27a545c0c5B758a6BA100e3a049001de870f5',
254
+ // symbol: 'stkAAVE',
255
+ // apy: '0.5807714739298449'
256
+ // }
257
+ // ]
258
+ })()
259
+ ````
260
+
214
261
  ## Add/remove liquidity
215
262
 
216
263
  ```ts
@@ -620,3 +667,24 @@ await curve.estimateGas.crossAssetExchange('DAI', "WBTC", "1000", 0.01)
620
667
 
621
668
  await curve.boosting.estimateGas.createLock('1000', 365)
622
669
  ```
670
+
671
+ ## Rewards
672
+ ```ts
673
+ const pool = new curve.Pool('susd');
674
+
675
+ // CRV
676
+ console.log(await pool.gaugeClaimableTokens());
677
+ // 0.006296257916265276
678
+ await pool.gaugeClaimTokens();
679
+
680
+ // Additional rewards
681
+ console.log(await pool.gaugeClaimableRewards());
682
+ // [
683
+ // {
684
+ // token: '0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F',
685
+ // symbol: 'SNX',
686
+ // amount: '0.000596325465987726'
687
+ // }
688
+ // ]
689
+ await pool.gaugeClaimRewards();
690
+ ```
@@ -5,6 +5,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.POOLS_DATA_ETHEREUM = void 0;
7
7
  // import config from '../config';
8
+ var gauge_json_1 = __importDefault(require("./json/gauge.json"));
9
+ var gauge_synthetix_json_1 = __importDefault(require("./json/gauge_synthetix.json"));
10
+ var gauge_v2_json_1 = __importDefault(require("./json/gauge_v2.json"));
11
+ var gauge_v3_json_1 = __importDefault(require("./json/gauge_v3.json"));
12
+ var gauge_v4_json_1 = __importDefault(require("./json/gauge_v4.json"));
13
+ var gauge_factory_json_1 = __importDefault(require("./json/gauge_factory.json"));
8
14
  var deposit_json_1 = __importDefault(require("./json/compound/deposit.json"));
9
15
  var migration_json_1 = __importDefault(require("./json/compound/migration.json"));
10
16
  var swap_json_1 = __importDefault(require("./json/compound/swap.json"));
@@ -63,6 +69,7 @@ var sCurveRewards_json_10 = __importDefault(require("./json/eurs/sCurveRewards.j
63
69
  var swap_json_24 = __importDefault(require("./json/ust/swap.json"));
64
70
  var deposit_json_18 = __importDefault(require("./json/ust/deposit.json"));
65
71
  var swap_json_25 = __importDefault(require("./json/aave/swap.json"));
72
+ var rewards_json_1 = __importDefault(require("./json/aave/rewards.json"));
66
73
  var swap_json_26 = __importDefault(require("./json/steth/swap.json"));
67
74
  var sCurveRewards_json_11 = __importDefault(require("./json/steth/sCurveRewards.json"));
68
75
  var swap_json_27 = __importDefault(require("./json/saave/swap.json"));
@@ -75,7 +82,7 @@ var swap_json_31 = __importDefault(require("./json/link/swap.json"));
75
82
  var swap_json_32 = __importDefault(require("./json/reth/swap.json"));
76
83
  var swap_json_33 = __importDefault(require("./json/factoryPools/swap.json"));
77
84
  var deposit_json_20 = __importDefault(require("./json/factoryPools/deposit.json"));
78
- var rewards_json_1 = __importDefault(require("./json/factoryPools/rewards.json"));
85
+ var rewards_json_2 = __importDefault(require("./json/factoryPools/rewards.json"));
79
86
  var swap_json_34 = __importDefault(require("./json/tricrypto2/swap.json"));
80
87
  var deposit_json_21 = __importDefault(require("./json/tricrypto2/deposit.json"));
81
88
  var swap_json_35 = __importDefault(require("./json/eurt/swap.json"));
@@ -84,6 +91,7 @@ var deposit_json_22 = __importDefault(require("./json/eurtusd/deposit.json"));
84
91
  var swap_json_37 = __importDefault(require("./json/crveth/swap.json"));
85
92
  exports.POOLS_DATA_ETHEREUM = {
86
93
  compound: {
94
+ reference_asset: 'USD',
87
95
  N_COINS: 2,
88
96
  underlying_decimals: [18, 6],
89
97
  decimals: [8, 8],
@@ -110,8 +118,10 @@ exports.POOLS_DATA_ETHEREUM = {
110
118
  migration_abi: migration_json_1.default,
111
119
  swap_abi: swap_json_1.default,
112
120
  old_swap_abi: oldSwap_json_1.default,
121
+ gauge_abi: gauge_json_1.default,
113
122
  },
114
123
  usdt: {
124
+ reference_asset: 'USD',
115
125
  N_COINS: 3,
116
126
  underlying_decimals: [18, 6, 6],
117
127
  decimals: [8, 8, 6],
@@ -136,8 +146,10 @@ exports.POOLS_DATA_ETHEREUM = {
136
146
  deposit_address: '0xac795D2c97e60DF6a99ff1c814727302fD747a80',
137
147
  deposit_abi: deposit_json_2.default,
138
148
  swap_abi: swap_json_2.default,
149
+ gauge_abi: gauge_json_1.default,
139
150
  },
140
151
  y: {
152
+ reference_asset: 'USD',
141
153
  N_COINS: 4,
142
154
  underlying_decimals: [18, 6, 6, 18],
143
155
  decimals: [18, 6, 6, 18],
@@ -168,8 +180,10 @@ exports.POOLS_DATA_ETHEREUM = {
168
180
  sCurveRewards_address: '0x0001FB050Fe7312791bF6475b96569D83F695C9f',
169
181
  aRewards_abi: aRewards_json_1.default,
170
182
  aRewards_address: '0xcc9efea3ac5df6ad6a656235ef955fbfef65b862',
183
+ gauge_abi: gauge_json_1.default,
171
184
  },
172
185
  busd: {
186
+ reference_asset: 'USD',
173
187
  N_COINS: 4,
174
188
  underlying_decimals: [18, 6, 6, 18],
175
189
  decimals: [18, 6, 6, 18],
@@ -196,8 +210,10 @@ exports.POOLS_DATA_ETHEREUM = {
196
210
  deposit_address: '0xb6c057591E073249F2D9D88Ba59a46CFC9B59EdB',
197
211
  deposit_abi: deposit_json_4.default,
198
212
  swap_abi: swap_json_4.default,
213
+ gauge_abi: gauge_json_1.default,
199
214
  },
200
215
  susd: {
216
+ reference_asset: 'USD',
201
217
  swap_abi: swap_json_5.default,
202
218
  deposit_abi: deposit_json_5.default,
203
219
  N_COINS: 4,
@@ -226,8 +242,11 @@ exports.POOLS_DATA_ETHEREUM = {
226
242
  ],
227
243
  sCurveRewards_abi: sCurveRewards_json_2.default,
228
244
  sCurveRewards_address: '0xdcb6a51ea3ca5d3fd898fd6564757c7aaec3ca92',
245
+ reward_tokens: ["0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F"],
246
+ gauge_abi: gauge_synthetix_json_1.default,
229
247
  },
230
248
  pax: {
249
+ reference_asset: 'USD',
231
250
  swap_abi: swap_json_6.default,
232
251
  deposit_abi: deposit_json_6.default,
233
252
  N_COINS: 4,
@@ -254,8 +273,10 @@ exports.POOLS_DATA_ETHEREUM = {
254
273
  '0x1bE5d71F2dA660BFdee8012dDc58D024448A0A59',
255
274
  '0x8E870D67F660D95d5be530380D0eC0bd388289E1',
256
275
  ],
276
+ gauge_abi: gauge_json_1.default,
257
277
  },
258
278
  ren: {
279
+ reference_asset: 'BTC',
259
280
  N_COINS: 2,
260
281
  underlying_decimals: [8, 8],
261
282
  decimals: [8, 8],
@@ -280,8 +301,10 @@ exports.POOLS_DATA_ETHEREUM = {
280
301
  old_adapter_address: '0x9fe350DfA5F66bC086243F21A8F0932514316627',
281
302
  adapter_biconomy_address: '0x73aB2Bd10aD10F7174a1AD5AFAe3ce3D991C5047',
282
303
  adapter_address: '0x26D9980571e77FfB0349f9c801DD7ca9951Fb656',
304
+ gauge_abi: gauge_json_1.default,
283
305
  },
284
306
  sbtc: {
307
+ reference_asset: 'BTC',
285
308
  N_COINS: 3,
286
309
  underlying_decimals: [8, 8, 18],
287
310
  decimals: [8, 8, 18],
@@ -310,8 +333,10 @@ exports.POOLS_DATA_ETHEREUM = {
310
333
  adapter_address: '0x02B3F51AC9202aA19be63d61A8C681579D6E3a51',
311
334
  sCurveRewards_abi: sCurveRewards_json_3.default,
312
335
  sCurveRewards_address: '0x13C1542A468319688B89E323fe9A3Be3A90EBb27',
336
+ gauge_abi: gauge_synthetix_json_1.default,
313
337
  },
314
338
  hbtc: {
339
+ reference_asset: 'BTC',
315
340
  swap_abi: swap_json_9.default,
316
341
  N_COINS: 2,
317
342
  underlying_decimals: [18, 8],
@@ -332,8 +357,10 @@ exports.POOLS_DATA_ETHEREUM = {
332
357
  '0x0316EB71485b0Ab14103307bf65a021042c6d380',
333
358
  '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599',
334
359
  ],
360
+ gauge_abi: gauge_json_1.default,
335
361
  },
336
362
  '3pool': {
363
+ reference_asset: 'USD',
337
364
  swap_abi: swap_json_10.default,
338
365
  N_COINS: 3,
339
366
  underlying_decimals: [18, 6, 6],
@@ -356,8 +383,10 @@ exports.POOLS_DATA_ETHEREUM = {
356
383
  '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
357
384
  '0xdAC17F958D2ee523a2206206994597C13D831ec7',
358
385
  ],
386
+ gauge_abi: gauge_json_1.default,
359
387
  },
360
388
  gusd: {
389
+ reference_asset: 'USD',
361
390
  N_COINS: 2,
362
391
  underlying_decimals: [2, 18],
363
392
  decimals: [2, 18],
@@ -398,8 +427,10 @@ exports.POOLS_DATA_ETHEREUM = {
398
427
  '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
399
428
  '0xdAC17F958D2ee523a2206206994597C13D831ec7',
400
429
  ],
430
+ gauge_abi: gauge_json_1.default,
401
431
  },
402
432
  husd: {
433
+ reference_asset: 'USD',
403
434
  N_COINS: 2,
404
435
  underlying_decimals: [8, 18],
405
436
  decimals: [8, 18],
@@ -440,8 +471,10 @@ exports.POOLS_DATA_ETHEREUM = {
440
471
  '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
441
472
  '0xdAC17F958D2ee523a2206206994597C13D831ec7',
442
473
  ],
474
+ gauge_abi: gauge_json_1.default,
443
475
  },
444
476
  usdk: {
477
+ reference_asset: 'USD',
445
478
  N_COINS: 2,
446
479
  underlying_decimals: [18, 18],
447
480
  decimals: [18, 18],
@@ -482,8 +515,10 @@ exports.POOLS_DATA_ETHEREUM = {
482
515
  '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
483
516
  '0xdAC17F958D2ee523a2206206994597C13D831ec7',
484
517
  ],
518
+ gauge_abi: gauge_json_1.default,
485
519
  },
486
520
  usdn: {
521
+ reference_asset: 'USD',
487
522
  N_COINS: 2,
488
523
  underlying_decimals: [18, 18],
489
524
  decimals: [18, 18],
@@ -524,8 +559,10 @@ exports.POOLS_DATA_ETHEREUM = {
524
559
  '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
525
560
  '0xdAC17F958D2ee523a2206206994597C13D831ec7',
526
561
  ],
562
+ gauge_abi: gauge_json_1.default,
527
563
  },
528
564
  musd: {
565
+ reference_asset: 'USD',
529
566
  N_COINS: 2,
530
567
  underlying_decimals: [18, 18],
531
568
  decimals: [18, 18],
@@ -568,8 +605,11 @@ exports.POOLS_DATA_ETHEREUM = {
568
605
  ],
569
606
  sCurveRewards_abi: sCurveRewards_json_4.default,
570
607
  sCurveRewards_address: "0xE6E6E25EfdA5F69687aA9914f8d750C523A1D261",
608
+ reward_tokens: ["0xa3BeD4E1c75D00fa6f4E5E6922DB7261B5E9AcD2"],
609
+ gauge_abi: gauge_synthetix_json_1.default,
571
610
  },
572
611
  rsv: {
612
+ reference_asset: 'USD',
573
613
  N_COINS: 2,
574
614
  underlying_decimals: [18, 18],
575
615
  decimals: [18, 18],
@@ -612,8 +652,11 @@ exports.POOLS_DATA_ETHEREUM = {
612
652
  ],
613
653
  sCurveRewards_abi: sCurveRewards_json_5.default,
614
654
  sCurveRewards_address: "0xAD4768F408dD170e62E074188D81A29AE31B8Fd8",
655
+ reward_tokens: ["0x8762db106B2c2A0bccB3A80d1Ed41273552616E8"],
656
+ gauge_abi: gauge_synthetix_json_1.default,
615
657
  },
616
658
  tbtc: {
659
+ reference_asset: 'BTC',
617
660
  N_COINS: 2,
618
661
  underlying_decimals: [18, 18],
619
662
  decimals: [18, 18],
@@ -656,8 +699,10 @@ exports.POOLS_DATA_ETHEREUM = {
656
699
  ],
657
700
  sCurveRewards_abi: sCurveRewards_json_6.default,
658
701
  sCurveRewards_address: '0xAF379f0228ad0d46bB7B4f38f9dc9bCC1ad0360c',
702
+ gauge_abi: gauge_synthetix_json_1.default,
659
703
  },
660
704
  dusd: {
705
+ reference_asset: 'USD',
661
706
  N_COINS: 2,
662
707
  underlying_decimals: [18, 18],
663
708
  decimals: [18, 18],
@@ -700,8 +745,11 @@ exports.POOLS_DATA_ETHEREUM = {
700
745
  ],
701
746
  sCurveRewards_abi: sCurveRewards_json_7.default,
702
747
  sCurveRewards_address: "0xd9Acb0BAeeD77C99305017821167674Cc7e82f7a",
748
+ reward_tokens: ["0x20c36f062a31865bED8a5B1e512D9a1A20AA333A"],
749
+ gauge_abi: gauge_synthetix_json_1.default,
703
750
  },
704
751
  pbtc: {
752
+ reference_asset: 'BTC',
705
753
  swap_abi: swap_json_19.default,
706
754
  N_COINS: 2,
707
755
  underlying_decimals: [18, 18],
@@ -744,9 +792,11 @@ exports.POOLS_DATA_ETHEREUM = {
744
792
  ],
745
793
  sCurveRewards_abi: sCurveRewards_json_8.default,
746
794
  sCurveRewards_address: "0xf7977edc1fa61aa9b5f90d70a74a3fbc46e9dad3",
747
- reward_token: "0x89Ab32156e46F46D02ade3FEcbe5Fc4243B9AAeD",
795
+ reward_tokens: ["0x89Ab32156e46F46D02ade3FEcbe5Fc4243B9AAeD"],
796
+ gauge_abi: gauge_v2_json_1.default,
748
797
  },
749
798
  bbtc: {
799
+ reference_asset: 'BTC',
750
800
  swap_abi: swap_json_20.default,
751
801
  N_COINS: 2,
752
802
  underlying_decimals: [8, 18],
@@ -787,8 +837,10 @@ exports.POOLS_DATA_ETHEREUM = {
787
837
  '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599',
788
838
  '0xfE18be6b3Bd88A2D2A7f928d00292E7a9963CfC6',
789
839
  ],
840
+ gauge_abi: gauge_v2_json_1.default,
790
841
  },
791
842
  obtc: {
843
+ reference_asset: 'BTC',
792
844
  swap_abi: swap_json_21.default,
793
845
  N_COINS: 2,
794
846
  underlying_decimals: [18, 18],
@@ -831,9 +883,11 @@ exports.POOLS_DATA_ETHEREUM = {
831
883
  ],
832
884
  sCurveRewards_abi: sCurveRewards_json_9.default,
833
885
  sCurveRewards_address: "0x7f1ae7a1fc275b5b9c3ad4497fa94e3b9424e76e",
834
- reward_token: "0x3c9d6c1C73b31c837832c72E04D3152f051fc1A9",
886
+ reward_tokens: ["0x3c9d6c1C73b31c837832c72E04D3152f051fc1A9"],
887
+ gauge_abi: gauge_v2_json_1.default,
835
888
  },
836
889
  seth: {
890
+ reference_asset: 'ETH',
837
891
  swap_abi: swap_json_22.default,
838
892
  N_COINS: 2,
839
893
  has_eth: true,
@@ -855,8 +909,10 @@ exports.POOLS_DATA_ETHEREUM = {
855
909
  '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE',
856
910
  '0x5e74c9036fb86bd7ecdcb084a0673efc32ea31cb',
857
911
  ],
912
+ gauge_abi: gauge_v2_json_1.default,
858
913
  },
859
914
  eurs: {
915
+ reference_asset: 'EUR',
860
916
  swap_abi: swap_json_23.default,
861
917
  N_COINS: 2,
862
918
  underlying_decimals: [2, 18],
@@ -879,9 +935,11 @@ exports.POOLS_DATA_ETHEREUM = {
879
935
  ],
880
936
  sCurveRewards_abi: sCurveRewards_json_10.default,
881
937
  sCurveRewards_address: "0xc0d8994cd78ee1980885df1a0c5470fc977b5cfe",
882
- reward_token: "0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f",
938
+ reward_tokens: ["0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f"],
939
+ gauge_abi: gauge_v2_json_1.default,
883
940
  },
884
941
  ust: {
942
+ reference_asset: 'USD',
885
943
  swap_abi: swap_json_24.default,
886
944
  N_COINS: 2,
887
945
  underlying_decimals: [18, 18],
@@ -922,8 +980,10 @@ exports.POOLS_DATA_ETHEREUM = {
922
980
  '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
923
981
  '0xdAC17F958D2ee523a2206206994597C13D831ec7',
924
982
  ],
983
+ gauge_abi: gauge_v2_json_1.default,
925
984
  },
926
985
  aave: {
986
+ reference_asset: 'USD',
927
987
  N_COINS: 3,
928
988
  is_aave: true,
929
989
  underlying_decimals: [18, 6, 6],
@@ -947,8 +1007,13 @@ exports.POOLS_DATA_ETHEREUM = {
947
1007
  '0x3Ed3B47Dd13EC9a98b44e6204A523E766B225811',
948
1008
  ],
949
1009
  swap_abi: swap_json_25.default,
1010
+ sCurveRewards_abi: rewards_json_1.default,
1011
+ sCurveRewards_address: "0x99ac10631F69C753DDb595D074422a0922D9056B",
1012
+ reward_tokens: ["0x4da27a545c0c5b758a6ba100e3a049001de870f5"],
1013
+ gauge_abi: gauge_v2_json_1.default,
950
1014
  },
951
1015
  steth: {
1016
+ reference_asset: 'ETH',
952
1017
  swap_abi: swap_json_26.default,
953
1018
  N_COINS: 2,
954
1019
  has_eth: true,
@@ -972,9 +1037,11 @@ exports.POOLS_DATA_ETHEREUM = {
972
1037
  ],
973
1038
  sCurveRewards_abi: sCurveRewards_json_11.default,
974
1039
  sCurveRewards_address: "0x99ac10631F69C753DDb595D074422a0922D9056B",
975
- reward_token: "0x5a98fcbea516cf06857215779fd812ca3bef1b32",
1040
+ reward_tokens: ["0x5a98fcbea516cf06857215779fd812ca3bef1b32"],
1041
+ gauge_abi: gauge_v2_json_1.default,
976
1042
  },
977
1043
  saave: {
1044
+ reference_asset: 'USD',
978
1045
  N_COINS: 2,
979
1046
  is_aave: true,
980
1047
  underlying_decimals: [18, 18],
@@ -996,8 +1063,13 @@ exports.POOLS_DATA_ETHEREUM = {
996
1063
  '0x6c5024cd4f8a59110119c56f8933403a539555eb',
997
1064
  ],
998
1065
  swap_abi: swap_json_27.default,
1066
+ sCurveRewards_abi: rewards_json_1.default,
1067
+ sCurveRewards_address: "0xe5f41acad47849c6eb28b93913ca81893fb5a2a6",
1068
+ reward_tokens: ["0x4da27a545c0c5b758a6ba100e3a049001de870f5"],
1069
+ gauge_abi: gauge_v2_json_1.default,
999
1070
  },
1000
1071
  ankreth: {
1072
+ reference_asset: 'ETH',
1001
1073
  swap_abi: swap_json_28.default,
1002
1074
  N_COINS: 2,
1003
1075
  has_eth: true,
@@ -1021,10 +1093,11 @@ exports.POOLS_DATA_ETHEREUM = {
1021
1093
  ],
1022
1094
  sCurveRewards_abi: sCurveRewards_json_12.default,
1023
1095
  sCurveRewards_address: "0x3547DFCa04358540891149559e691B146c6B0043",
1024
- reward_token: "0xe0ad1806fd3e7edf6ff52fdb822432e847411033",
1025
1096
  reward_tokens: ["0xe0ad1806fd3e7edf6ff52fdb822432e847411033", "0x8290333cef9e6d528dd5618fb97a76f268f3edd4"],
1097
+ gauge_abi: gauge_v2_json_1.default,
1026
1098
  },
1027
1099
  usdp: {
1100
+ reference_asset: 'USD',
1028
1101
  swap_abi: swap_json_29.default,
1029
1102
  N_COINS: 2,
1030
1103
  underlying_decimals: [18, 18],
@@ -1065,8 +1138,10 @@ exports.POOLS_DATA_ETHEREUM = {
1065
1138
  '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
1066
1139
  '0xdAC17F958D2ee523a2206206994597C13D831ec7',
1067
1140
  ],
1141
+ gauge_abi: gauge_v2_json_1.default,
1068
1142
  },
1069
1143
  ib: {
1144
+ reference_asset: 'USD',
1070
1145
  swap_abi: swap_json_30.default,
1071
1146
  N_COINS: 3,
1072
1147
  underlying_decimals: [18, 6, 6],
@@ -1090,8 +1165,10 @@ exports.POOLS_DATA_ETHEREUM = {
1090
1165
  '0x76eb2fe28b36b3ee97f3adae0c69606eedb2a37c',
1091
1166
  '0x48759f220ed983db51fa7a8c0d2aab8f3ce4166a',
1092
1167
  ],
1168
+ gauge_abi: gauge_v2_json_1.default,
1093
1169
  },
1094
1170
  link: {
1171
+ reference_asset: 'LINK',
1095
1172
  swap_abi: swap_json_31.default,
1096
1173
  N_COINS: 2,
1097
1174
  underlying_decimals: [18, 18],
@@ -1112,8 +1189,10 @@ exports.POOLS_DATA_ETHEREUM = {
1112
1189
  '0x514910771AF9Ca656af840dff83E8264EcF986CA',
1113
1190
  '0xbBC455cb4F1B9e4bFC4B73970d360c8f032EfEE6',
1114
1191
  ],
1192
+ gauge_abi: gauge_v2_json_1.default,
1115
1193
  },
1116
1194
  tusd: {
1195
+ reference_asset: 'USD',
1117
1196
  swap_abi: swap_json_33.default,
1118
1197
  N_COINS: 2,
1119
1198
  underlying_decimals: [18, 18],
@@ -1155,8 +1234,10 @@ exports.POOLS_DATA_ETHEREUM = {
1155
1234
  '0xdAC17F958D2ee523a2206206994597C13D831ec7',
1156
1235
  ],
1157
1236
  is_factory: true,
1237
+ gauge_abi: gauge_v2_json_1.default,
1158
1238
  },
1159
1239
  frax: {
1240
+ reference_asset: 'USD',
1160
1241
  swap_abi: swap_json_33.default,
1161
1242
  N_COINS: 2,
1162
1243
  underlying_decimals: [18, 18],
@@ -1198,11 +1279,13 @@ exports.POOLS_DATA_ETHEREUM = {
1198
1279
  '0xdAC17F958D2ee523a2206206994597C13D831ec7',
1199
1280
  ],
1200
1281
  is_factory: true,
1201
- sCurveRewards_abi: rewards_json_1.default,
1282
+ sCurveRewards_abi: rewards_json_2.default,
1202
1283
  sCurveRewards_address: '0xBBbAf1adf4d39B2843928CCa1E65564e5ce99ccC',
1203
- reward_token: '0x3432b6a60d23ca0dfca7761b7ab56459d9c964d0',
1284
+ reward_tokens: ['0x3432b6a60d23ca0dfca7761b7ab56459d9c964d0'],
1285
+ gauge_abi: gauge_v2_json_1.default,
1204
1286
  },
1205
1287
  lusd: {
1288
+ reference_asset: 'USD',
1206
1289
  swap_abi: swap_json_33.default,
1207
1290
  N_COINS: 2,
1208
1291
  underlying_decimals: [18, 18],
@@ -1244,11 +1327,13 @@ exports.POOLS_DATA_ETHEREUM = {
1244
1327
  '0xdAC17F958D2ee523a2206206994597C13D831ec7',
1245
1328
  ],
1246
1329
  is_factory: true,
1247
- sCurveRewards_abi: rewards_json_1.default,
1330
+ sCurveRewards_abi: rewards_json_2.default,
1248
1331
  sCurveRewards_address: '0xeb31da939878d1d780fdbcc244531c0fb80a2cf3',
1249
- reward_token: '0x6dea81c8171d0ba574754ef6f8b412f2ed88c54d',
1332
+ reward_tokens: ['0x6dea81c8171d0ba574754ef6f8b412f2ed88c54d'],
1333
+ gauge_abi: gauge_v2_json_1.default,
1250
1334
  },
1251
1335
  busdv2: {
1336
+ reference_asset: 'USD',
1252
1337
  swap_abi: swap_json_33.default,
1253
1338
  N_COINS: 2,
1254
1339
  underlying_decimals: [18, 18],
@@ -1290,8 +1375,10 @@ exports.POOLS_DATA_ETHEREUM = {
1290
1375
  '0xdAC17F958D2ee523a2206206994597C13D831ec7',
1291
1376
  ],
1292
1377
  is_factory: true,
1378
+ gauge_abi: gauge_v2_json_1.default,
1293
1379
  },
1294
1380
  reth: {
1381
+ reference_asset: 'ETH',
1295
1382
  swap_abi: swap_json_32.default,
1296
1383
  N_COINS: 2,
1297
1384
  has_eth: true,
@@ -1313,11 +1400,13 @@ exports.POOLS_DATA_ETHEREUM = {
1313
1400
  '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE',
1314
1401
  '0x9559aaa82d9649c7a7b220e7c461d2e74c9a3593',
1315
1402
  ],
1316
- sCurveRewards_abi: rewards_json_1.default,
1403
+ sCurveRewards_abi: rewards_json_2.default,
1317
1404
  sCurveRewards_address: '0x3b7382805A1d887b73e98570796C5cEFeA32A462',
1318
- reward_token: '0xef3a930e1ffffacd2fc13434ac81bd278b0ecc8d',
1405
+ reward_tokens: ['0xef3a930e1ffffacd2fc13434ac81bd278b0ecc8d'],
1406
+ gauge_abi: gauge_v3_json_1.default,
1319
1407
  },
1320
1408
  alusd: {
1409
+ reference_asset: 'USD',
1321
1410
  swap_abi: swap_json_33.default,
1322
1411
  N_COINS: 2,
1323
1412
  underlying_decimals: [18, 18],
@@ -1359,11 +1448,13 @@ exports.POOLS_DATA_ETHEREUM = {
1359
1448
  '0xdAC17F958D2ee523a2206206994597C13D831ec7',
1360
1449
  ],
1361
1450
  is_factory: true,
1362
- sCurveRewards_abi: rewards_json_1.default,
1451
+ sCurveRewards_abi: rewards_json_2.default,
1363
1452
  sCurveRewards_address: '0xb76256d1091e93976c61449d6e500d9f46d827d4',
1364
- reward_token: '0xdbdb4d16eda451d0503b854cf79d55697f90c8df',
1453
+ reward_tokens: ['0xdbdb4d16eda451d0503b854cf79d55697f90c8df'],
1454
+ gauge_abi: gauge_v3_json_1.default,
1365
1455
  },
1366
1456
  mim: {
1457
+ reference_asset: 'USD',
1367
1458
  swap_abi: swap_json_33.default,
1368
1459
  N_COINS: 2,
1369
1460
  underlying_decimals: [18, 18],
@@ -1373,7 +1464,7 @@ exports.POOLS_DATA_ETHEREUM = {
1373
1464
  is_plain: [true, true],
1374
1465
  swap_address: '0x5a6A4D54456819380173272A5E8E9B9904BdF41B',
1375
1466
  token_address: '0x5a6A4D54456819380173272A5E8E9B9904BdF41B',
1376
- gauge_address: '0xd4b22fedca85e684919955061fdf353b9d38389b',
1467
+ gauge_address: '0xd8b712d29381748dB89c36BCa0138d7c75866ddF',
1377
1468
  underlying_coins: ['MIM', 'DAI', 'USDC', 'USDT'],
1378
1469
  coins: ['MIM', '3Crv'],
1379
1470
  underlying_coin_addresses: [
@@ -1405,8 +1496,13 @@ exports.POOLS_DATA_ETHEREUM = {
1405
1496
  '0xdAC17F958D2ee523a2206206994597C13D831ec7',
1406
1497
  ],
1407
1498
  is_factory: true,
1499
+ sCurveRewards_abi: rewards_json_2.default,
1500
+ sCurveRewards_address: '0xb76256d1091e93976c61449d6e500d9f46d827d4',
1501
+ reward_tokens: ['0x090185f2135308BaD17527004364eBcC2D37e5F6'],
1502
+ gauge_abi: gauge_factory_json_1.default,
1408
1503
  },
1409
1504
  tricrypto2: {
1505
+ reference_asset: 'CRYPTO',
1410
1506
  swap_abi: swap_json_34.default,
1411
1507
  N_COINS: 3,
1412
1508
  is_crypto: true,
@@ -1432,8 +1528,10 @@ exports.POOLS_DATA_ETHEREUM = {
1432
1528
  ],
1433
1529
  deposit_abi: deposit_json_21.default,
1434
1530
  deposit_address: '0x3993d34e7e99Abf6B6f367309975d1360222D446',
1531
+ gauge_abi: gauge_v3_json_1.default,
1435
1532
  },
1436
1533
  eurt: {
1534
+ reference_asset: 'EUR',
1437
1535
  swap_abi: swap_json_35.default,
1438
1536
  N_COINS: 2,
1439
1537
  underlying_decimals: [6, 18],
@@ -1454,8 +1552,10 @@ exports.POOLS_DATA_ETHEREUM = {
1454
1552
  '0xC581b735A1688071A1746c968e0798D642EDE491',
1455
1553
  '0xD71eCFF9342A5Ced620049e616c5035F1dB98620',
1456
1554
  ],
1555
+ gauge_abi: gauge_v3_json_1.default,
1457
1556
  },
1458
1557
  eurtusd: {
1558
+ reference_asset: 'CRYPTO',
1459
1559
  N_COINS: 2,
1460
1560
  underlying_decimals: [6, 18],
1461
1561
  decimals: [6, 18],
@@ -1497,8 +1597,10 @@ exports.POOLS_DATA_ETHEREUM = {
1497
1597
  '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
1498
1598
  '0xdAC17F958D2ee523a2206206994597C13D831ec7',
1499
1599
  ],
1600
+ gauge_abi: gauge_v4_json_1.default,
1500
1601
  },
1501
1602
  crveth: {
1603
+ reference_asset: 'CRYPTO',
1502
1604
  swap_abi: swap_json_37.default,
1503
1605
  N_COINS: 2,
1504
1606
  is_crypto: true,
@@ -1511,7 +1613,7 @@ exports.POOLS_DATA_ETHEREUM = {
1511
1613
  coins: ['WETH', 'CRV'],
1512
1614
  swap_address: '0x8301AE4fc9c624d1D396cbDAa1ed877821D7C511',
1513
1615
  token_address: '0xEd4064f376cB8d68F770FB1Ff088a3d0F3FF5c4d',
1514
- gauge_address: '0x936734ea750bb194ddb4892b191b6bd5c43a3985',
1616
+ gauge_address: '0x1cEBdB0856dd985fAe9b8fEa2262469360B8a3a6',
1515
1617
  underlying_coin_addresses: [
1516
1618
  '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE',
1517
1619
  '0xD533a949740bb3306d119CC777fa900bA034cd52',
@@ -1520,5 +1622,31 @@ exports.POOLS_DATA_ETHEREUM = {
1520
1622
  '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
1521
1623
  '0xD533a949740bb3306d119CC777fa900bA034cd52',
1522
1624
  ],
1625
+ gauge_abi: gauge_v4_json_1.default,
1626
+ },
1627
+ cvxeth: {
1628
+ reference_asset: 'CRYPTO',
1629
+ swap_abi: swap_json_37.default,
1630
+ N_COINS: 2,
1631
+ is_crypto: true,
1632
+ underlying_decimals: [18, 18],
1633
+ decimals: [18, 18],
1634
+ tethered: [false, false],
1635
+ use_lending: [false, false],
1636
+ is_plain: [true, true],
1637
+ swap_address: '0xB576491F1E6e5E62f1d8F26062Ee822B40B0E0d4',
1638
+ token_address: '0x3A283D9c08E8b55966afb64C515f5143cf907611',
1639
+ gauge_address: '0x7E1444BA99dcdFfE8fBdb42C02F0005D14f13BE1',
1640
+ underlying_coins: ['ETH', 'CVX'],
1641
+ coins: ['WETH', 'CVX'],
1642
+ underlying_coin_addresses: [
1643
+ '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE',
1644
+ '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b',
1645
+ ],
1646
+ coin_addresses: [
1647
+ '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
1648
+ '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b',
1649
+ ],
1650
+ gauge_abi: gauge_v4_json_1.default,
1523
1651
  },
1524
1652
  };