@curvefi/api 1.10.0 → 1.14.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 (43) hide show
  1. package/README.md +38 -0
  2. package/lib/constants/abis/abis-ethereum.d.ts +1 -1
  3. package/lib/constants/abis/abis-ethereum.js +68 -2
  4. package/lib/constants/abis/abis-polygon.d.ts +4 -0
  5. package/lib/constants/abis/abis-polygon.js +154 -0
  6. package/lib/constants/abis/json/atricrypto3/swap.json +1269 -0
  7. package/lib/constants/abis/json/atricrypto3/zap.json +239 -0
  8. package/lib/constants/abis/json/busd/deposit.json +5 -10
  9. package/lib/constants/abis/json/busd/swap.json +18 -36
  10. package/lib/constants/abis/json/compound/deposit.json +5 -10
  11. package/lib/constants/abis/json/compound/migration.json +1 -2
  12. package/lib/constants/abis/json/compound/oldSwap.json +16 -32
  13. package/lib/constants/abis/json/compound/swap.json +18 -36
  14. package/lib/constants/abis/json/iearn/deposit.json +5 -10
  15. package/lib/constants/abis/json/iearn/swap.json +18 -36
  16. package/lib/constants/abis/json/paave/rewards.json +657 -0
  17. package/lib/constants/abis/json/pax/deposit.json +5 -10
  18. package/lib/constants/abis/json/pax/swap.json +19 -38
  19. package/lib/constants/abis/json/ren/swap.json +19 -38
  20. package/lib/constants/abis/json/ren-polygon/swap.json +1112 -0
  21. package/lib/constants/abis/json/sbtc/swap.json +19 -38
  22. package/lib/constants/abis/json/streamer.json +257 -0
  23. package/lib/constants/abis/json/susdv2/deposit.json +5 -10
  24. package/lib/constants/abis/json/susdv2/swap.json +16 -32
  25. package/lib/constants/abis/json/usdt/deposit.json +5 -10
  26. package/lib/constants/abis/json/usdt/swap.json +19 -37
  27. package/lib/constants/aliases.d.ts +16 -0
  28. package/lib/constants/aliases.js +19 -0
  29. package/lib/constants/coins-ethereum.d.ts +31 -0
  30. package/lib/constants/{coins.js → coins-ethereum.js} +48 -14
  31. package/lib/constants/coins-polygon.d.ts +31 -0
  32. package/lib/constants/coins-polygon.js +74 -0
  33. package/lib/curve.d.ts +23 -7
  34. package/lib/curve.js +133 -91
  35. package/lib/index.d.ts +2 -1
  36. package/lib/index.js +3 -0
  37. package/lib/interfaces.d.ts +3 -0
  38. package/lib/pools.d.ts +25 -4
  39. package/lib/pools.js +323 -101
  40. package/lib/utils.d.ts +1 -1
  41. package/lib/utils.js +49 -41
  42. package/package.json +6 -5
  43. package/lib/constants/coins.d.ts +0 -25
package/README.md CHANGED
@@ -211,6 +211,44 @@ 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
+ ````
251
+
214
252
  ## Add/remove liquidity
215
253
 
216
254
  ```ts
@@ -1,4 +1,4 @@
1
1
  import { PoolDataInterface } from "../../interfaces";
2
- export declare const poolsData: {
2
+ export declare const POOLS_DATA_ETHEREUM: {
3
3
  [index: string]: PoolDataInterface;
4
4
  };
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.poolsData = void 0;
6
+ exports.POOLS_DATA_ETHEREUM = void 0;
7
7
  // import config from '../config';
8
8
  var deposit_json_1 = __importDefault(require("./json/compound/deposit.json"));
9
9
  var migration_json_1 = __importDefault(require("./json/compound/migration.json"));
@@ -82,8 +82,9 @@ var swap_json_35 = __importDefault(require("./json/eurt/swap.json"));
82
82
  var swap_json_36 = __importDefault(require("./json/eurtusd/swap.json"));
83
83
  var deposit_json_22 = __importDefault(require("./json/eurtusd/deposit.json"));
84
84
  var swap_json_37 = __importDefault(require("./json/crveth/swap.json"));
85
- exports.poolsData = {
85
+ exports.POOLS_DATA_ETHEREUM = {
86
86
  compound: {
87
+ reference_asset: 'USD',
87
88
  N_COINS: 2,
88
89
  underlying_decimals: [18, 6],
89
90
  decimals: [8, 8],
@@ -112,6 +113,7 @@ exports.poolsData = {
112
113
  old_swap_abi: oldSwap_json_1.default,
113
114
  },
114
115
  usdt: {
116
+ reference_asset: 'USD',
115
117
  N_COINS: 3,
116
118
  underlying_decimals: [18, 6, 6],
117
119
  decimals: [8, 8, 6],
@@ -138,6 +140,7 @@ exports.poolsData = {
138
140
  swap_abi: swap_json_2.default,
139
141
  },
140
142
  y: {
143
+ reference_asset: 'USD',
141
144
  N_COINS: 4,
142
145
  underlying_decimals: [18, 6, 6, 18],
143
146
  decimals: [18, 6, 6, 18],
@@ -170,6 +173,7 @@ exports.poolsData = {
170
173
  aRewards_address: '0xcc9efea3ac5df6ad6a656235ef955fbfef65b862',
171
174
  },
172
175
  busd: {
176
+ reference_asset: 'USD',
173
177
  N_COINS: 4,
174
178
  underlying_decimals: [18, 6, 6, 18],
175
179
  decimals: [18, 6, 6, 18],
@@ -198,6 +202,7 @@ exports.poolsData = {
198
202
  swap_abi: swap_json_4.default,
199
203
  },
200
204
  susd: {
205
+ reference_asset: 'USD',
201
206
  swap_abi: swap_json_5.default,
202
207
  deposit_abi: deposit_json_5.default,
203
208
  N_COINS: 4,
@@ -228,6 +233,7 @@ exports.poolsData = {
228
233
  sCurveRewards_address: '0xdcb6a51ea3ca5d3fd898fd6564757c7aaec3ca92',
229
234
  },
230
235
  pax: {
236
+ reference_asset: 'USD',
231
237
  swap_abi: swap_json_6.default,
232
238
  deposit_abi: deposit_json_6.default,
233
239
  N_COINS: 4,
@@ -256,6 +262,7 @@ exports.poolsData = {
256
262
  ],
257
263
  },
258
264
  ren: {
265
+ reference_asset: 'BTC',
259
266
  N_COINS: 2,
260
267
  underlying_decimals: [8, 8],
261
268
  decimals: [8, 8],
@@ -282,6 +289,7 @@ exports.poolsData = {
282
289
  adapter_address: '0x26D9980571e77FfB0349f9c801DD7ca9951Fb656',
283
290
  },
284
291
  sbtc: {
292
+ reference_asset: 'BTC',
285
293
  N_COINS: 3,
286
294
  underlying_decimals: [8, 8, 18],
287
295
  decimals: [8, 8, 18],
@@ -312,6 +320,7 @@ exports.poolsData = {
312
320
  sCurveRewards_address: '0x13C1542A468319688B89E323fe9A3Be3A90EBb27',
313
321
  },
314
322
  hbtc: {
323
+ reference_asset: 'BTC',
315
324
  swap_abi: swap_json_9.default,
316
325
  N_COINS: 2,
317
326
  underlying_decimals: [18, 8],
@@ -334,6 +343,7 @@ exports.poolsData = {
334
343
  ],
335
344
  },
336
345
  '3pool': {
346
+ reference_asset: 'USD',
337
347
  swap_abi: swap_json_10.default,
338
348
  N_COINS: 3,
339
349
  underlying_decimals: [18, 6, 6],
@@ -358,6 +368,7 @@ exports.poolsData = {
358
368
  ],
359
369
  },
360
370
  gusd: {
371
+ reference_asset: 'USD',
361
372
  N_COINS: 2,
362
373
  underlying_decimals: [2, 18],
363
374
  decimals: [2, 18],
@@ -400,6 +411,7 @@ exports.poolsData = {
400
411
  ],
401
412
  },
402
413
  husd: {
414
+ reference_asset: 'USD',
403
415
  N_COINS: 2,
404
416
  underlying_decimals: [8, 18],
405
417
  decimals: [8, 18],
@@ -442,6 +454,7 @@ exports.poolsData = {
442
454
  ],
443
455
  },
444
456
  usdk: {
457
+ reference_asset: 'USD',
445
458
  N_COINS: 2,
446
459
  underlying_decimals: [18, 18],
447
460
  decimals: [18, 18],
@@ -484,6 +497,7 @@ exports.poolsData = {
484
497
  ],
485
498
  },
486
499
  usdn: {
500
+ reference_asset: 'USD',
487
501
  N_COINS: 2,
488
502
  underlying_decimals: [18, 18],
489
503
  decimals: [18, 18],
@@ -526,6 +540,7 @@ exports.poolsData = {
526
540
  ],
527
541
  },
528
542
  musd: {
543
+ reference_asset: 'USD',
529
544
  N_COINS: 2,
530
545
  underlying_decimals: [18, 18],
531
546
  decimals: [18, 18],
@@ -570,6 +585,7 @@ exports.poolsData = {
570
585
  sCurveRewards_address: "0xE6E6E25EfdA5F69687aA9914f8d750C523A1D261",
571
586
  },
572
587
  rsv: {
588
+ reference_asset: 'USD',
573
589
  N_COINS: 2,
574
590
  underlying_decimals: [18, 18],
575
591
  decimals: [18, 18],
@@ -614,6 +630,7 @@ exports.poolsData = {
614
630
  sCurveRewards_address: "0xAD4768F408dD170e62E074188D81A29AE31B8Fd8",
615
631
  },
616
632
  tbtc: {
633
+ reference_asset: 'BTC',
617
634
  N_COINS: 2,
618
635
  underlying_decimals: [18, 18],
619
636
  decimals: [18, 18],
@@ -658,6 +675,7 @@ exports.poolsData = {
658
675
  sCurveRewards_address: '0xAF379f0228ad0d46bB7B4f38f9dc9bCC1ad0360c',
659
676
  },
660
677
  dusd: {
678
+ reference_asset: 'USD',
661
679
  N_COINS: 2,
662
680
  underlying_decimals: [18, 18],
663
681
  decimals: [18, 18],
@@ -702,6 +720,7 @@ exports.poolsData = {
702
720
  sCurveRewards_address: "0xd9Acb0BAeeD77C99305017821167674Cc7e82f7a",
703
721
  },
704
722
  pbtc: {
723
+ reference_asset: 'BTC',
705
724
  swap_abi: swap_json_19.default,
706
725
  N_COINS: 2,
707
726
  underlying_decimals: [18, 18],
@@ -747,6 +766,7 @@ exports.poolsData = {
747
766
  reward_token: "0x89Ab32156e46F46D02ade3FEcbe5Fc4243B9AAeD",
748
767
  },
749
768
  bbtc: {
769
+ reference_asset: 'BTC',
750
770
  swap_abi: swap_json_20.default,
751
771
  N_COINS: 2,
752
772
  underlying_decimals: [8, 18],
@@ -789,6 +809,7 @@ exports.poolsData = {
789
809
  ],
790
810
  },
791
811
  obtc: {
812
+ reference_asset: 'BTC',
792
813
  swap_abi: swap_json_21.default,
793
814
  N_COINS: 2,
794
815
  underlying_decimals: [18, 18],
@@ -834,6 +855,7 @@ exports.poolsData = {
834
855
  reward_token: "0x3c9d6c1C73b31c837832c72E04D3152f051fc1A9",
835
856
  },
836
857
  seth: {
858
+ reference_asset: 'ETH',
837
859
  swap_abi: swap_json_22.default,
838
860
  N_COINS: 2,
839
861
  has_eth: true,
@@ -857,6 +879,7 @@ exports.poolsData = {
857
879
  ],
858
880
  },
859
881
  eurs: {
882
+ reference_asset: 'EUR',
860
883
  swap_abi: swap_json_23.default,
861
884
  N_COINS: 2,
862
885
  underlying_decimals: [2, 18],
@@ -882,6 +905,7 @@ exports.poolsData = {
882
905
  reward_token: "0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f",
883
906
  },
884
907
  ust: {
908
+ reference_asset: 'USD',
885
909
  swap_abi: swap_json_24.default,
886
910
  N_COINS: 2,
887
911
  underlying_decimals: [18, 18],
@@ -924,6 +948,7 @@ exports.poolsData = {
924
948
  ],
925
949
  },
926
950
  aave: {
951
+ reference_asset: 'USD',
927
952
  N_COINS: 3,
928
953
  is_aave: true,
929
954
  underlying_decimals: [18, 6, 6],
@@ -949,6 +974,7 @@ exports.poolsData = {
949
974
  swap_abi: swap_json_25.default,
950
975
  },
951
976
  steth: {
977
+ reference_asset: 'ETH',
952
978
  swap_abi: swap_json_26.default,
953
979
  N_COINS: 2,
954
980
  has_eth: true,
@@ -975,6 +1001,7 @@ exports.poolsData = {
975
1001
  reward_token: "0x5a98fcbea516cf06857215779fd812ca3bef1b32",
976
1002
  },
977
1003
  saave: {
1004
+ reference_asset: 'USD',
978
1005
  N_COINS: 2,
979
1006
  is_aave: true,
980
1007
  underlying_decimals: [18, 18],
@@ -998,6 +1025,7 @@ exports.poolsData = {
998
1025
  swap_abi: swap_json_27.default,
999
1026
  },
1000
1027
  ankreth: {
1028
+ reference_asset: 'ETH',
1001
1029
  swap_abi: swap_json_28.default,
1002
1030
  N_COINS: 2,
1003
1031
  has_eth: true,
@@ -1025,6 +1053,7 @@ exports.poolsData = {
1025
1053
  reward_tokens: ["0xe0ad1806fd3e7edf6ff52fdb822432e847411033", "0x8290333cef9e6d528dd5618fb97a76f268f3edd4"],
1026
1054
  },
1027
1055
  usdp: {
1056
+ reference_asset: 'USD',
1028
1057
  swap_abi: swap_json_29.default,
1029
1058
  N_COINS: 2,
1030
1059
  underlying_decimals: [18, 18],
@@ -1067,6 +1096,7 @@ exports.poolsData = {
1067
1096
  ],
1068
1097
  },
1069
1098
  ib: {
1099
+ reference_asset: 'USD',
1070
1100
  swap_abi: swap_json_30.default,
1071
1101
  N_COINS: 3,
1072
1102
  underlying_decimals: [18, 6, 6],
@@ -1092,6 +1122,7 @@ exports.poolsData = {
1092
1122
  ],
1093
1123
  },
1094
1124
  link: {
1125
+ reference_asset: 'LINK',
1095
1126
  swap_abi: swap_json_31.default,
1096
1127
  N_COINS: 2,
1097
1128
  underlying_decimals: [18, 18],
@@ -1114,6 +1145,7 @@ exports.poolsData = {
1114
1145
  ],
1115
1146
  },
1116
1147
  tusd: {
1148
+ reference_asset: 'USD',
1117
1149
  swap_abi: swap_json_33.default,
1118
1150
  N_COINS: 2,
1119
1151
  underlying_decimals: [18, 18],
@@ -1157,6 +1189,7 @@ exports.poolsData = {
1157
1189
  is_factory: true,
1158
1190
  },
1159
1191
  frax: {
1192
+ reference_asset: 'USD',
1160
1193
  swap_abi: swap_json_33.default,
1161
1194
  N_COINS: 2,
1162
1195
  underlying_decimals: [18, 18],
@@ -1203,6 +1236,7 @@ exports.poolsData = {
1203
1236
  reward_token: '0x3432b6a60d23ca0dfca7761b7ab56459d9c964d0',
1204
1237
  },
1205
1238
  lusd: {
1239
+ reference_asset: 'USD',
1206
1240
  swap_abi: swap_json_33.default,
1207
1241
  N_COINS: 2,
1208
1242
  underlying_decimals: [18, 18],
@@ -1249,6 +1283,7 @@ exports.poolsData = {
1249
1283
  reward_token: '0x6dea81c8171d0ba574754ef6f8b412f2ed88c54d',
1250
1284
  },
1251
1285
  busdv2: {
1286
+ reference_asset: 'USD',
1252
1287
  swap_abi: swap_json_33.default,
1253
1288
  N_COINS: 2,
1254
1289
  underlying_decimals: [18, 18],
@@ -1292,6 +1327,7 @@ exports.poolsData = {
1292
1327
  is_factory: true,
1293
1328
  },
1294
1329
  reth: {
1330
+ reference_asset: 'ETH',
1295
1331
  swap_abi: swap_json_32.default,
1296
1332
  N_COINS: 2,
1297
1333
  has_eth: true,
@@ -1318,6 +1354,7 @@ exports.poolsData = {
1318
1354
  reward_token: '0xef3a930e1ffffacd2fc13434ac81bd278b0ecc8d',
1319
1355
  },
1320
1356
  alusd: {
1357
+ reference_asset: 'USD',
1321
1358
  swap_abi: swap_json_33.default,
1322
1359
  N_COINS: 2,
1323
1360
  underlying_decimals: [18, 18],
@@ -1364,6 +1401,7 @@ exports.poolsData = {
1364
1401
  reward_token: '0xdbdb4d16eda451d0503b854cf79d55697f90c8df',
1365
1402
  },
1366
1403
  mim: {
1404
+ reference_asset: 'USD',
1367
1405
  swap_abi: swap_json_33.default,
1368
1406
  N_COINS: 2,
1369
1407
  underlying_decimals: [18, 18],
@@ -1407,6 +1445,7 @@ exports.poolsData = {
1407
1445
  is_factory: true,
1408
1446
  },
1409
1447
  tricrypto2: {
1448
+ reference_asset: 'CRYPTO',
1410
1449
  swap_abi: swap_json_34.default,
1411
1450
  N_COINS: 3,
1412
1451
  is_crypto: true,
@@ -1434,6 +1473,7 @@ exports.poolsData = {
1434
1473
  deposit_address: '0x3993d34e7e99Abf6B6f367309975d1360222D446',
1435
1474
  },
1436
1475
  eurt: {
1476
+ reference_asset: 'EUR',
1437
1477
  swap_abi: swap_json_35.default,
1438
1478
  N_COINS: 2,
1439
1479
  underlying_decimals: [6, 18],
@@ -1456,6 +1496,7 @@ exports.poolsData = {
1456
1496
  ],
1457
1497
  },
1458
1498
  eurtusd: {
1499
+ reference_asset: 'CRYPTO',
1459
1500
  N_COINS: 2,
1460
1501
  underlying_decimals: [6, 18],
1461
1502
  decimals: [6, 18],
@@ -1499,6 +1540,7 @@ exports.poolsData = {
1499
1540
  ],
1500
1541
  },
1501
1542
  crveth: {
1543
+ reference_asset: 'CRYPTO',
1502
1544
  swap_abi: swap_json_37.default,
1503
1545
  N_COINS: 2,
1504
1546
  is_crypto: true,
@@ -1521,4 +1563,28 @@ exports.poolsData = {
1521
1563
  '0xD533a949740bb3306d119CC777fa900bA034cd52',
1522
1564
  ],
1523
1565
  },
1566
+ cvxeth: {
1567
+ reference_asset: 'CRYPTO',
1568
+ swap_abi: swap_json_37.default,
1569
+ N_COINS: 2,
1570
+ is_crypto: true,
1571
+ underlying_decimals: [18, 18],
1572
+ decimals: [18, 18],
1573
+ tethered: [false, false],
1574
+ use_lending: [false, false],
1575
+ is_plain: [true, true],
1576
+ swap_address: '0xB576491F1E6e5E62f1d8F26062Ee822B40B0E0d4',
1577
+ token_address: '0x3A283D9c08E8b55966afb64C515f5143cf907611',
1578
+ gauge_address: '0x7E1444BA99dcdFfE8fBdb42C02F0005D14f13BE1',
1579
+ underlying_coins: ['ETH', 'CVX'],
1580
+ coins: ['WETH', 'CVX'],
1581
+ underlying_coin_addresses: [
1582
+ '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE',
1583
+ '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b',
1584
+ ],
1585
+ coin_addresses: [
1586
+ '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
1587
+ '0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b',
1588
+ ],
1589
+ },
1524
1590
  };
@@ -0,0 +1,4 @@
1
+ import { PoolDataInterface } from "../../interfaces";
2
+ export declare const POOLS_DATA_POLYGON: {
3
+ [index: string]: PoolDataInterface;
4
+ };
@@ -0,0 +1,154 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.POOLS_DATA_POLYGON = void 0;
7
+ var swap_json_1 = __importDefault(require("./json/aave/swap.json"));
8
+ var rewards_json_1 = __importDefault(require("./json/paave/rewards.json"));
9
+ var swap_json_2 = __importDefault(require("./json/ren-polygon/swap.json"));
10
+ var swap_json_3 = __importDefault(require("./json/atricrypto3/swap.json"));
11
+ var zap_json_1 = __importDefault(require("./json/atricrypto3/zap.json"));
12
+ var swap_json_4 = __importDefault(require("./json/eurtusd/swap.json"));
13
+ var deposit_json_1 = __importDefault(require("./json/eurtusd/deposit.json"));
14
+ exports.POOLS_DATA_POLYGON = {
15
+ aave: {
16
+ reference_asset: 'USD',
17
+ N_COINS: 3,
18
+ is_aave: true,
19
+ underlying_decimals: [18, 6, 6],
20
+ decimals: [18, 6, 6],
21
+ use_lending: [true, true, true],
22
+ tethered: [false, false, true],
23
+ is_plain: [false, false, false],
24
+ swap_address: '0x445FE580eF8d70FF569aB36e80c647af338db351',
25
+ token_address: '0xE7a24EF0C5e95Ffb0f6684b813A78F2a3AD7D171',
26
+ gauge_address: '0x19793B454D3AfC7b454F206Ffe95aDE26cA6912c',
27
+ underlying_coins: ['DAI', 'USDC', 'USDT'],
28
+ coins: ['amDAI', 'amUSDC', 'amUSDT'],
29
+ underlying_coin_addresses: [
30
+ '0x8f3cf7ad23cd3cadbd9735aff958023239c6a063',
31
+ '0x2791bca1f2de4661ed88a30c99a7a9449aa84174',
32
+ '0xc2132d05d31c914a87c6611c10748aeb04b58e8f',
33
+ ],
34
+ coin_addresses: [
35
+ '0x27F8D03b3a2196956ED754baDc28D73be8830A6e',
36
+ '0x1a13F4Ca1d028320A707D99520AbFefca3998b7F',
37
+ '0x60D55F02A771d515e077c9C2403a1ef324885CeC',
38
+ ],
39
+ swap_abi: swap_json_1.default,
40
+ sCurveRewards_abi: rewards_json_1.default,
41
+ sCurveRewards_address: '0xBdFF0C27dd073C119ebcb1299a68A6A92aE607F0',
42
+ reward_token: "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",
43
+ crv_reward_contract: "0xC48f4653dd6a9509De44c92beb0604BEA3AEe714",
44
+ },
45
+ ren: {
46
+ reference_asset: 'BTC',
47
+ N_COINS: 2,
48
+ is_aave: true,
49
+ underlying_decimals: [8, 8],
50
+ decimals: [8, 8],
51
+ use_lending: [true, false],
52
+ tethered: [false, false],
53
+ is_plain: [false, true],
54
+ swap_address: '0xC2d95EEF97Ec6C17551d45e77B590dc1F9117C67',
55
+ token_address: '0xf8a57c1d3b9629b77b6726a042ca48990A84Fb49',
56
+ gauge_address: '0xffbACcE0CC7C19d46132f1258FC16CF6871D153c',
57
+ underlying_coins: ['WBTC', 'renBTC'],
58
+ coins: ['amWBTC', 'renBTC'],
59
+ underlying_coin_addresses: [
60
+ '0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6',
61
+ '0xDBf31dF14B66535aF65AaC99C32e9eA844e14501',
62
+ ],
63
+ coin_addresses: [
64
+ '0x5c2ed810328349100A66B82b78a1791B101C9D61',
65
+ '0xDBf31dF14B66535aF65AaC99C32e9eA844e14501',
66
+ ],
67
+ swap_abi: swap_json_2.default,
68
+ crv_reward_contract: "0x488E6ef919C2bB9de535C634a80afb0114DA8F62",
69
+ },
70
+ atricrypto3: {
71
+ reference_asset: 'CRYPTO',
72
+ swap_abi: swap_json_3.default,
73
+ deposit_abi: zap_json_1.default,
74
+ N_COINS: 5,
75
+ underlying_decimals: [18, 6, 6, 8, 18],
76
+ decimals: [18, 8, 18],
77
+ tethered: [false, false, false, false, false],
78
+ use_lending: [false, false, false, false, false],
79
+ is_plain: [true, true, true, true, true],
80
+ swap_address: '0x92215849c439E1f8612b6646060B4E3E5ef822cC',
81
+ token_address: '0xdAD97F7713Ae9437fa9249920eC8507e5FbB23d3',
82
+ gauge_address: '0x3B6B158A76fd8ccc297538F454ce7B4787778c7C',
83
+ deposit_address: '0x1d8b86e3D88cDb2d34688e87E72F388Cb541B7C8',
84
+ is_crypto: true,
85
+ base_pool: 'aave',
86
+ is_fake: true,
87
+ underlying_coins: ['DAI', 'USDC', 'USDT', 'WBTC', 'WETH'],
88
+ coins: ['am3CRV', 'amWBTC', 'amWETH'],
89
+ underlying_coin_addresses: [
90
+ '0x8f3cf7ad23cd3cadbd9735aff958023239c6a063',
91
+ '0x2791bca1f2de4661ed88a30c99a7a9449aa84174',
92
+ '0xc2132d05d31c914a87c6611c10748aeb04b58e8f',
93
+ '0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6',
94
+ '0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619', // WETH
95
+ ],
96
+ coin_addresses: [
97
+ '0xE7a24EF0C5e95Ffb0f6684b813A78F2a3AD7D171',
98
+ '0x5c2ed810328349100A66B82b78a1791B101C9D61',
99
+ '0x28424507fefb6f7f8E9D3860F56504E4e5f5f390', // amWETH
100
+ ],
101
+ is_meta: true,
102
+ meta_coin_addresses: [
103
+ '0x8f3cf7ad23cd3cadbd9735aff958023239c6a063',
104
+ '0x2791bca1f2de4661ed88a30c99a7a9449aa84174',
105
+ '0xc2132d05d31c914a87c6611c10748aeb04b58e8f', // USDT
106
+ ],
107
+ crv_reward_contract: "0x060e386eCfBacf42Aa72171Af9EFe17b3993fC4F",
108
+ },
109
+ eurtusd: {
110
+ reference_asset: 'CRYPTO',
111
+ N_COINS: 2,
112
+ underlying_decimals: [6, 18],
113
+ decimals: [6, 18],
114
+ tethered: [false, false],
115
+ use_lending: [false, false],
116
+ is_plain: [true, true],
117
+ swap_address: '0xB446BF7b8D6D4276d0c75eC0e3ee8dD7Fe15783A',
118
+ token_address: '0x600743B1d8A96438bD46836fD34977a00293f6Aa',
119
+ gauge_address: '0x40c0e9376468b4f257d15F8c47E5D0C646C28880',
120
+ is_crypto: true,
121
+ base_pool: 'aave',
122
+ underlying_coins: ['EURT', 'DAI', 'USDC', 'USDT'],
123
+ coins: ['EURT', 'am3CRV'],
124
+ underlying_coin_addresses: [
125
+ '0x7BDF330f423Ea880FF95fC41A280fD5eCFD3D09f',
126
+ '0xE7a24EF0C5e95Ffb0f6684b813A78F2a3AD7D171', // am3CRV
127
+ ],
128
+ coin_addresses: [
129
+ '0x7BDF330f423Ea880FF95fC41A280fD5eCFD3D09f',
130
+ '0xE7a24EF0C5e95Ffb0f6684b813A78F2a3AD7D171', // am3CRV
131
+ ],
132
+ swap_abi: swap_json_4.default,
133
+ deposit_abi: deposit_json_1.default,
134
+ deposit_address: '0x225FB4176f0E20CDb66b4a3DF70CA3063281E855',
135
+ is_meta: true,
136
+ meta_N: 5,
137
+ meta_decimals: [6, 18, 18, 6, 6],
138
+ meta_coin_decimals: [6, 18, 6, 6],
139
+ meta_wrapped_decimals: [6, 18],
140
+ meta_coin_addresses: [
141
+ '0x8f3cf7ad23cd3cadbd9735aff958023239c6a063',
142
+ '0x2791bca1f2de4661ed88a30c99a7a9449aa84174',
143
+ '0xc2132d05d31c914a87c6611c10748aeb04b58e8f', // USDT
144
+ ],
145
+ all_coin_addresses: [
146
+ '0x7BDF330f423Ea880FF95fC41A280fD5eCFD3D09f',
147
+ '0xE7a24EF0C5e95Ffb0f6684b813A78F2a3AD7D171',
148
+ '0x8f3cf7ad23cd3cadbd9735aff958023239c6a063',
149
+ '0x2791bca1f2de4661ed88a30c99a7a9449aa84174',
150
+ '0xc2132d05d31c914a87c6611c10748aeb04b58e8f', // USDT
151
+ ],
152
+ crv_reward_contract: "0xAF78381216a8eCC7Ad5957f3cD12a431500E0B0D",
153
+ },
154
+ };