@curvefi/api 1.14.0 → 1.16.1
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.
- package/README.md +77 -18
- package/lib/constants/abis/abis-ethereum.js +173 -16
- package/lib/constants/abis/abis-polygon.js +13 -5
- package/lib/constants/abis/json/aave/rewards.json +107 -0
- package/lib/constants/abis/json/atricrypto3/swap.json +63 -63
- package/lib/constants/abis/json/atricrypto3/zap.json +8 -8
- package/lib/constants/abis/json/crveth/swap.json +61 -61
- package/lib/constants/abis/json/eurt/swap.json +29 -29
- package/lib/constants/abis/json/eurtusd/deposit.json +13 -13
- package/lib/constants/abis/json/eurtusd/swap.json +59 -59
- package/lib/constants/abis/json/gauge.json +1 -1
- package/lib/constants/abis/json/gauge_factory.json +879 -0
- package/lib/constants/abis/json/gauge_rewards_only.json +649 -0
- package/lib/constants/abis/json/gauge_synthetix.json +590 -0
- package/lib/constants/abis/json/gauge_v2.json +942 -0
- package/lib/constants/abis/json/gauge_v3.json +954 -0
- package/lib/constants/abis/json/gauge_v4.json +913 -0
- package/lib/constants/abis/json/minter.json +165 -0
- package/lib/constants/abis/json/ren-polygon/swap.json +46 -46
- package/lib/constants/abis/json/reth/swap.json +38 -38
- package/lib/constants/abis/json/tricrypto2/deposit.json +3 -3
- package/lib/constants/abis/json/tricrypto2/swap.json +60 -60
- package/lib/constants/aliases.d.ts +2 -0
- package/lib/constants/aliases.js +2 -0
- package/lib/constants/coins-ethereum.js +7 -3
- package/lib/constants/coins-polygon.js +3 -2
- package/lib/curve.d.ts +1 -0
- package/lib/curve.js +43 -23
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/interfaces.d.ts +7 -1
- package/lib/pools.d.ts +23 -3
- package/lib/pools.js +458 -97
- package/lib/utils.d.ts +1 -0
- package/lib/utils.js +5 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -122,12 +122,36 @@ const WalletProvider: FunctionComponent = ({ children }) => {
|
|
|
122
122
|
...
|
|
123
123
|
```
|
|
124
124
|
|
|
125
|
+
## Available pools
|
|
126
|
+
```ts
|
|
127
|
+
import curve from "@curvefi/api";
|
|
128
|
+
|
|
129
|
+
(async () => {
|
|
130
|
+
await curve.init('JsonRpc', {}, {gasPrice: 0, maxFeePerGas: 0, maxPriorityFeePerGas: 0});
|
|
131
|
+
|
|
132
|
+
console.log(curve.getPoolList());
|
|
133
|
+
// [
|
|
134
|
+
// 'compound', 'usdt', 'y', 'busd',
|
|
135
|
+
// 'susd', 'pax', 'ren', 'sbtc',
|
|
136
|
+
// 'hbtc', '3pool', 'gusd', 'husd',
|
|
137
|
+
// 'usdk', 'usdn', 'musd', 'rsv',
|
|
138
|
+
// 'tbtc', 'dusd', 'pbtc', 'bbtc',
|
|
139
|
+
// 'obtc', 'seth', 'eurs', 'ust',
|
|
140
|
+
// 'aave', 'steth', 'saave', 'ankreth',
|
|
141
|
+
// 'usdp', 'ib', 'link', 'tusd',
|
|
142
|
+
// 'frax', 'lusd', 'busdv2', 'reth',
|
|
143
|
+
// 'alusd', 'mim', 'tricrypto2', 'eurt',
|
|
144
|
+
// 'eurtusd', 'crveth', 'cvxeth'
|
|
145
|
+
// ]
|
|
146
|
+
})()
|
|
147
|
+
````
|
|
148
|
+
|
|
125
149
|
## Balances
|
|
126
150
|
```ts
|
|
127
151
|
import curve from "@curvefi/api";
|
|
128
152
|
|
|
129
153
|
(async () => {
|
|
130
|
-
await curve.init('JsonRpc', {}, { gasPrice: 0, maxFeePerGas: 0, maxPriorityFeePerGas: 0
|
|
154
|
+
await curve.init('JsonRpc', {}, { gasPrice: 0, maxFeePerGas: 0, maxPriorityFeePerGas: 0 });
|
|
131
155
|
|
|
132
156
|
console.log(await curve.getBalances(['DAI', 'sUSD']));
|
|
133
157
|
// OR console.log(await curve.getBalances(['0x6B175474E89094C44Da98b954EedeAC495271d0F', '0x57Ab1ec28D129707052df4dF418D58a2D46d5f51']));
|
|
@@ -218,34 +242,48 @@ import curve from "@curvefi/api";
|
|
|
218
242
|
(async () => {
|
|
219
243
|
await curve.init('JsonRpc', {}, {gasPrice: 0, maxFeePerGas: 0, maxPriorityFeePerGas: 0});
|
|
220
244
|
|
|
221
|
-
const
|
|
245
|
+
const aave = new curve.Pool('aave');
|
|
222
246
|
|
|
223
|
-
console.log(await
|
|
247
|
+
console.log(await aave.stats.getParameters());
|
|
224
248
|
// {
|
|
225
|
-
// virtualPrice: '1.
|
|
249
|
+
// virtualPrice: '1.082056814810440924',
|
|
226
250
|
// fee: '0.04',
|
|
227
251
|
// adminFee: '0.02',
|
|
228
|
-
// A: '
|
|
252
|
+
// A: '2000',
|
|
253
|
+
// future_A: '2000',
|
|
254
|
+
// initial_A: '200',
|
|
255
|
+
// future_A_time: 1628525830000,
|
|
256
|
+
// initial_A_time: 1627923611000,
|
|
229
257
|
// gamma: undefined
|
|
230
258
|
// }
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
console.log(await aave.stats.getPoolBalances());
|
|
262
|
+
// [ '19619514.600802512613372364', '18740372.790339', '16065974.167437' ]
|
|
231
263
|
|
|
232
|
-
console.log(await
|
|
233
|
-
// [ '
|
|
234
|
-
|
|
235
|
-
console.log(await saave.stats.getPoolWrappedBalances());
|
|
236
|
-
// [ '56379002.278506498342855456', '40931955.428972956435172989' ]
|
|
264
|
+
console.log(await aave.stats.getPoolWrappedBalances());
|
|
265
|
+
// [ '19619514.600802512613372364', '18740372.790339', '16065974.167437' ]
|
|
237
266
|
|
|
238
|
-
console.log(await
|
|
239
|
-
//
|
|
267
|
+
console.log(await aave.stats.getTotalLiquidity());
|
|
268
|
+
// 54425861.55857851
|
|
240
269
|
|
|
241
|
-
console.log(await
|
|
242
|
-
//
|
|
270
|
+
console.log(await aave.stats.getVolume());
|
|
271
|
+
// 175647.68180084194
|
|
243
272
|
|
|
244
|
-
console.log(await
|
|
245
|
-
//
|
|
273
|
+
console.log(await aave.stats.getBaseApy());
|
|
274
|
+
// { day: '3.2015', week: '3.1185', month: '3.1318', total: '7.7286' }
|
|
246
275
|
|
|
247
|
-
console.log(await
|
|
248
|
-
// [ '0.
|
|
276
|
+
console.log(await aave.stats.getTokenApy());
|
|
277
|
+
// [ '0.4093', '1.0233' ]
|
|
278
|
+
|
|
279
|
+
console.log(await aave.stats.getRewardsApy());
|
|
280
|
+
// [
|
|
281
|
+
// {
|
|
282
|
+
// token: '0x4da27a545c0c5B758a6BA100e3a049001de870f5',
|
|
283
|
+
// symbol: 'stkAAVE',
|
|
284
|
+
// apy: '0.4978306501849664'
|
|
285
|
+
// }
|
|
286
|
+
// ]
|
|
249
287
|
})()
|
|
250
288
|
````
|
|
251
289
|
|
|
@@ -658,3 +696,24 @@ await curve.estimateGas.crossAssetExchange('DAI', "WBTC", "1000", 0.01)
|
|
|
658
696
|
|
|
659
697
|
await curve.boosting.estimateGas.createLock('1000', 365)
|
|
660
698
|
```
|
|
699
|
+
|
|
700
|
+
## Rewards
|
|
701
|
+
```ts
|
|
702
|
+
const pool = new curve.Pool('susd');
|
|
703
|
+
|
|
704
|
+
// CRV
|
|
705
|
+
console.log(await pool.gaugeClaimableTokens());
|
|
706
|
+
// 0.006296257916265276
|
|
707
|
+
await pool.gaugeClaimTokens();
|
|
708
|
+
|
|
709
|
+
// Additional rewards
|
|
710
|
+
console.log(await pool.gaugeClaimableRewards());
|
|
711
|
+
// [
|
|
712
|
+
// {
|
|
713
|
+
// token: '0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F',
|
|
714
|
+
// symbol: 'SNX',
|
|
715
|
+
// amount: '0.000596325465987726'
|
|
716
|
+
// }
|
|
717
|
+
// ]
|
|
718
|
+
await pool.gaugeClaimRewards();
|
|
719
|
+
```
|
|
@@ -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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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:
|
|
1282
|
+
sCurveRewards_abi: rewards_json_2.default,
|
|
1235
1283
|
sCurveRewards_address: '0xBBbAf1adf4d39B2843928CCa1E65564e5ce99ccC',
|
|
1236
|
-
|
|
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:
|
|
1330
|
+
sCurveRewards_abi: rewards_json_2.default,
|
|
1282
1331
|
sCurveRewards_address: '0xeb31da939878d1d780fdbcc244531c0fb80a2cf3',
|
|
1283
|
-
|
|
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:
|
|
1403
|
+
sCurveRewards_abi: rewards_json_2.default,
|
|
1353
1404
|
sCurveRewards_address: '0x3b7382805A1d887b73e98570796C5cEFeA32A462',
|
|
1354
|
-
|
|
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:
|
|
1451
|
+
sCurveRewards_abi: rewards_json_2.default,
|
|
1400
1452
|
sCurveRewards_address: '0xb76256d1091e93976c61449d6e500d9f46d827d4',
|
|
1401
|
-
|
|
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: '
|
|
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: '
|
|
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,101 @@ exports.POOLS_DATA_ETHEREUM = {
|
|
|
1586
1647
|
'0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
|
|
1587
1648
|
'0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b',
|
|
1588
1649
|
],
|
|
1650
|
+
gauge_abi: gauge_v4_json_1.default,
|
|
1651
|
+
},
|
|
1652
|
+
xautusd: {
|
|
1653
|
+
reference_asset: 'CRYPTO',
|
|
1654
|
+
N_COINS: 2,
|
|
1655
|
+
underlying_decimals: [6, 18],
|
|
1656
|
+
decimals: [6, 18],
|
|
1657
|
+
tethered: [false, false],
|
|
1658
|
+
use_lending: [false, false],
|
|
1659
|
+
is_plain: [true, true],
|
|
1660
|
+
swap_address: '0xAdCFcf9894335dC340f6Cd182aFA45999F45Fc44',
|
|
1661
|
+
token_address: '0x8484673cA7BfF40F82B041916881aeA15ee84834',
|
|
1662
|
+
gauge_address: '0x1B3E14157ED33F60668f2103bCd5Db39a1573E5B',
|
|
1663
|
+
is_crypto: true,
|
|
1664
|
+
base_pool: '3pool',
|
|
1665
|
+
underlying_coins: ['XAUt', 'DAI', 'USDC', 'USDT'],
|
|
1666
|
+
coins: ['XAUt', '3Crv'],
|
|
1667
|
+
underlying_coin_addresses: [
|
|
1668
|
+
'0x68749665ff8d2d112fa859aa293f07a622782f38',
|
|
1669
|
+
'0x6c3F90f043a72FA612cbac8115EE7e52BDe6E490',
|
|
1670
|
+
],
|
|
1671
|
+
coin_addresses: [
|
|
1672
|
+
'0x68749665ff8d2d112fa859aa293f07a622782f38',
|
|
1673
|
+
'0x6c3F90f043a72FA612cbac8115EE7e52BDe6E490',
|
|
1674
|
+
],
|
|
1675
|
+
swap_abi: swap_json_36.default,
|
|
1676
|
+
deposit_abi: deposit_json_22.default,
|
|
1677
|
+
deposit_address: '0xc5FA220347375ac4f91f9E4A4AAb362F22801504',
|
|
1678
|
+
is_meta: true,
|
|
1679
|
+
meta_N: 5,
|
|
1680
|
+
meta_decimals: [6, 18, 18, 6, 6],
|
|
1681
|
+
meta_coin_decimals: [6, 18, 6, 6],
|
|
1682
|
+
meta_wrapped_decimals: [6, 18],
|
|
1683
|
+
meta_coin_addresses: [
|
|
1684
|
+
'0x6B175474E89094C44Da98b954EedeAC495271d0F',
|
|
1685
|
+
'0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
|
|
1686
|
+
'0xdAC17F958D2ee523a2206206994597C13D831ec7',
|
|
1687
|
+
],
|
|
1688
|
+
all_coin_addresses: [
|
|
1689
|
+
'0x68749665ff8d2d112fa859aa293f07a622782f38',
|
|
1690
|
+
'0x6c3F90f043a72FA612cbac8115EE7e52BDe6E490',
|
|
1691
|
+
'0x6B175474E89094C44Da98b954EedeAC495271d0F',
|
|
1692
|
+
'0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
|
|
1693
|
+
'0xdAC17F958D2ee523a2206206994597C13D831ec7',
|
|
1694
|
+
],
|
|
1695
|
+
gauge_abi: gauge_v4_json_1.default,
|
|
1696
|
+
},
|
|
1697
|
+
spelleth: {
|
|
1698
|
+
reference_asset: 'CRYPTO',
|
|
1699
|
+
N_COINS: 2,
|
|
1700
|
+
is_crypto: true,
|
|
1701
|
+
underlying_decimals: [18, 18],
|
|
1702
|
+
decimals: [18, 18],
|
|
1703
|
+
tethered: [false, false],
|
|
1704
|
+
use_lending: [false, false],
|
|
1705
|
+
is_plain: [true, true],
|
|
1706
|
+
swap_address: '0x98638FAcf9a3865cd033F36548713183f6996122',
|
|
1707
|
+
token_address: '0x8282BD15dcA2EA2bDf24163E8f2781B30C43A2ef',
|
|
1708
|
+
gauge_address: '0x08380a4999Be1a958E2abbA07968d703C7A3027C',
|
|
1709
|
+
underlying_coins: ['ETH', 'SPELL'],
|
|
1710
|
+
coins: ['WETH', 'SPELL'],
|
|
1711
|
+
underlying_coin_addresses: [
|
|
1712
|
+
'0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE',
|
|
1713
|
+
'0x090185f2135308bad17527004364ebcc2d37e5f6',
|
|
1714
|
+
],
|
|
1715
|
+
coin_addresses: [
|
|
1716
|
+
'0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
|
|
1717
|
+
'0x090185f2135308bad17527004364ebcc2d37e5f6',
|
|
1718
|
+
],
|
|
1719
|
+
swap_abi: swap_json_37.default,
|
|
1720
|
+
gauge_abi: gauge_v4_json_1.default,
|
|
1721
|
+
},
|
|
1722
|
+
teth: {
|
|
1723
|
+
reference_asset: 'CRYPTO',
|
|
1724
|
+
N_COINS: 2,
|
|
1725
|
+
is_crypto: true,
|
|
1726
|
+
underlying_decimals: [18, 18],
|
|
1727
|
+
decimals: [18, 18],
|
|
1728
|
+
tethered: [false, false],
|
|
1729
|
+
use_lending: [false, false],
|
|
1730
|
+
is_plain: [true, true],
|
|
1731
|
+
swap_address: '0x752eBeb79963cf0732E9c0fec72a49FD1DEfAEAC',
|
|
1732
|
+
token_address: '0xCb08717451aaE9EF950a2524E33B6DCaBA60147B',
|
|
1733
|
+
gauge_address: '0x6070fBD4E608ee5391189E7205d70cc4A274c017',
|
|
1734
|
+
underlying_coins: ['ETH', 'T'],
|
|
1735
|
+
coins: ['WETH', 'T'],
|
|
1736
|
+
underlying_coin_addresses: [
|
|
1737
|
+
'0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE',
|
|
1738
|
+
'0xCdF7028ceAB81fA0C6971208e83fa7872994beE5',
|
|
1739
|
+
],
|
|
1740
|
+
coin_addresses: [
|
|
1741
|
+
'0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
|
|
1742
|
+
'0xCdF7028ceAB81fA0C6971208e83fa7872994beE5',
|
|
1743
|
+
],
|
|
1744
|
+
swap_abi: swap_json_37.default,
|
|
1745
|
+
gauge_abi: gauge_v4_json_1.default,
|
|
1589
1746
|
},
|
|
1590
1747
|
};
|