@curvefi/api 2.1.0 → 2.3.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 (38) hide show
  1. package/README.md +2 -0
  2. package/lib/constants/abis/dusd/sCurveRewards.json +472 -1
  3. package/lib/constants/abis/gauge_child.json +1039 -0
  4. package/lib/constants/abis/{gauge_rewards_only.json → minter_child.json} +159 -312
  5. package/lib/constants/abis/musd/sCurveRewards.json +482 -1
  6. package/lib/constants/abis/rsv/sCurveRewards.json +472 -1
  7. package/lib/constants/abis/sbtc/sCurveRewards.json +566 -1
  8. package/lib/constants/abis/susdv2/sCurveRewards.json +457 -1
  9. package/lib/constants/abis/tbtc/sCurveRewards.json +472 -1
  10. package/lib/constants/aliases.d.ts +1 -0
  11. package/lib/constants/aliases.js +14 -2
  12. package/lib/constants/coins/avalanche.d.ts +7 -0
  13. package/lib/constants/coins/avalanche.js +33 -0
  14. package/lib/constants/pools/avalanche.d.ts +4 -0
  15. package/lib/constants/pools/avalanche.js +106 -0
  16. package/lib/constants/pools/ethereum.js +0 -33
  17. package/lib/constants/pools/index.d.ts +2 -1
  18. package/lib/constants/pools/index.js +3 -1
  19. package/lib/constants/pools/polygon.js +19 -24
  20. package/lib/constants/utils.js +0 -9
  21. package/lib/curve.d.ts +5 -1
  22. package/lib/curve.js +47 -29
  23. package/lib/external-api.d.ts +3 -3
  24. package/lib/factory/common.d.ts +2 -0
  25. package/lib/factory/common.js +45 -0
  26. package/lib/factory/constants.d.ts +11 -11
  27. package/lib/factory/constants.js +60 -58
  28. package/lib/factory/factory-api.js +20 -46
  29. package/lib/factory/factory-crypto.js +7 -4
  30. package/lib/factory/factory.js +31 -163
  31. package/lib/interfaces.d.ts +37 -29
  32. package/lib/pools/PoolTemplate.d.ts +11 -1
  33. package/lib/pools/PoolTemplate.js +175 -104
  34. package/lib/pools/poolConstructor.js +3 -3
  35. package/lib/router.js +10 -10
  36. package/lib/utils.d.ts +2 -0
  37. package/lib/utils.js +36 -14
  38. package/package.json +1 -1
@@ -1 +1,472 @@
1
- [{ "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }], "name": "OwnershipTransferred", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "reward", "type": "uint256" }], "name": "RewardAdded", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "user", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "reward", "type": "uint256" }], "name": "RewardPaid", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "user", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "Staked", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "user", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "Withdrawn", "type": "event" }, { "constant": true, "inputs": [], "name": "DURATION", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "balanceOf", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "earned", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "exit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [], "name": "getReward", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "isOwner", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "lastTimeRewardApplicable", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "lastUpdateTime", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "uint256", "name": "reward", "type": "uint256" }], "name": "notifyRewardAmount", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "periodFinish", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "rewardDistribution", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "rewardPerToken", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "rewardPerTokenStored", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "rewardRate", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "rewards", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "_rewardDistribution", "type": "address" }], "name": "setRewardDistribution", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "snx", "outputs": [{ "internalType": "contract IERC20", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "stake", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "totalSupply", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "uni", "outputs": [{ "internalType": "contract IERC20", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "userRewardPerTokenPaid", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "withdraw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }]
1
+ [
2
+ {
3
+ "anonymous": false,
4
+ "inputs": [
5
+ {
6
+ "indexed": true,
7
+ "internalType": "address",
8
+ "name": "previousOwner",
9
+ "type": "address"
10
+ },
11
+ {
12
+ "indexed": true,
13
+ "internalType": "address",
14
+ "name": "newOwner",
15
+ "type": "address"
16
+ }
17
+ ],
18
+ "name": "OwnershipTransferred",
19
+ "type": "event"
20
+ },
21
+ {
22
+ "anonymous": false,
23
+ "inputs": [
24
+ {
25
+ "indexed": false,
26
+ "internalType": "uint256",
27
+ "name": "reward",
28
+ "type": "uint256"
29
+ }
30
+ ],
31
+ "name": "RewardAdded",
32
+ "type": "event"
33
+ },
34
+ {
35
+ "anonymous": false,
36
+ "inputs": [
37
+ {
38
+ "indexed": true,
39
+ "internalType": "address",
40
+ "name": "user",
41
+ "type": "address"
42
+ },
43
+ {
44
+ "indexed": false,
45
+ "internalType": "uint256",
46
+ "name": "reward",
47
+ "type": "uint256"
48
+ }
49
+ ],
50
+ "name": "RewardPaid",
51
+ "type": "event"
52
+ },
53
+ {
54
+ "anonymous": false,
55
+ "inputs": [
56
+ {
57
+ "indexed": true,
58
+ "internalType": "address",
59
+ "name": "user",
60
+ "type": "address"
61
+ },
62
+ {
63
+ "indexed": false,
64
+ "internalType": "uint256",
65
+ "name": "amount",
66
+ "type": "uint256"
67
+ }
68
+ ],
69
+ "name": "Staked",
70
+ "type": "event"
71
+ },
72
+ {
73
+ "anonymous": false,
74
+ "inputs": [
75
+ {
76
+ "indexed": true,
77
+ "internalType": "address",
78
+ "name": "user",
79
+ "type": "address"
80
+ },
81
+ {
82
+ "indexed": false,
83
+ "internalType": "uint256",
84
+ "name": "amount",
85
+ "type": "uint256"
86
+ }
87
+ ],
88
+ "name": "Withdrawn",
89
+ "type": "event"
90
+ },
91
+ {
92
+ "constant": true,
93
+ "inputs": [],
94
+ "name": "DURATION",
95
+ "outputs": [
96
+ {
97
+ "internalType": "uint256",
98
+ "name": "",
99
+ "type": "uint256"
100
+ }
101
+ ],
102
+ "payable": false,
103
+ "stateMutability": "view",
104
+ "type": "function"
105
+ },
106
+ {
107
+ "constant": true,
108
+ "inputs": [
109
+ {
110
+ "internalType": "address",
111
+ "name": "account",
112
+ "type": "address"
113
+ }
114
+ ],
115
+ "name": "balanceOf",
116
+ "outputs": [
117
+ {
118
+ "internalType": "uint256",
119
+ "name": "",
120
+ "type": "uint256"
121
+ }
122
+ ],
123
+ "payable": false,
124
+ "stateMutability": "view",
125
+ "type": "function"
126
+ },
127
+ {
128
+ "constant": true,
129
+ "inputs": [
130
+ {
131
+ "internalType": "address",
132
+ "name": "account",
133
+ "type": "address"
134
+ }
135
+ ],
136
+ "name": "earned",
137
+ "outputs": [
138
+ {
139
+ "internalType": "uint256",
140
+ "name": "",
141
+ "type": "uint256"
142
+ }
143
+ ],
144
+ "payable": false,
145
+ "stateMutability": "view",
146
+ "type": "function"
147
+ },
148
+ {
149
+ "constant": false,
150
+ "inputs": [],
151
+ "name": "exit",
152
+ "outputs": [],
153
+ "payable": false,
154
+ "stateMutability": "nonpayable",
155
+ "type": "function"
156
+ },
157
+ {
158
+ "constant": false,
159
+ "inputs": [],
160
+ "name": "getReward",
161
+ "outputs": [],
162
+ "payable": false,
163
+ "stateMutability": "nonpayable",
164
+ "type": "function"
165
+ },
166
+ {
167
+ "constant": true,
168
+ "inputs": [],
169
+ "name": "isOwner",
170
+ "outputs": [
171
+ {
172
+ "internalType": "bool",
173
+ "name": "",
174
+ "type": "bool"
175
+ }
176
+ ],
177
+ "payable": false,
178
+ "stateMutability": "view",
179
+ "type": "function"
180
+ },
181
+ {
182
+ "constant": true,
183
+ "inputs": [],
184
+ "name": "lastTimeRewardApplicable",
185
+ "outputs": [
186
+ {
187
+ "internalType": "uint256",
188
+ "name": "",
189
+ "type": "uint256"
190
+ }
191
+ ],
192
+ "payable": false,
193
+ "stateMutability": "view",
194
+ "type": "function"
195
+ },
196
+ {
197
+ "constant": true,
198
+ "inputs": [],
199
+ "name": "lastUpdateTime",
200
+ "outputs": [
201
+ {
202
+ "internalType": "uint256",
203
+ "name": "",
204
+ "type": "uint256"
205
+ }
206
+ ],
207
+ "payable": false,
208
+ "stateMutability": "view",
209
+ "type": "function"
210
+ },
211
+ {
212
+ "constant": false,
213
+ "inputs": [
214
+ {
215
+ "internalType": "uint256",
216
+ "name": "reward",
217
+ "type": "uint256"
218
+ }
219
+ ],
220
+ "name": "notifyRewardAmount",
221
+ "outputs": [],
222
+ "payable": false,
223
+ "stateMutability": "nonpayable",
224
+ "type": "function"
225
+ },
226
+ {
227
+ "constant": true,
228
+ "inputs": [],
229
+ "name": "owner",
230
+ "outputs": [
231
+ {
232
+ "internalType": "address",
233
+ "name": "",
234
+ "type": "address"
235
+ }
236
+ ],
237
+ "payable": false,
238
+ "stateMutability": "view",
239
+ "type": "function"
240
+ },
241
+ {
242
+ "constant": true,
243
+ "inputs": [],
244
+ "name": "periodFinish",
245
+ "outputs": [
246
+ {
247
+ "internalType": "uint256",
248
+ "name": "",
249
+ "type": "uint256"
250
+ }
251
+ ],
252
+ "payable": false,
253
+ "stateMutability": "view",
254
+ "type": "function"
255
+ },
256
+ {
257
+ "constant": false,
258
+ "inputs": [],
259
+ "name": "renounceOwnership",
260
+ "outputs": [],
261
+ "payable": false,
262
+ "stateMutability": "nonpayable",
263
+ "type": "function"
264
+ },
265
+ {
266
+ "constant": true,
267
+ "inputs": [],
268
+ "name": "rewardDistribution",
269
+ "outputs": [
270
+ {
271
+ "internalType": "address",
272
+ "name": "",
273
+ "type": "address"
274
+ }
275
+ ],
276
+ "payable": false,
277
+ "stateMutability": "view",
278
+ "type": "function"
279
+ },
280
+ {
281
+ "constant": true,
282
+ "inputs": [],
283
+ "name": "rewardPerToken",
284
+ "outputs": [
285
+ {
286
+ "internalType": "uint256",
287
+ "name": "",
288
+ "type": "uint256"
289
+ }
290
+ ],
291
+ "payable": false,
292
+ "stateMutability": "view",
293
+ "type": "function"
294
+ },
295
+ {
296
+ "constant": true,
297
+ "inputs": [],
298
+ "name": "rewardPerTokenStored",
299
+ "outputs": [
300
+ {
301
+ "internalType": "uint256",
302
+ "name": "",
303
+ "type": "uint256"
304
+ }
305
+ ],
306
+ "payable": false,
307
+ "stateMutability": "view",
308
+ "type": "function"
309
+ },
310
+ {
311
+ "constant": true,
312
+ "inputs": [],
313
+ "name": "rewardRate",
314
+ "outputs": [
315
+ {
316
+ "internalType": "uint256",
317
+ "name": "",
318
+ "type": "uint256"
319
+ }
320
+ ],
321
+ "payable": false,
322
+ "stateMutability": "view",
323
+ "type": "function"
324
+ },
325
+ {
326
+ "constant": true,
327
+ "inputs": [
328
+ {
329
+ "internalType": "address",
330
+ "name": "",
331
+ "type": "address"
332
+ }
333
+ ],
334
+ "name": "rewards",
335
+ "outputs": [
336
+ {
337
+ "internalType": "uint256",
338
+ "name": "",
339
+ "type": "uint256"
340
+ }
341
+ ],
342
+ "payable": false,
343
+ "stateMutability": "view",
344
+ "type": "function"
345
+ },
346
+ {
347
+ "constant": false,
348
+ "inputs": [
349
+ {
350
+ "internalType": "address",
351
+ "name": "_rewardDistribution",
352
+ "type": "address"
353
+ }
354
+ ],
355
+ "name": "setRewardDistribution",
356
+ "outputs": [],
357
+ "payable": false,
358
+ "stateMutability": "nonpayable",
359
+ "type": "function"
360
+ },
361
+ {
362
+ "constant": true,
363
+ "inputs": [],
364
+ "name": "snx",
365
+ "outputs": [
366
+ {
367
+ "internalType": "contract IERC20",
368
+ "name": "",
369
+ "type": "address"
370
+ }
371
+ ],
372
+ "payable": false,
373
+ "stateMutability": "view",
374
+ "type": "function"
375
+ },
376
+ {
377
+ "constant": false,
378
+ "inputs": [
379
+ {
380
+ "internalType": "uint256",
381
+ "name": "amount",
382
+ "type": "uint256"
383
+ }
384
+ ],
385
+ "name": "stake",
386
+ "outputs": [],
387
+ "payable": false,
388
+ "stateMutability": "nonpayable",
389
+ "type": "function"
390
+ },
391
+ {
392
+ "constant": true,
393
+ "inputs": [],
394
+ "name": "totalSupply",
395
+ "outputs": [
396
+ {
397
+ "internalType": "uint256",
398
+ "name": "",
399
+ "type": "uint256"
400
+ }
401
+ ],
402
+ "payable": false,
403
+ "stateMutability": "view",
404
+ "type": "function"
405
+ },
406
+ {
407
+ "constant": false,
408
+ "inputs": [
409
+ {
410
+ "internalType": "address",
411
+ "name": "newOwner",
412
+ "type": "address"
413
+ }
414
+ ],
415
+ "name": "transferOwnership",
416
+ "outputs": [],
417
+ "payable": false,
418
+ "stateMutability": "nonpayable",
419
+ "type": "function"
420
+ },
421
+ {
422
+ "constant": true,
423
+ "inputs": [],
424
+ "name": "uni",
425
+ "outputs": [
426
+ {
427
+ "internalType": "contract IERC20",
428
+ "name": "",
429
+ "type": "address"
430
+ }
431
+ ],
432
+ "payable": false,
433
+ "stateMutability": "view",
434
+ "type": "function"
435
+ },
436
+ {
437
+ "constant": true,
438
+ "inputs": [
439
+ {
440
+ "internalType": "address",
441
+ "name": "",
442
+ "type": "address"
443
+ }
444
+ ],
445
+ "name": "userRewardPerTokenPaid",
446
+ "outputs": [
447
+ {
448
+ "internalType": "uint256",
449
+ "name": "",
450
+ "type": "uint256"
451
+ }
452
+ ],
453
+ "payable": false,
454
+ "stateMutability": "view",
455
+ "type": "function"
456
+ },
457
+ {
458
+ "constant": false,
459
+ "inputs": [
460
+ {
461
+ "internalType": "uint256",
462
+ "name": "amount",
463
+ "type": "uint256"
464
+ }
465
+ ],
466
+ "name": "withdraw",
467
+ "outputs": [],
468
+ "payable": false,
469
+ "stateMutability": "nonpayable",
470
+ "type": "function"
471
+ }
472
+ ]
@@ -1,2 +1,3 @@
1
1
  export declare const ALIASES_ETHEREUM: import("../interfaces").IDict<string>;
2
2
  export declare const ALIASES_POLYGON: import("../interfaces").IDict<string>;
3
+ export declare const ALIASES_AVALANCHE: import("../interfaces").IDict<string>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ALIASES_POLYGON = exports.ALIASES_ETHEREUM = void 0;
3
+ exports.ALIASES_AVALANCHE = exports.ALIASES_POLYGON = exports.ALIASES_ETHEREUM = void 0;
4
4
  var utils_1 = require("./utils");
5
5
  exports.ALIASES_ETHEREUM = (0, utils_1.lowerCaseValues)({
6
6
  "crv": "0xD533a949740bb3306d119CC777fa900bA034cd52",
@@ -16,7 +16,7 @@ exports.ALIASES_ETHEREUM = (0, utils_1.lowerCaseValues)({
16
16
  });
17
17
  exports.ALIASES_POLYGON = (0, utils_1.lowerCaseValues)({
18
18
  "crv": "0x172370d5cd63279efa6d502dab29171933a610af",
19
- "minter": "0xd061D61a4d941c39E5453435B6345Dc261C2fcE0",
19
+ "minter": "0xabC000d88f23Bb45525E447528DBF656A9D55bf5",
20
20
  "voting_escrow": "0x5f3b5DfEb7B28CDbD7FAba78963EE202a494e2A2",
21
21
  "gauge_controller": "0x2F50D538606Fa9EDD2B11E2446BEb18C9D5846bB",
22
22
  "address_provider": "0x0000000022d53366457f9d5e68ec105046fc4383",
@@ -26,3 +26,15 @@ exports.ALIASES_POLYGON = (0, utils_1.lowerCaseValues)({
26
26
  "crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
27
27
  "registry_exchange": "",
28
28
  });
29
+ exports.ALIASES_AVALANCHE = (0, utils_1.lowerCaseValues)({
30
+ "crv": "0x47536F17F4fF30e64A96a7555826b8f9e66ec468",
31
+ "minter": "0xabC000d88f23Bb45525E447528DBF656A9D55bf5",
32
+ "voting_escrow": "0x5f3b5DfEb7B28CDbD7FAba78963EE202a494e2A2",
33
+ "gauge_controller": "0x2F50D538606Fa9EDD2B11E2446BEb18C9D5846bB",
34
+ "address_provider": "0x0000000022d53366457f9d5e68ec105046fc4383",
35
+ "router": "0xfA9a30350048B2BF66865ee20363067c66f67e58",
36
+ "deposit_and_stake": "0xB7De33440B7171159a9718CBE748086cecDd9685",
37
+ "factory": '0xb17b674D9c5CB2e441F8e196a2f048A81355d031',
38
+ "crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
39
+ "registry_exchange": "",
40
+ });
@@ -0,0 +1,7 @@
1
+ export declare const COINS_AVALANCHE: {
2
+ [index: string]: string;
3
+ };
4
+ export declare const cTokensAvalanche: never[];
5
+ export declare const yTokensAvalanche: never[];
6
+ export declare const ycTokensAvalanche: never[];
7
+ export declare const aTokensAvalanche: string[];
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.aTokensAvalanche = exports.ycTokensAvalanche = exports.yTokensAvalanche = exports.cTokensAvalanche = exports.COINS_AVALANCHE = void 0;
4
+ var utils_1 = require("../utils");
5
+ exports.COINS_AVALANCHE = (0, utils_1.lowerCaseValues)({
6
+ 'crv': '0x47536F17F4fF30e64A96a7555826b8f9e66ec468',
7
+ 'crv.e': '0x249848BeCA43aC405b8102Ec90Dd5F22CA513c06',
8
+ // --- USD ---
9
+ 'dai.e': '0xd586E7F844cEa2F87f50152665BCbc2C279D8d70',
10
+ 'usdc.e': '0xA7D7079b0FEaD91F3e65f86E8915Cb59c1a4C664',
11
+ 'usdt.e': '0xc7198437980c041c805A1EDcbA50c1Ce5db95118',
12
+ 'avdai': '0x47AFa96Cdc9fAb46904A55a6ad4bf6660B53c38a',
13
+ 'avusdc': '0x46A51127C3ce23fb7AB1DE06226147F446e4a857',
14
+ 'avusdt': '0x532E6537FEA298397212F09A61e03311686f548e',
15
+ 'av3crv': '0x1337bedc9d22ecbe766df105c9623922a27963ec',
16
+ // --- BTC ---
17
+ 'wbtc.e': '0x50b7545627a5162F82A992c33b87aDc75187B218',
18
+ 'renbtc': '0xDBf31dF14B66535aF65AaC99C32e9eA844e14501',
19
+ 'avwbtc': '0x686bEF2417b6Dc32C50a3cBfbCC3bb60E1e9a15D',
20
+ // --- ETH ---
21
+ 'weth.e': '0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB',
22
+ 'avweth': '0x53f7c5869a859F0AeC3D334ee8B4Cf01E3492f21',
23
+ });
24
+ exports.cTokensAvalanche = []; //.map((a) => a.toLowerCase());
25
+ exports.yTokensAvalanche = []; //.map((a) => a.toLowerCase());
26
+ exports.ycTokensAvalanche = []; //.map((a) => a.toLowerCase());
27
+ exports.aTokensAvalanche = [
28
+ '0x47AFa96Cdc9fAb46904A55a6ad4bf6660B53c38a',
29
+ '0x46A51127C3ce23fb7AB1DE06226147F446e4a857',
30
+ '0x532E6537FEA298397212F09A61e03311686f548e',
31
+ '0x686bEF2417b6Dc32C50a3cBfbCC3bb60E1e9a15D',
32
+ '0x53f7c5869a859F0AeC3D334ee8B4Cf01E3492f21', // avWETH
33
+ ].map(function (a) { return a.toLowerCase(); });
@@ -0,0 +1,4 @@
1
+ import { IPoolData } from "../../interfaces";
2
+ export declare const POOLS_DATA_AVALANCHE: {
3
+ [index: string]: IPoolData;
4
+ };
@@ -0,0 +1,106 @@
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_AVALANCHE = void 0;
7
+ var utils_1 = require("../utils");
8
+ var swap_json_1 = __importDefault(require("../abis/aave/swap.json"));
9
+ var swap_json_2 = __importDefault(require("../abis/ren-polygon/swap.json"));
10
+ var swap_json_3 = __importDefault(require("../abis/atricrypto3/swap.json"));
11
+ var zap_json_1 = __importDefault(require("../abis/atricrypto3/zap.json"));
12
+ var gauge_child_json_1 = __importDefault(require("../abis/gauge_child.json"));
13
+ exports.POOLS_DATA_AVALANCHE = (0, utils_1.lowerCasePoolDataAddresses)({
14
+ aave: {
15
+ name: "aave",
16
+ full_name: "aave",
17
+ symbol: "aave",
18
+ reference_asset: 'USD',
19
+ swap_address: '0x7f90122BF0700F9E7e1F688fe926940E8839F353',
20
+ token_address: '0x1337BedC9D22ecbe766dF105c9623922A27963EC',
21
+ gauge_address: '0x4620D46b4db7fB04a01A75fFed228Bc027C9A899',
22
+ // gauge_address: '0x5B5CFE992AdAC0C9D48E05854B2d91C73a003858',
23
+ // reward_contract: '0xB504b6EB06760019801a91B451d3f7BD9f027fC9',
24
+ is_lending: true,
25
+ underlying_coins: ['DAI.e', 'USDC.e', 'USDT.e'],
26
+ wrapped_coins: ['avDAI', 'avUSDC', 'avUSDT'],
27
+ underlying_coin_addresses: [
28
+ '0xd586E7F844cEa2F87f50152665BCbc2C279D8d70',
29
+ '0xA7D7079b0FEaD91F3e65f86E8915Cb59c1a4C664',
30
+ '0xc7198437980c041c805A1EDcbA50c1Ce5db95118',
31
+ ],
32
+ wrapped_coin_addresses: [
33
+ '0x47AFa96Cdc9fAb46904A55a6ad4bf6660B53c38a',
34
+ '0x46A51127C3ce23fb7AB1DE06226147F446e4a857',
35
+ '0x532E6537FEA298397212F09A61e03311686f548e',
36
+ ],
37
+ underlying_decimals: [18, 6, 6],
38
+ wrapped_decimals: [18, 6, 6],
39
+ use_lending: [true, true, true],
40
+ swap_abi: swap_json_1.default,
41
+ gauge_abi: gauge_child_json_1.default,
42
+ },
43
+ ren: {
44
+ name: "ren",
45
+ full_name: "ren",
46
+ symbol: "ren",
47
+ reference_asset: 'BTC',
48
+ swap_address: '0x16a7DA911A4DD1d83F3fF066fE28F3C792C50d90',
49
+ token_address: '0xC2b1DF84112619D190193E48148000e3990Bf627',
50
+ gauge_address: '0x00F7d467ef51E44f11f52a0c0Bef2E56C271b264',
51
+ // gauge_address: '0x0f9cb53Ebe405d49A0bbdBD291A65Ff571bC83e1',
52
+ // reward_contract: '0x75D05190f35567e79012c2F0a02330D3Ed8a1F74',
53
+ is_lending: true,
54
+ underlying_coins: ['WBTC.e', 'renBTC'],
55
+ wrapped_coins: ['avWBTC', 'renBTC'],
56
+ underlying_coin_addresses: [
57
+ '0x50b7545627a5162F82A992c33b87aDc75187B218',
58
+ '0xDBf31dF14B66535aF65AaC99C32e9eA844e14501',
59
+ ],
60
+ wrapped_coin_addresses: [
61
+ '0x686bEF2417b6Dc32C50a3cBfbCC3bb60E1e9a15D',
62
+ '0xDBf31dF14B66535aF65AaC99C32e9eA844e14501',
63
+ ],
64
+ underlying_decimals: [8, 8],
65
+ wrapped_decimals: [8, 8],
66
+ use_lending: [true, false],
67
+ swap_abi: swap_json_2.default,
68
+ gauge_abi: gauge_child_json_1.default,
69
+ },
70
+ atricrypto: {
71
+ name: "atricrypto",
72
+ full_name: "atricrypto",
73
+ symbol: "atricrypto",
74
+ reference_asset: 'CRYPTO',
75
+ swap_address: '0xB755B949C126C04e0348DD881a5cF55d424742B2',
76
+ token_address: '0x1daB6560494B04473A0BE3E7D83CF3Fdf3a51828',
77
+ gauge_address: '0x1879075f1c055564CB968905aC404A5A01a1699A',
78
+ deposit_address: '0x58e57cA18B7A47112b877E31929798Cd3D703b0f',
79
+ // gauge_address: '0x445FE580eF8d70FF569aB36e80c647af338db351',
80
+ // reward_contract: '0xa05E565cA0a103FcD999c7A7b8de7Bd15D5f6505',
81
+ is_meta: true,
82
+ is_crypto: true,
83
+ is_fake: true,
84
+ base_pool: 'aave',
85
+ underlying_coins: ['DAI.e', 'USDC.e', 'USDT.e', 'WBTC.e', 'WETH.e'],
86
+ wrapped_coins: ['av3CRV', 'avWBTC', 'avWETH'],
87
+ underlying_coin_addresses: [
88
+ '0xd586E7F844cEa2F87f50152665BCbc2C279D8d70',
89
+ '0xA7D7079b0FEaD91F3e65f86E8915Cb59c1a4C664',
90
+ '0xc7198437980c041c805A1EDcbA50c1Ce5db95118',
91
+ '0x50b7545627a5162F82A992c33b87aDc75187B218',
92
+ '0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB', // WETH.e
93
+ ],
94
+ wrapped_coin_addresses: [
95
+ '0x1337BedC9D22ecbe766dF105c9623922A27963EC',
96
+ '0x686bEF2417b6Dc32C50a3cBfbCC3bb60E1e9a15D',
97
+ '0x53f7c5869a859F0AeC3D334ee8B4Cf01E3492f21', // avWETH
98
+ ],
99
+ underlying_decimals: [18, 6, 6, 8, 18],
100
+ wrapped_decimals: [18, 8, 18],
101
+ use_lending: [false, false, false, false, false],
102
+ swap_abi: swap_json_3.default,
103
+ gauge_abi: gauge_child_json_1.default,
104
+ deposit_abi: zap_json_1.default,
105
+ },
106
+ });