@curvefi/api 1.14.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 (31) hide show
  1. package/README.md +30 -0
  2. package/lib/constants/abis/abis-ethereum.js +78 -16
  3. package/lib/constants/abis/abis-polygon.js +13 -5
  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/crveth/swap.json +61 -61
  8. package/lib/constants/abis/json/eurt/swap.json +29 -29
  9. package/lib/constants/abis/json/eurtusd/deposit.json +13 -13
  10. package/lib/constants/abis/json/eurtusd/swap.json +59 -59
  11. package/lib/constants/abis/json/gauge.json +1 -1
  12. package/lib/constants/abis/json/gauge_factory.json +879 -0
  13. package/lib/constants/abis/json/gauge_rewards_only.json +649 -0
  14. package/lib/constants/abis/json/gauge_synthetix.json +590 -0
  15. package/lib/constants/abis/json/gauge_v2.json +942 -0
  16. package/lib/constants/abis/json/gauge_v3.json +954 -0
  17. package/lib/constants/abis/json/gauge_v4.json +913 -0
  18. package/lib/constants/abis/json/minter.json +165 -0
  19. package/lib/constants/abis/json/ren-polygon/swap.json +46 -46
  20. package/lib/constants/abis/json/reth/swap.json +38 -38
  21. package/lib/constants/abis/json/tricrypto2/deposit.json +3 -3
  22. package/lib/constants/abis/json/tricrypto2/swap.json +60 -60
  23. package/lib/constants/aliases.d.ts +2 -0
  24. package/lib/constants/aliases.js +2 -0
  25. package/lib/constants/coins-polygon.js +3 -2
  26. package/lib/curve.d.ts +1 -0
  27. package/lib/curve.js +43 -23
  28. package/lib/interfaces.d.ts +7 -1
  29. package/lib/pools.d.ts +13 -2
  30. package/lib/pools.js +187 -25
  31. package/package.json +1 -1
package/README.md CHANGED
@@ -246,6 +246,15 @@ import curve from "@curvefi/api";
246
246
 
247
247
  console.log(await saave.stats.getTokenApy());
248
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
+ // ]
249
258
  })()
250
259
  ````
251
260
 
@@ -658,3 +667,24 @@ await curve.estimateGas.crossAssetExchange('DAI', "WBTC", "1000", 0.01)
658
667
 
659
668
  await curve.boosting.estimateGas.createLock('1000', 365)
660
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"));
@@ -111,6 +118,7 @@ exports.POOLS_DATA_ETHEREUM = {
111
118
  migration_abi: migration_json_1.default,
112
119
  swap_abi: swap_json_1.default,
113
120
  old_swap_abi: oldSwap_json_1.default,
121
+ gauge_abi: gauge_json_1.default,
114
122
  },
115
123
  usdt: {
116
124
  reference_asset: 'USD',
@@ -138,6 +146,7 @@ exports.POOLS_DATA_ETHEREUM = {
138
146
  deposit_address: '0xac795D2c97e60DF6a99ff1c814727302fD747a80',
139
147
  deposit_abi: deposit_json_2.default,
140
148
  swap_abi: swap_json_2.default,
149
+ gauge_abi: gauge_json_1.default,
141
150
  },
142
151
  y: {
143
152
  reference_asset: 'USD',
@@ -171,6 +180,7 @@ exports.POOLS_DATA_ETHEREUM = {
171
180
  sCurveRewards_address: '0x0001FB050Fe7312791bF6475b96569D83F695C9f',
172
181
  aRewards_abi: aRewards_json_1.default,
173
182
  aRewards_address: '0xcc9efea3ac5df6ad6a656235ef955fbfef65b862',
183
+ gauge_abi: gauge_json_1.default,
174
184
  },
175
185
  busd: {
176
186
  reference_asset: 'USD',
@@ -200,6 +210,7 @@ exports.POOLS_DATA_ETHEREUM = {
200
210
  deposit_address: '0xb6c057591E073249F2D9D88Ba59a46CFC9B59EdB',
201
211
  deposit_abi: deposit_json_4.default,
202
212
  swap_abi: swap_json_4.default,
213
+ gauge_abi: gauge_json_1.default,
203
214
  },
204
215
  susd: {
205
216
  reference_asset: 'USD',
@@ -231,6 +242,8 @@ exports.POOLS_DATA_ETHEREUM = {
231
242
  ],
232
243
  sCurveRewards_abi: sCurveRewards_json_2.default,
233
244
  sCurveRewards_address: '0xdcb6a51ea3ca5d3fd898fd6564757c7aaec3ca92',
245
+ reward_tokens: ["0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F"],
246
+ gauge_abi: gauge_synthetix_json_1.default,
234
247
  },
235
248
  pax: {
236
249
  reference_asset: 'USD',
@@ -260,6 +273,7 @@ exports.POOLS_DATA_ETHEREUM = {
260
273
  '0x1bE5d71F2dA660BFdee8012dDc58D024448A0A59',
261
274
  '0x8E870D67F660D95d5be530380D0eC0bd388289E1',
262
275
  ],
276
+ gauge_abi: gauge_json_1.default,
263
277
  },
264
278
  ren: {
265
279
  reference_asset: 'BTC',
@@ -287,6 +301,7 @@ exports.POOLS_DATA_ETHEREUM = {
287
301
  old_adapter_address: '0x9fe350DfA5F66bC086243F21A8F0932514316627',
288
302
  adapter_biconomy_address: '0x73aB2Bd10aD10F7174a1AD5AFAe3ce3D991C5047',
289
303
  adapter_address: '0x26D9980571e77FfB0349f9c801DD7ca9951Fb656',
304
+ gauge_abi: gauge_json_1.default,
290
305
  },
291
306
  sbtc: {
292
307
  reference_asset: 'BTC',
@@ -318,6 +333,7 @@ exports.POOLS_DATA_ETHEREUM = {
318
333
  adapter_address: '0x02B3F51AC9202aA19be63d61A8C681579D6E3a51',
319
334
  sCurveRewards_abi: sCurveRewards_json_3.default,
320
335
  sCurveRewards_address: '0x13C1542A468319688B89E323fe9A3Be3A90EBb27',
336
+ gauge_abi: gauge_synthetix_json_1.default,
321
337
  },
322
338
  hbtc: {
323
339
  reference_asset: 'BTC',
@@ -341,6 +357,7 @@ exports.POOLS_DATA_ETHEREUM = {
341
357
  '0x0316EB71485b0Ab14103307bf65a021042c6d380',
342
358
  '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599',
343
359
  ],
360
+ gauge_abi: gauge_json_1.default,
344
361
  },
345
362
  '3pool': {
346
363
  reference_asset: 'USD',
@@ -366,6 +383,7 @@ exports.POOLS_DATA_ETHEREUM = {
366
383
  '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
367
384
  '0xdAC17F958D2ee523a2206206994597C13D831ec7',
368
385
  ],
386
+ gauge_abi: gauge_json_1.default,
369
387
  },
370
388
  gusd: {
371
389
  reference_asset: 'USD',
@@ -409,6 +427,7 @@ exports.POOLS_DATA_ETHEREUM = {
409
427
  '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
410
428
  '0xdAC17F958D2ee523a2206206994597C13D831ec7',
411
429
  ],
430
+ gauge_abi: gauge_json_1.default,
412
431
  },
413
432
  husd: {
414
433
  reference_asset: 'USD',
@@ -452,6 +471,7 @@ exports.POOLS_DATA_ETHEREUM = {
452
471
  '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
453
472
  '0xdAC17F958D2ee523a2206206994597C13D831ec7',
454
473
  ],
474
+ gauge_abi: gauge_json_1.default,
455
475
  },
456
476
  usdk: {
457
477
  reference_asset: 'USD',
@@ -495,6 +515,7 @@ exports.POOLS_DATA_ETHEREUM = {
495
515
  '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
496
516
  '0xdAC17F958D2ee523a2206206994597C13D831ec7',
497
517
  ],
518
+ gauge_abi: gauge_json_1.default,
498
519
  },
499
520
  usdn: {
500
521
  reference_asset: 'USD',
@@ -538,6 +559,7 @@ exports.POOLS_DATA_ETHEREUM = {
538
559
  '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
539
560
  '0xdAC17F958D2ee523a2206206994597C13D831ec7',
540
561
  ],
562
+ gauge_abi: gauge_json_1.default,
541
563
  },
542
564
  musd: {
543
565
  reference_asset: 'USD',
@@ -583,6 +605,8 @@ exports.POOLS_DATA_ETHEREUM = {
583
605
  ],
584
606
  sCurveRewards_abi: sCurveRewards_json_4.default,
585
607
  sCurveRewards_address: "0xE6E6E25EfdA5F69687aA9914f8d750C523A1D261",
608
+ reward_tokens: ["0xa3BeD4E1c75D00fa6f4E5E6922DB7261B5E9AcD2"],
609
+ gauge_abi: gauge_synthetix_json_1.default,
586
610
  },
587
611
  rsv: {
588
612
  reference_asset: 'USD',
@@ -628,6 +652,8 @@ exports.POOLS_DATA_ETHEREUM = {
628
652
  ],
629
653
  sCurveRewards_abi: sCurveRewards_json_5.default,
630
654
  sCurveRewards_address: "0xAD4768F408dD170e62E074188D81A29AE31B8Fd8",
655
+ reward_tokens: ["0x8762db106B2c2A0bccB3A80d1Ed41273552616E8"],
656
+ gauge_abi: gauge_synthetix_json_1.default,
631
657
  },
632
658
  tbtc: {
633
659
  reference_asset: 'BTC',
@@ -673,6 +699,7 @@ exports.POOLS_DATA_ETHEREUM = {
673
699
  ],
674
700
  sCurveRewards_abi: sCurveRewards_json_6.default,
675
701
  sCurveRewards_address: '0xAF379f0228ad0d46bB7B4f38f9dc9bCC1ad0360c',
702
+ gauge_abi: gauge_synthetix_json_1.default,
676
703
  },
677
704
  dusd: {
678
705
  reference_asset: 'USD',
@@ -718,6 +745,8 @@ exports.POOLS_DATA_ETHEREUM = {
718
745
  ],
719
746
  sCurveRewards_abi: sCurveRewards_json_7.default,
720
747
  sCurveRewards_address: "0xd9Acb0BAeeD77C99305017821167674Cc7e82f7a",
748
+ reward_tokens: ["0x20c36f062a31865bED8a5B1e512D9a1A20AA333A"],
749
+ gauge_abi: gauge_synthetix_json_1.default,
721
750
  },
722
751
  pbtc: {
723
752
  reference_asset: 'BTC',
@@ -763,7 +792,8 @@ exports.POOLS_DATA_ETHEREUM = {
763
792
  ],
764
793
  sCurveRewards_abi: sCurveRewards_json_8.default,
765
794
  sCurveRewards_address: "0xf7977edc1fa61aa9b5f90d70a74a3fbc46e9dad3",
766
- reward_token: "0x89Ab32156e46F46D02ade3FEcbe5Fc4243B9AAeD",
795
+ reward_tokens: ["0x89Ab32156e46F46D02ade3FEcbe5Fc4243B9AAeD"],
796
+ gauge_abi: gauge_v2_json_1.default,
767
797
  },
768
798
  bbtc: {
769
799
  reference_asset: 'BTC',
@@ -807,6 +837,7 @@ exports.POOLS_DATA_ETHEREUM = {
807
837
  '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599',
808
838
  '0xfE18be6b3Bd88A2D2A7f928d00292E7a9963CfC6',
809
839
  ],
840
+ gauge_abi: gauge_v2_json_1.default,
810
841
  },
811
842
  obtc: {
812
843
  reference_asset: 'BTC',
@@ -852,7 +883,8 @@ exports.POOLS_DATA_ETHEREUM = {
852
883
  ],
853
884
  sCurveRewards_abi: sCurveRewards_json_9.default,
854
885
  sCurveRewards_address: "0x7f1ae7a1fc275b5b9c3ad4497fa94e3b9424e76e",
855
- reward_token: "0x3c9d6c1C73b31c837832c72E04D3152f051fc1A9",
886
+ reward_tokens: ["0x3c9d6c1C73b31c837832c72E04D3152f051fc1A9"],
887
+ gauge_abi: gauge_v2_json_1.default,
856
888
  },
857
889
  seth: {
858
890
  reference_asset: 'ETH',
@@ -877,6 +909,7 @@ exports.POOLS_DATA_ETHEREUM = {
877
909
  '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE',
878
910
  '0x5e74c9036fb86bd7ecdcb084a0673efc32ea31cb',
879
911
  ],
912
+ gauge_abi: gauge_v2_json_1.default,
880
913
  },
881
914
  eurs: {
882
915
  reference_asset: 'EUR',
@@ -902,7 +935,8 @@ exports.POOLS_DATA_ETHEREUM = {
902
935
  ],
903
936
  sCurveRewards_abi: sCurveRewards_json_10.default,
904
937
  sCurveRewards_address: "0xc0d8994cd78ee1980885df1a0c5470fc977b5cfe",
905
- reward_token: "0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f",
938
+ reward_tokens: ["0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f"],
939
+ gauge_abi: gauge_v2_json_1.default,
906
940
  },
907
941
  ust: {
908
942
  reference_asset: 'USD',
@@ -946,6 +980,7 @@ exports.POOLS_DATA_ETHEREUM = {
946
980
  '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
947
981
  '0xdAC17F958D2ee523a2206206994597C13D831ec7',
948
982
  ],
983
+ gauge_abi: gauge_v2_json_1.default,
949
984
  },
950
985
  aave: {
951
986
  reference_asset: 'USD',
@@ -972,6 +1007,10 @@ exports.POOLS_DATA_ETHEREUM = {
972
1007
  '0x3Ed3B47Dd13EC9a98b44e6204A523E766B225811',
973
1008
  ],
974
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,
975
1014
  },
976
1015
  steth: {
977
1016
  reference_asset: 'ETH',
@@ -998,7 +1037,8 @@ exports.POOLS_DATA_ETHEREUM = {
998
1037
  ],
999
1038
  sCurveRewards_abi: sCurveRewards_json_11.default,
1000
1039
  sCurveRewards_address: "0x99ac10631F69C753DDb595D074422a0922D9056B",
1001
- reward_token: "0x5a98fcbea516cf06857215779fd812ca3bef1b32",
1040
+ reward_tokens: ["0x5a98fcbea516cf06857215779fd812ca3bef1b32"],
1041
+ gauge_abi: gauge_v2_json_1.default,
1002
1042
  },
1003
1043
  saave: {
1004
1044
  reference_asset: 'USD',
@@ -1023,6 +1063,10 @@ exports.POOLS_DATA_ETHEREUM = {
1023
1063
  '0x6c5024cd4f8a59110119c56f8933403a539555eb',
1024
1064
  ],
1025
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,
1026
1070
  },
1027
1071
  ankreth: {
1028
1072
  reference_asset: 'ETH',
@@ -1049,8 +1093,8 @@ exports.POOLS_DATA_ETHEREUM = {
1049
1093
  ],
1050
1094
  sCurveRewards_abi: sCurveRewards_json_12.default,
1051
1095
  sCurveRewards_address: "0x3547DFCa04358540891149559e691B146c6B0043",
1052
- reward_token: "0xe0ad1806fd3e7edf6ff52fdb822432e847411033",
1053
1096
  reward_tokens: ["0xe0ad1806fd3e7edf6ff52fdb822432e847411033", "0x8290333cef9e6d528dd5618fb97a76f268f3edd4"],
1097
+ gauge_abi: gauge_v2_json_1.default,
1054
1098
  },
1055
1099
  usdp: {
1056
1100
  reference_asset: 'USD',
@@ -1094,6 +1138,7 @@ exports.POOLS_DATA_ETHEREUM = {
1094
1138
  '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
1095
1139
  '0xdAC17F958D2ee523a2206206994597C13D831ec7',
1096
1140
  ],
1141
+ gauge_abi: gauge_v2_json_1.default,
1097
1142
  },
1098
1143
  ib: {
1099
1144
  reference_asset: 'USD',
@@ -1120,6 +1165,7 @@ exports.POOLS_DATA_ETHEREUM = {
1120
1165
  '0x76eb2fe28b36b3ee97f3adae0c69606eedb2a37c',
1121
1166
  '0x48759f220ed983db51fa7a8c0d2aab8f3ce4166a',
1122
1167
  ],
1168
+ gauge_abi: gauge_v2_json_1.default,
1123
1169
  },
1124
1170
  link: {
1125
1171
  reference_asset: 'LINK',
@@ -1143,6 +1189,7 @@ exports.POOLS_DATA_ETHEREUM = {
1143
1189
  '0x514910771AF9Ca656af840dff83E8264EcF986CA',
1144
1190
  '0xbBC455cb4F1B9e4bFC4B73970d360c8f032EfEE6',
1145
1191
  ],
1192
+ gauge_abi: gauge_v2_json_1.default,
1146
1193
  },
1147
1194
  tusd: {
1148
1195
  reference_asset: 'USD',
@@ -1187,6 +1234,7 @@ exports.POOLS_DATA_ETHEREUM = {
1187
1234
  '0xdAC17F958D2ee523a2206206994597C13D831ec7',
1188
1235
  ],
1189
1236
  is_factory: true,
1237
+ gauge_abi: gauge_v2_json_1.default,
1190
1238
  },
1191
1239
  frax: {
1192
1240
  reference_asset: 'USD',
@@ -1231,9 +1279,10 @@ exports.POOLS_DATA_ETHEREUM = {
1231
1279
  '0xdAC17F958D2ee523a2206206994597C13D831ec7',
1232
1280
  ],
1233
1281
  is_factory: true,
1234
- sCurveRewards_abi: rewards_json_1.default,
1282
+ sCurveRewards_abi: rewards_json_2.default,
1235
1283
  sCurveRewards_address: '0xBBbAf1adf4d39B2843928CCa1E65564e5ce99ccC',
1236
- reward_token: '0x3432b6a60d23ca0dfca7761b7ab56459d9c964d0',
1284
+ reward_tokens: ['0x3432b6a60d23ca0dfca7761b7ab56459d9c964d0'],
1285
+ gauge_abi: gauge_v2_json_1.default,
1237
1286
  },
1238
1287
  lusd: {
1239
1288
  reference_asset: 'USD',
@@ -1278,9 +1327,10 @@ exports.POOLS_DATA_ETHEREUM = {
1278
1327
  '0xdAC17F958D2ee523a2206206994597C13D831ec7',
1279
1328
  ],
1280
1329
  is_factory: true,
1281
- sCurveRewards_abi: rewards_json_1.default,
1330
+ sCurveRewards_abi: rewards_json_2.default,
1282
1331
  sCurveRewards_address: '0xeb31da939878d1d780fdbcc244531c0fb80a2cf3',
1283
- reward_token: '0x6dea81c8171d0ba574754ef6f8b412f2ed88c54d',
1332
+ reward_tokens: ['0x6dea81c8171d0ba574754ef6f8b412f2ed88c54d'],
1333
+ gauge_abi: gauge_v2_json_1.default,
1284
1334
  },
1285
1335
  busdv2: {
1286
1336
  reference_asset: 'USD',
@@ -1325,6 +1375,7 @@ exports.POOLS_DATA_ETHEREUM = {
1325
1375
  '0xdAC17F958D2ee523a2206206994597C13D831ec7',
1326
1376
  ],
1327
1377
  is_factory: true,
1378
+ gauge_abi: gauge_v2_json_1.default,
1328
1379
  },
1329
1380
  reth: {
1330
1381
  reference_asset: 'ETH',
@@ -1349,9 +1400,10 @@ exports.POOLS_DATA_ETHEREUM = {
1349
1400
  '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE',
1350
1401
  '0x9559aaa82d9649c7a7b220e7c461d2e74c9a3593',
1351
1402
  ],
1352
- sCurveRewards_abi: rewards_json_1.default,
1403
+ sCurveRewards_abi: rewards_json_2.default,
1353
1404
  sCurveRewards_address: '0x3b7382805A1d887b73e98570796C5cEFeA32A462',
1354
- reward_token: '0xef3a930e1ffffacd2fc13434ac81bd278b0ecc8d',
1405
+ reward_tokens: ['0xef3a930e1ffffacd2fc13434ac81bd278b0ecc8d'],
1406
+ gauge_abi: gauge_v3_json_1.default,
1355
1407
  },
1356
1408
  alusd: {
1357
1409
  reference_asset: 'USD',
@@ -1396,9 +1448,10 @@ exports.POOLS_DATA_ETHEREUM = {
1396
1448
  '0xdAC17F958D2ee523a2206206994597C13D831ec7',
1397
1449
  ],
1398
1450
  is_factory: true,
1399
- sCurveRewards_abi: rewards_json_1.default,
1451
+ sCurveRewards_abi: rewards_json_2.default,
1400
1452
  sCurveRewards_address: '0xb76256d1091e93976c61449d6e500d9f46d827d4',
1401
- reward_token: '0xdbdb4d16eda451d0503b854cf79d55697f90c8df',
1453
+ reward_tokens: ['0xdbdb4d16eda451d0503b854cf79d55697f90c8df'],
1454
+ gauge_abi: gauge_v3_json_1.default,
1402
1455
  },
1403
1456
  mim: {
1404
1457
  reference_asset: 'USD',
@@ -1411,7 +1464,7 @@ exports.POOLS_DATA_ETHEREUM = {
1411
1464
  is_plain: [true, true],
1412
1465
  swap_address: '0x5a6A4D54456819380173272A5E8E9B9904BdF41B',
1413
1466
  token_address: '0x5a6A4D54456819380173272A5E8E9B9904BdF41B',
1414
- gauge_address: '0xd4b22fedca85e684919955061fdf353b9d38389b',
1467
+ gauge_address: '0xd8b712d29381748dB89c36BCa0138d7c75866ddF',
1415
1468
  underlying_coins: ['MIM', 'DAI', 'USDC', 'USDT'],
1416
1469
  coins: ['MIM', '3Crv'],
1417
1470
  underlying_coin_addresses: [
@@ -1443,6 +1496,10 @@ exports.POOLS_DATA_ETHEREUM = {
1443
1496
  '0xdAC17F958D2ee523a2206206994597C13D831ec7',
1444
1497
  ],
1445
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,
1446
1503
  },
1447
1504
  tricrypto2: {
1448
1505
  reference_asset: 'CRYPTO',
@@ -1471,6 +1528,7 @@ exports.POOLS_DATA_ETHEREUM = {
1471
1528
  ],
1472
1529
  deposit_abi: deposit_json_21.default,
1473
1530
  deposit_address: '0x3993d34e7e99Abf6B6f367309975d1360222D446',
1531
+ gauge_abi: gauge_v3_json_1.default,
1474
1532
  },
1475
1533
  eurt: {
1476
1534
  reference_asset: 'EUR',
@@ -1494,6 +1552,7 @@ exports.POOLS_DATA_ETHEREUM = {
1494
1552
  '0xC581b735A1688071A1746c968e0798D642EDE491',
1495
1553
  '0xD71eCFF9342A5Ced620049e616c5035F1dB98620',
1496
1554
  ],
1555
+ gauge_abi: gauge_v3_json_1.default,
1497
1556
  },
1498
1557
  eurtusd: {
1499
1558
  reference_asset: 'CRYPTO',
@@ -1538,6 +1597,7 @@ exports.POOLS_DATA_ETHEREUM = {
1538
1597
  '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
1539
1598
  '0xdAC17F958D2ee523a2206206994597C13D831ec7',
1540
1599
  ],
1600
+ gauge_abi: gauge_v4_json_1.default,
1541
1601
  },
1542
1602
  crveth: {
1543
1603
  reference_asset: 'CRYPTO',
@@ -1553,7 +1613,7 @@ exports.POOLS_DATA_ETHEREUM = {
1553
1613
  coins: ['WETH', 'CRV'],
1554
1614
  swap_address: '0x8301AE4fc9c624d1D396cbDAa1ed877821D7C511',
1555
1615
  token_address: '0xEd4064f376cB8d68F770FB1Ff088a3d0F3FF5c4d',
1556
- gauge_address: '0x936734ea750bb194ddb4892b191b6bd5c43a3985',
1616
+ gauge_address: '0x1cEBdB0856dd985fAe9b8fEa2262469360B8a3a6',
1557
1617
  underlying_coin_addresses: [
1558
1618
  '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE',
1559
1619
  '0xD533a949740bb3306d119CC777fa900bA034cd52',
@@ -1562,6 +1622,7 @@ exports.POOLS_DATA_ETHEREUM = {
1562
1622
  '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
1563
1623
  '0xD533a949740bb3306d119CC777fa900bA034cd52',
1564
1624
  ],
1625
+ gauge_abi: gauge_v4_json_1.default,
1565
1626
  },
1566
1627
  cvxeth: {
1567
1628
  reference_asset: 'CRYPTO',
@@ -1586,5 +1647,6 @@ exports.POOLS_DATA_ETHEREUM = {
1586
1647
  '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
1587
1648
  '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b',
1588
1649
  ],
1650
+ gauge_abi: gauge_v4_json_1.default,
1589
1651
  },
1590
1652
  };
@@ -11,6 +11,7 @@ var swap_json_3 = __importDefault(require("./json/atricrypto3/swap.json"));
11
11
  var zap_json_1 = __importDefault(require("./json/atricrypto3/zap.json"));
12
12
  var swap_json_4 = __importDefault(require("./json/eurtusd/swap.json"));
13
13
  var deposit_json_1 = __importDefault(require("./json/eurtusd/deposit.json"));
14
+ var gauge_rewards_only_json_1 = __importDefault(require("./json/gauge_rewards_only.json"));
14
15
  exports.POOLS_DATA_POLYGON = {
15
16
  aave: {
16
17
  reference_asset: 'USD',
@@ -39,8 +40,9 @@ exports.POOLS_DATA_POLYGON = {
39
40
  swap_abi: swap_json_1.default,
40
41
  sCurveRewards_abi: rewards_json_1.default,
41
42
  sCurveRewards_address: '0xBdFF0C27dd073C119ebcb1299a68A6A92aE607F0',
42
- reward_token: "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",
43
- crv_reward_contract: "0xC48f4653dd6a9509De44c92beb0604BEA3AEe714",
43
+ reward_tokens: ["0x172370d5cd63279efa6d502dab29171933a610af", "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270"],
44
+ reward_contract: "0xC48f4653dd6a9509De44c92beb0604BEA3AEe714",
45
+ gauge_abi: gauge_rewards_only_json_1.default,
44
46
  },
45
47
  ren: {
46
48
  reference_asset: 'BTC',
@@ -65,7 +67,9 @@ exports.POOLS_DATA_POLYGON = {
65
67
  '0xDBf31dF14B66535aF65AaC99C32e9eA844e14501',
66
68
  ],
67
69
  swap_abi: swap_json_2.default,
68
- crv_reward_contract: "0x488E6ef919C2bB9de535C634a80afb0114DA8F62",
70
+ reward_contract: "0x488E6ef919C2bB9de535C634a80afb0114DA8F62",
71
+ reward_tokens: ["0x172370d5cd63279efa6d502dab29171933a610af", "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270"],
72
+ gauge_abi: gauge_rewards_only_json_1.default,
69
73
  },
70
74
  atricrypto3: {
71
75
  reference_asset: 'CRYPTO',
@@ -104,7 +108,9 @@ exports.POOLS_DATA_POLYGON = {
104
108
  '0x2791bca1f2de4661ed88a30c99a7a9449aa84174',
105
109
  '0xc2132d05d31c914a87c6611c10748aeb04b58e8f', // USDT
106
110
  ],
107
- crv_reward_contract: "0x060e386eCfBacf42Aa72171Af9EFe17b3993fC4F",
111
+ reward_contract: "0x060e386eCfBacf42Aa72171Af9EFe17b3993fC4F",
112
+ reward_tokens: ["0x172370d5cd63279efa6d502dab29171933a610af", "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270"],
113
+ gauge_abi: gauge_rewards_only_json_1.default,
108
114
  },
109
115
  eurtusd: {
110
116
  reference_asset: 'CRYPTO',
@@ -149,6 +155,8 @@ exports.POOLS_DATA_POLYGON = {
149
155
  '0x2791bca1f2de4661ed88a30c99a7a9449aa84174',
150
156
  '0xc2132d05d31c914a87c6611c10748aeb04b58e8f', // USDT
151
157
  ],
152
- crv_reward_contract: "0xAF78381216a8eCC7Ad5957f3cD12a431500E0B0D",
158
+ reward_contract: "0xAF78381216a8eCC7Ad5957f3cD12a431500E0B0D",
159
+ reward_tokens: ["0x172370d5cd63279efa6d502dab29171933a610af"],
160
+ gauge_abi: gauge_rewards_only_json_1.default,
153
161
  },
154
162
  };
@@ -0,0 +1,107 @@
1
+ [
2
+ {
3
+ "stateMutability": "nonpayable",
4
+ "type": "constructor",
5
+ "inputs": [
6
+ {
7
+ "name": "_owner",
8
+ "type": "address"
9
+ }
10
+ ],
11
+ "outputs": []
12
+ },
13
+ {
14
+ "stateMutability": "nonpayable",
15
+ "type": "function",
16
+ "name": "claim_rewards",
17
+ "inputs": [],
18
+ "outputs": [],
19
+ "gas": "45372"
20
+ },
21
+ {
22
+ "stateMutability": "view",
23
+ "type": "function",
24
+ "name": "last_claim",
25
+ "inputs": [],
26
+ "outputs": [
27
+ {
28
+ "name": "",
29
+ "type": "uint256"
30
+ }
31
+ ],
32
+ "gas": "2424"
33
+ },
34
+ {
35
+ "stateMutability": "view",
36
+ "type": "function",
37
+ "name": "reward_receiver",
38
+ "inputs": [],
39
+ "outputs": [
40
+ {
41
+ "name": "",
42
+ "type": "address"
43
+ }
44
+ ],
45
+ "gas": "2658"
46
+ },
47
+ {
48
+ "stateMutability": "nonpayable",
49
+ "type": "function",
50
+ "name": "set_reward_receiver",
51
+ "inputs": [
52
+ {
53
+ "name": "_reward_receiver",
54
+ "type": "address"
55
+ }
56
+ ],
57
+ "outputs": [],
58
+ "gas": "37635"
59
+ },
60
+ {
61
+ "stateMutability": "nonpayable",
62
+ "type": "function",
63
+ "name": "commit_transfer_ownership",
64
+ "inputs": [
65
+ {
66
+ "name": "_future_owner",
67
+ "type": "address"
68
+ }
69
+ ],
70
+ "outputs": [],
71
+ "gas": "37665"
72
+ },
73
+ {
74
+ "stateMutability": "nonpayable",
75
+ "type": "function",
76
+ "name": "accept_transfer_ownership",
77
+ "inputs": [],
78
+ "outputs": [],
79
+ "gas": "37610"
80
+ },
81
+ {
82
+ "stateMutability": "view",
83
+ "type": "function",
84
+ "name": "owner",
85
+ "inputs": [],
86
+ "outputs": [
87
+ {
88
+ "name": "",
89
+ "type": "address"
90
+ }
91
+ ],
92
+ "gas": "2568"
93
+ },
94
+ {
95
+ "stateMutability": "view",
96
+ "type": "function",
97
+ "name": "future_owner",
98
+ "inputs": [],
99
+ "outputs": [
100
+ {
101
+ "name": "",
102
+ "type": "address"
103
+ }
104
+ ],
105
+ "gas": "2598"
106
+ }
107
+ ]