@curvefi/api 2.2.1 → 2.3.2
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/lib/constants/abis/dusd/sCurveRewards.json +472 -1
- package/lib/constants/abis/factory-v2/MetaFraxUSD.json +1187 -0
- package/lib/constants/abis/factory-v2/MetaFraxUSDBalances.json +1200 -0
- package/lib/constants/abis/fraxusdc/metaZap.json +284 -0
- package/lib/constants/abis/fraxusdc/swap.json +868 -0
- package/lib/constants/abis/gauge_child.json +1039 -0
- package/lib/constants/abis/{gauge_rewards_only.json → minter_child.json} +159 -312
- package/lib/constants/abis/musd/sCurveRewards.json +482 -1
- package/lib/constants/abis/rsv/sCurveRewards.json +472 -1
- package/lib/constants/abis/sbtc/sCurveRewards.json +566 -1
- package/lib/constants/abis/susdv2/sCurveRewards.json +457 -1
- package/lib/constants/abis/tbtc/sCurveRewards.json +472 -1
- package/lib/constants/aliases.js +2 -2
- package/lib/constants/pools/avalanche.js +13 -20
- package/lib/constants/pools/ethereum.js +55 -32
- package/lib/constants/pools/polygon.js +19 -24
- package/lib/constants/utils.js +0 -9
- package/lib/curve.js +22 -20
- package/lib/factory/common.js +6 -0
- package/lib/factory/constants.js +8 -0
- package/lib/factory/factory-api.js +0 -7
- package/lib/interfaces.d.ts +0 -2
- package/lib/pools/PoolTemplate.d.ts +10 -1
- package/lib/pools/PoolTemplate.js +166 -98
- package/lib/utils.d.ts +1 -0
- package/lib/utils.js +9 -1
- package/package.json +1 -1
|
@@ -89,6 +89,7 @@ var swap_json_39 = __importDefault(require("../abis/rai/swap.json"));
|
|
|
89
89
|
var deposit_json_23 = __importDefault(require("../abis/rai/deposit.json"));
|
|
90
90
|
var swap_json_40 = __importDefault(require("../abis/2pool/swap.json"));
|
|
91
91
|
var swap_json_41 = __importDefault(require("../abis/4pool/swap.json"));
|
|
92
|
+
var swap_json_42 = __importDefault(require("../abis/fraxusdc/swap.json"));
|
|
92
93
|
var utils_1 = require("../utils");
|
|
93
94
|
exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
|
|
94
95
|
compound: {
|
|
@@ -238,8 +239,6 @@ exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
|
|
|
238
239
|
],
|
|
239
240
|
underlying_decimals: [18, 6, 6, 18],
|
|
240
241
|
wrapped_decimals: [18, 6, 6, 18],
|
|
241
|
-
reward_tokens: ["0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F"],
|
|
242
|
-
reward_decimals: [18],
|
|
243
242
|
swap_abi: swap_json_5.default,
|
|
244
243
|
gauge_abi: gauge_synthetix_json_1.default,
|
|
245
244
|
deposit_abi: deposit_json_5.default,
|
|
@@ -520,8 +519,6 @@ exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
|
|
|
520
519
|
],
|
|
521
520
|
underlying_decimals: [18, 18, 6, 6],
|
|
522
521
|
wrapped_decimals: [18, 18],
|
|
523
|
-
reward_tokens: ["0xa3BeD4E1c75D00fa6f4E5E6922DB7261B5E9AcD2"],
|
|
524
|
-
reward_decimals: [18],
|
|
525
522
|
swap_abi: swap_json_15.default,
|
|
526
523
|
gauge_abi: gauge_synthetix_json_1.default,
|
|
527
524
|
deposit_abi: deposit_json_11.default,
|
|
@@ -553,8 +550,6 @@ exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
|
|
|
553
550
|
],
|
|
554
551
|
underlying_decimals: [18, 18, 6, 6],
|
|
555
552
|
wrapped_decimals: [18, 18],
|
|
556
|
-
reward_tokens: ["0x8762db106B2c2A0bccB3A80d1Ed41273552616E8"],
|
|
557
|
-
reward_decimals: [18],
|
|
558
553
|
swap_abi: swap_json_16.default,
|
|
559
554
|
gauge_abi: gauge_synthetix_json_1.default,
|
|
560
555
|
deposit_abi: deposit_json_12.default,
|
|
@@ -617,8 +612,6 @@ exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
|
|
|
617
612
|
],
|
|
618
613
|
underlying_decimals: [18, 18, 6, 6],
|
|
619
614
|
wrapped_decimals: [18, 18],
|
|
620
|
-
reward_tokens: ["0x20c36f062a31865bED8a5B1e512D9a1A20AA333A"],
|
|
621
|
-
reward_decimals: [18],
|
|
622
615
|
swap_abi: swap_json_18.default,
|
|
623
616
|
gauge_abi: gauge_synthetix_json_1.default,
|
|
624
617
|
deposit_abi: deposit_json_14.default,
|
|
@@ -650,8 +643,6 @@ exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
|
|
|
650
643
|
],
|
|
651
644
|
underlying_decimals: [18, 8, 8, 18],
|
|
652
645
|
wrapped_decimals: [18, 18],
|
|
653
|
-
reward_tokens: ["0x89Ab32156e46F46D02ade3FEcbe5Fc4243B9AAeD"],
|
|
654
|
-
reward_decimals: [18],
|
|
655
646
|
swap_abi: swap_json_19.default,
|
|
656
647
|
gauge_abi: gauge_v2_json_1.default,
|
|
657
648
|
deposit_abi: deposit_json_15.default,
|
|
@@ -712,8 +703,6 @@ exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
|
|
|
712
703
|
],
|
|
713
704
|
underlying_decimals: [18, 8, 8, 18],
|
|
714
705
|
wrapped_decimals: [18, 18],
|
|
715
|
-
reward_tokens: ["0x3c9d6c1C73b31c837832c72E04D3152f051fc1A9"],
|
|
716
|
-
reward_decimals: [18],
|
|
717
706
|
swap_abi: swap_json_21.default,
|
|
718
707
|
gauge_abi: gauge_v2_json_1.default,
|
|
719
708
|
deposit_abi: deposit_json_17.default,
|
|
@@ -765,8 +754,6 @@ exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
|
|
|
765
754
|
],
|
|
766
755
|
underlying_decimals: [2, 18],
|
|
767
756
|
wrapped_decimals: [2, 18],
|
|
768
|
-
reward_tokens: ["0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f"],
|
|
769
|
-
reward_decimals: [18],
|
|
770
757
|
swap_abi: swap_json_23.default,
|
|
771
758
|
gauge_abi: gauge_v2_json_1.default,
|
|
772
759
|
sCurveRewards_abi: sCurveRewards_json_10.default,
|
|
@@ -825,8 +812,6 @@ exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
|
|
|
825
812
|
underlying_decimals: [18, 6, 6],
|
|
826
813
|
wrapped_decimals: [18, 6, 6],
|
|
827
814
|
use_lending: [true, true, true],
|
|
828
|
-
reward_tokens: ["0x4da27a545c0c5b758a6ba100e3a049001de870f5"],
|
|
829
|
-
reward_decimals: [18],
|
|
830
815
|
swap_abi: swap_json_25.default,
|
|
831
816
|
gauge_abi: gauge_v2_json_1.default,
|
|
832
817
|
sCurveRewards_abi: rewards_json_1.default,
|
|
@@ -853,8 +838,6 @@ exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
|
|
|
853
838
|
],
|
|
854
839
|
underlying_decimals: [18, 18],
|
|
855
840
|
wrapped_decimals: [18, 18],
|
|
856
|
-
reward_tokens: ["0x5a98fcbea516cf06857215779fd812ca3bef1b32"],
|
|
857
|
-
reward_decimals: [18],
|
|
858
841
|
swap_abi: swap_json_26.default,
|
|
859
842
|
gauge_abi: gauge_v2_json_1.default,
|
|
860
843
|
sCurveRewards_abi: sCurveRewards_json_11.default,
|
|
@@ -882,8 +865,6 @@ exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
|
|
|
882
865
|
underlying_decimals: [18, 18],
|
|
883
866
|
wrapped_decimals: [18, 18],
|
|
884
867
|
use_lending: [true, true],
|
|
885
|
-
reward_tokens: ["0x4da27a545c0c5b758a6ba100e3a049001de870f5"],
|
|
886
|
-
reward_decimals: [18],
|
|
887
868
|
swap_abi: swap_json_27.default,
|
|
888
869
|
gauge_abi: gauge_v2_json_1.default,
|
|
889
870
|
sCurveRewards_abi: rewards_json_1.default,
|
|
@@ -910,8 +891,6 @@ exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
|
|
|
910
891
|
],
|
|
911
892
|
underlying_decimals: [18, 18],
|
|
912
893
|
wrapped_decimals: [18, 18],
|
|
913
|
-
reward_tokens: ["0xe0ad1806fd3e7edf6ff52fdb822432e847411033", "0x8290333cef9e6d528dd5618fb97a76f268f3edd4"],
|
|
914
|
-
reward_decimals: [18, 18],
|
|
915
894
|
swap_abi: swap_json_28.default,
|
|
916
895
|
gauge_abi: gauge_v2_json_1.default,
|
|
917
896
|
sCurveRewards_abi: sCurveRewards_json_12.default,
|
|
@@ -1051,8 +1030,6 @@ exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
|
|
|
1051
1030
|
],
|
|
1052
1031
|
underlying_decimals: [18, 18, 6, 6],
|
|
1053
1032
|
wrapped_decimals: [18, 18],
|
|
1054
|
-
reward_tokens: ['0x3432b6a60d23ca0dfca7761b7ab56459d9c964d0'],
|
|
1055
|
-
reward_decimals: [18],
|
|
1056
1033
|
swap_abi: swap_json_33.default,
|
|
1057
1034
|
deposit_abi: deposit_json_20.default,
|
|
1058
1035
|
gauge_abi: gauge_v2_json_1.default,
|
|
@@ -1084,8 +1061,6 @@ exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
|
|
|
1084
1061
|
],
|
|
1085
1062
|
underlying_decimals: [18, 18, 6, 6],
|
|
1086
1063
|
wrapped_decimals: [18, 18],
|
|
1087
|
-
reward_tokens: ['0x6dea81c8171d0ba574754ef6f8b412f2ed88c54d'],
|
|
1088
|
-
reward_decimals: [18],
|
|
1089
1064
|
swap_abi: swap_json_33.default,
|
|
1090
1065
|
gauge_abi: gauge_v2_json_1.default,
|
|
1091
1066
|
deposit_abi: deposit_json_20.default,
|
|
@@ -1142,8 +1117,6 @@ exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
|
|
|
1142
1117
|
],
|
|
1143
1118
|
underlying_decimals: [18, 18],
|
|
1144
1119
|
wrapped_decimals: [18, 18],
|
|
1145
|
-
reward_tokens: ['0xef3a930e1ffffacd2fc13434ac81bd278b0ecc8d'],
|
|
1146
|
-
reward_decimals: [18],
|
|
1147
1120
|
swap_abi: swap_json_32.default,
|
|
1148
1121
|
gauge_abi: gauge_v3_json_1.default,
|
|
1149
1122
|
sCurveRewards_abi: rewards_json_2.default,
|
|
@@ -1174,8 +1147,6 @@ exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
|
|
|
1174
1147
|
],
|
|
1175
1148
|
underlying_decimals: [18, 18, 6, 6],
|
|
1176
1149
|
wrapped_decimals: [18, 18],
|
|
1177
|
-
reward_tokens: ['0xdbdb4d16eda451d0503b854cf79d55697f90c8df'],
|
|
1178
|
-
reward_decimals: [18],
|
|
1179
1150
|
swap_abi: swap_json_33.default,
|
|
1180
1151
|
gauge_abi: gauge_v3_json_1.default,
|
|
1181
1152
|
deposit_abi: deposit_json_20.default,
|
|
@@ -1206,8 +1177,6 @@ exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
|
|
|
1206
1177
|
],
|
|
1207
1178
|
underlying_decimals: [18, 18, 6, 6],
|
|
1208
1179
|
wrapped_decimals: [18, 18],
|
|
1209
|
-
reward_tokens: ['0x090185f2135308BaD17527004364eBcC2D37e5F6'],
|
|
1210
|
-
reward_decimals: [18],
|
|
1211
1180
|
swap_abi: swap_json_33.default,
|
|
1212
1181
|
gauge_abi: gauge_factory_json_1.default,
|
|
1213
1182
|
deposit_abi: deposit_json_20.default,
|
|
@@ -1526,4 +1495,58 @@ exports.POOLS_DATA_ETHEREUM = (0, utils_1.lowerCasePoolDataAddresses)({
|
|
|
1526
1495
|
swap_abi: swap_json_41.default,
|
|
1527
1496
|
gauge_abi: gauge_v5_json_1.default,
|
|
1528
1497
|
},
|
|
1498
|
+
fraxusdc: {
|
|
1499
|
+
name: "fraxusdc",
|
|
1500
|
+
full_name: "fraxusdc",
|
|
1501
|
+
symbol: "fraxusdc",
|
|
1502
|
+
reference_asset: 'USD',
|
|
1503
|
+
swap_address: '0xDcEF968d416a41Cdac0ED8702fAC8128A64241A2',
|
|
1504
|
+
token_address: '0x3175Df0976dFA876431C2E9eE6Bc45b65d3473CC',
|
|
1505
|
+
gauge_address: '0xCFc25170633581Bf896CB6CDeE170e3E3Aa59503',
|
|
1506
|
+
is_plain: true,
|
|
1507
|
+
underlying_coins: ['FRAX', 'USDC'],
|
|
1508
|
+
wrapped_coins: ['FRAX', 'USDC'],
|
|
1509
|
+
underlying_coin_addresses: [
|
|
1510
|
+
'0x853d955aCEf822Db058eb8505911ED77F175b99e',
|
|
1511
|
+
'0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
|
|
1512
|
+
],
|
|
1513
|
+
wrapped_coin_addresses: [
|
|
1514
|
+
'0x853d955aCEf822Db058eb8505911ED77F175b99e',
|
|
1515
|
+
'0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
|
|
1516
|
+
],
|
|
1517
|
+
underlying_decimals: [18, 6],
|
|
1518
|
+
wrapped_decimals: [18, 6],
|
|
1519
|
+
swap_abi: swap_json_42.default,
|
|
1520
|
+
gauge_abi: gauge_v5_json_1.default,
|
|
1521
|
+
},
|
|
1522
|
+
euroc: {
|
|
1523
|
+
name: "euroc",
|
|
1524
|
+
full_name: "euroc",
|
|
1525
|
+
symbol: "euroc",
|
|
1526
|
+
reference_asset: 'CRYPTO',
|
|
1527
|
+
swap_address: '0xE84f5b1582BA325fDf9cE6B0c1F087ccfC924e54',
|
|
1528
|
+
token_address: '0x70fc957eb90E37Af82ACDbd12675699797745F68',
|
|
1529
|
+
gauge_address: '0x4329c8F09725c0e3b6884C1daB1771bcE17934F9',
|
|
1530
|
+
deposit_address: '0xd446A98F88E1d053d1F64986E3Ed083bb1Ab7E5A',
|
|
1531
|
+
is_meta: true,
|
|
1532
|
+
is_crypto: true,
|
|
1533
|
+
base_pool: '3pool',
|
|
1534
|
+
underlying_coins: ['EUROC', 'DAI', 'USDC', 'USDT'],
|
|
1535
|
+
wrapped_coins: ['EUROC', '3Crv'],
|
|
1536
|
+
underlying_coin_addresses: [
|
|
1537
|
+
'0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c',
|
|
1538
|
+
'0x6B175474E89094C44Da98b954EedeAC495271d0F',
|
|
1539
|
+
'0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
|
|
1540
|
+
'0xdAC17F958D2ee523a2206206994597C13D831ec7',
|
|
1541
|
+
],
|
|
1542
|
+
wrapped_coin_addresses: [
|
|
1543
|
+
'0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c',
|
|
1544
|
+
'0x6c3F90f043a72FA612cbac8115EE7e52BDe6E490',
|
|
1545
|
+
],
|
|
1546
|
+
underlying_decimals: [6, 18, 6, 6],
|
|
1547
|
+
wrapped_decimals: [6, 18],
|
|
1548
|
+
swap_abi: swap_json_36.default,
|
|
1549
|
+
gauge_abi: gauge_v5_json_1.default,
|
|
1550
|
+
deposit_abi: deposit_json_22.default,
|
|
1551
|
+
},
|
|
1529
1552
|
});
|
|
@@ -5,13 +5,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.POOLS_DATA_POLYGON = void 0;
|
|
7
7
|
var swap_json_1 = __importDefault(require("../abis/aave/swap.json"));
|
|
8
|
-
var rewards_json_1 = __importDefault(require("../abis/paave/rewards.json"));
|
|
9
8
|
var swap_json_2 = __importDefault(require("../abis/ren-polygon/swap.json"));
|
|
10
9
|
var swap_json_3 = __importDefault(require("../abis/atricrypto3/swap.json"));
|
|
11
10
|
var zap_json_1 = __importDefault(require("../abis/atricrypto3/zap.json"));
|
|
12
11
|
var swap_json_4 = __importDefault(require("../abis/eurtusd/swap.json"));
|
|
13
12
|
var deposit_json_1 = __importDefault(require("../abis/eurtusd/deposit.json"));
|
|
14
|
-
var
|
|
13
|
+
var gauge_child_json_1 = __importDefault(require("../abis/gauge_child.json"));
|
|
15
14
|
var utils_1 = require("../utils");
|
|
16
15
|
exports.POOLS_DATA_POLYGON = (0, utils_1.lowerCasePoolDataAddresses)({
|
|
17
16
|
aave: {
|
|
@@ -21,9 +20,10 @@ exports.POOLS_DATA_POLYGON = (0, utils_1.lowerCasePoolDataAddresses)({
|
|
|
21
20
|
reference_asset: 'USD',
|
|
22
21
|
swap_address: '0x445FE580eF8d70FF569aB36e80c647af338db351',
|
|
23
22
|
token_address: '0xE7a24EF0C5e95Ffb0f6684b813A78F2a3AD7D171',
|
|
24
|
-
gauge_address: '
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
gauge_address: '0x20759F567BB3EcDB55c817c9a1d13076aB215EdC',
|
|
24
|
+
// gauge_address: '0x19793B454D3AfC7b454F206Ffe95aDE26cA6912c',
|
|
25
|
+
// sCurveRewards_address: '0xBdFF0C27dd073C119ebcb1299a68A6A92aE607F0',
|
|
26
|
+
// reward_contract: "0xC48f4653dd6a9509De44c92beb0604BEA3AEe714",
|
|
27
27
|
is_lending: true,
|
|
28
28
|
underlying_coins: ['DAI', 'USDC', 'USDT'],
|
|
29
29
|
wrapped_coins: ['amDAI', 'amUSDC', 'amUSDT'],
|
|
@@ -40,11 +40,9 @@ exports.POOLS_DATA_POLYGON = (0, utils_1.lowerCasePoolDataAddresses)({
|
|
|
40
40
|
underlying_decimals: [18, 6, 6],
|
|
41
41
|
wrapped_decimals: [18, 6, 6],
|
|
42
42
|
use_lending: [true, true, true],
|
|
43
|
-
reward_tokens: ["0x172370d5cd63279efa6d502dab29171933a610af"],
|
|
44
|
-
reward_decimals: [18],
|
|
45
43
|
swap_abi: swap_json_1.default,
|
|
46
|
-
gauge_abi:
|
|
47
|
-
sCurveRewards_abi:
|
|
44
|
+
gauge_abi: gauge_child_json_1.default,
|
|
45
|
+
// sCurveRewards_abi: paaveRewardsabi,
|
|
48
46
|
},
|
|
49
47
|
ren: {
|
|
50
48
|
name: "ren",
|
|
@@ -53,8 +51,9 @@ exports.POOLS_DATA_POLYGON = (0, utils_1.lowerCasePoolDataAddresses)({
|
|
|
53
51
|
reference_asset: 'BTC',
|
|
54
52
|
swap_address: '0xC2d95EEF97Ec6C17551d45e77B590dc1F9117C67',
|
|
55
53
|
token_address: '0xf8a57c1d3b9629b77b6726a042ca48990A84Fb49',
|
|
56
|
-
gauge_address: '
|
|
57
|
-
|
|
54
|
+
gauge_address: '0x8D9649e50A0d1da8E939f800fB926cdE8f18B47D',
|
|
55
|
+
// gauge_address: '0xffbACcE0CC7C19d46132f1258FC16CF6871D153c',
|
|
56
|
+
// reward_contract: "0x488E6ef919C2bB9de535C634a80afb0114DA8F62",
|
|
58
57
|
is_lending: true,
|
|
59
58
|
underlying_coins: ['WBTC', 'renBTC'],
|
|
60
59
|
wrapped_coins: ['amWBTC', 'renBTC'],
|
|
@@ -69,10 +68,8 @@ exports.POOLS_DATA_POLYGON = (0, utils_1.lowerCasePoolDataAddresses)({
|
|
|
69
68
|
underlying_decimals: [8, 8],
|
|
70
69
|
wrapped_decimals: [8, 8],
|
|
71
70
|
use_lending: [true, false],
|
|
72
|
-
reward_tokens: ["0x172370d5cd63279efa6d502dab29171933a610af"],
|
|
73
|
-
reward_decimals: [18],
|
|
74
71
|
swap_abi: swap_json_2.default,
|
|
75
|
-
gauge_abi:
|
|
72
|
+
gauge_abi: gauge_child_json_1.default,
|
|
76
73
|
},
|
|
77
74
|
atricrypto3: {
|
|
78
75
|
name: "atricrypto3",
|
|
@@ -81,9 +78,10 @@ exports.POOLS_DATA_POLYGON = (0, utils_1.lowerCasePoolDataAddresses)({
|
|
|
81
78
|
reference_asset: 'CRYPTO',
|
|
82
79
|
swap_address: '0x92215849c439E1f8612b6646060B4E3E5ef822cC',
|
|
83
80
|
token_address: '0xdAD97F7713Ae9437fa9249920eC8507e5FbB23d3',
|
|
84
|
-
gauge_address: '
|
|
81
|
+
gauge_address: '0xBb1B19495B8FE7C402427479B9aC14886cbbaaeE',
|
|
85
82
|
deposit_address: '0x1d8b86e3D88cDb2d34688e87E72F388Cb541B7C8',
|
|
86
|
-
|
|
83
|
+
// gauge_address: '0x3B6B158A76fd8ccc297538F454ce7B4787778c7C',
|
|
84
|
+
// reward_contract: "0x060e386eCfBacf42Aa72171Af9EFe17b3993fC4F",
|
|
87
85
|
is_meta: true,
|
|
88
86
|
is_crypto: true,
|
|
89
87
|
is_fake: true,
|
|
@@ -104,10 +102,8 @@ exports.POOLS_DATA_POLYGON = (0, utils_1.lowerCasePoolDataAddresses)({
|
|
|
104
102
|
],
|
|
105
103
|
underlying_decimals: [18, 6, 6, 8, 18],
|
|
106
104
|
wrapped_decimals: [18, 8, 18],
|
|
107
|
-
reward_tokens: ["0x172370d5cd63279efa6d502dab29171933a610af"],
|
|
108
|
-
reward_decimals: [18],
|
|
109
105
|
swap_abi: swap_json_3.default,
|
|
110
|
-
gauge_abi:
|
|
106
|
+
gauge_abi: gauge_child_json_1.default,
|
|
111
107
|
deposit_abi: zap_json_1.default,
|
|
112
108
|
},
|
|
113
109
|
eurtusd: {
|
|
@@ -117,9 +113,10 @@ exports.POOLS_DATA_POLYGON = (0, utils_1.lowerCasePoolDataAddresses)({
|
|
|
117
113
|
reference_asset: 'CRYPTO',
|
|
118
114
|
swap_address: '0xB446BF7b8D6D4276d0c75eC0e3ee8dD7Fe15783A',
|
|
119
115
|
token_address: '0x600743B1d8A96438bD46836fD34977a00293f6Aa',
|
|
120
|
-
gauge_address: '
|
|
116
|
+
gauge_address: '0x8b397084699Cc64E429F610F81Fac13bf061ef55',
|
|
121
117
|
deposit_address: '0x225FB4176f0E20CDb66b4a3DF70CA3063281E855',
|
|
122
|
-
|
|
118
|
+
// gauge_address: '0x40c0e9376468b4f257d15F8c47E5D0C646C28880',
|
|
119
|
+
// reward_contract: "0xAF78381216a8eCC7Ad5957f3cD12a431500E0B0D",
|
|
123
120
|
is_meta: true,
|
|
124
121
|
is_crypto: true,
|
|
125
122
|
base_pool: 'aave',
|
|
@@ -137,10 +134,8 @@ exports.POOLS_DATA_POLYGON = (0, utils_1.lowerCasePoolDataAddresses)({
|
|
|
137
134
|
],
|
|
138
135
|
underlying_decimals: [6, 18, 6, 6],
|
|
139
136
|
wrapped_decimals: [6, 18],
|
|
140
|
-
reward_tokens: ["0x172370d5cd63279efa6d502dab29171933a610af"],
|
|
141
|
-
reward_decimals: [18],
|
|
142
137
|
swap_abi: swap_json_4.default,
|
|
143
|
-
gauge_abi:
|
|
138
|
+
gauge_abi: gauge_child_json_1.default,
|
|
144
139
|
deposit_abi: deposit_json_1.default,
|
|
145
140
|
},
|
|
146
141
|
});
|
package/lib/constants/utils.js
CHANGED
|
@@ -18,14 +18,11 @@ var lowerCasePoolDataAddresses = function (poolsData) {
|
|
|
18
18
|
poolData.reward_contract = poolData.reward_contract.toLowerCase();
|
|
19
19
|
poolData.underlying_coin_addresses = poolData.underlying_coin_addresses.map(function (a) { return a.toLowerCase(); });
|
|
20
20
|
poolData.wrapped_coin_addresses = poolData.wrapped_coin_addresses.map(function (a) { return a.toLowerCase(); });
|
|
21
|
-
if (poolData.reward_tokens)
|
|
22
|
-
poolData.reward_tokens = poolData.reward_tokens.map(function (a) { return a.toLowerCase(); });
|
|
23
21
|
}
|
|
24
22
|
return poolsData;
|
|
25
23
|
};
|
|
26
24
|
exports.lowerCasePoolDataAddresses = lowerCasePoolDataAddresses;
|
|
27
25
|
var extractDecimals = function (poolsData) {
|
|
28
|
-
var _a, _b;
|
|
29
26
|
var DECIMALS = {};
|
|
30
27
|
for (var poolId in poolsData) {
|
|
31
28
|
if (!Object.prototype.hasOwnProperty.call(poolsData, poolId))
|
|
@@ -41,12 +38,6 @@ var extractDecimals = function (poolsData) {
|
|
|
41
38
|
for (var i = 0; i < poolData.wrapped_coin_addresses.length; i++) {
|
|
42
39
|
DECIMALS[poolData.wrapped_coin_addresses[i]] = poolData.wrapped_decimals[i];
|
|
43
40
|
}
|
|
44
|
-
// Wrapped coins
|
|
45
|
-
var rewardTokens = (_a = poolData.reward_tokens) !== null && _a !== void 0 ? _a : [];
|
|
46
|
-
var rewardDecimals = (_b = poolData.reward_decimals) !== null && _b !== void 0 ? _b : [];
|
|
47
|
-
for (var i = 0; i < rewardTokens.length; i++) {
|
|
48
|
-
DECIMALS[rewardTokens[i]] = rewardDecimals[i];
|
|
49
|
-
}
|
|
50
41
|
}
|
|
51
42
|
return DECIMALS;
|
|
52
43
|
};
|
package/lib/curve.js
CHANGED
|
@@ -69,6 +69,7 @@ var ERC20_json_1 = __importDefault(require("./constants/abis/ERC20.json"));
|
|
|
69
69
|
var cERC20_json_1 = __importDefault(require("./constants/abis/cERC20.json"));
|
|
70
70
|
var yERC20_json_1 = __importDefault(require("./constants/abis/yERC20.json"));
|
|
71
71
|
var minter_json_1 = __importDefault(require("./constants/abis/minter.json"));
|
|
72
|
+
var minter_child_json_1 = __importDefault(require("./constants/abis/minter_child.json"));
|
|
72
73
|
var votingescrow_json_1 = __importDefault(require("./constants/abis/votingescrow.json"));
|
|
73
74
|
var address_provider_json_1 = __importDefault(require("./constants/abis/address_provider.json"));
|
|
74
75
|
var gaugecontroller_json_1 = __importDefault(require("./constants/abis/gaugecontroller.json"));
|
|
@@ -145,9 +146,9 @@ var Curve = /** @class */ (function () {
|
|
|
145
146
|
) {
|
|
146
147
|
if (options === void 0) { options = {}; }
|
|
147
148
|
return __awaiter(this, void 0, void 0, function () {
|
|
148
|
-
var network, _a, _b, cTokens, yTokens, ycTokens, aTokens, customAbiTokens, _c, _i, _d, pool, _e, _f, coinAddr, _g, _h, coinAddr, _j, _k, coinAddr,
|
|
149
|
-
return __generator(this, function (
|
|
150
|
-
switch (
|
|
149
|
+
var network, _a, _b, cTokens, yTokens, ycTokens, aTokens, customAbiTokens, _c, _i, _d, pool, _e, _f, coinAddr, _g, _h, coinAddr, _j, _k, coinAddr, _minterABI, addressProviderContract, _l;
|
|
150
|
+
return __generator(this, function (_m) {
|
|
151
|
+
switch (_m.label) {
|
|
151
152
|
case 0:
|
|
152
153
|
// @ts-ignore
|
|
153
154
|
this.provider = null;
|
|
@@ -212,8 +213,8 @@ var Curve = /** @class */ (function () {
|
|
|
212
213
|
if (_a) return [3 /*break*/, 2];
|
|
213
214
|
return [4 /*yield*/, this.provider._networkPromise];
|
|
214
215
|
case 1:
|
|
215
|
-
_a = (
|
|
216
|
-
|
|
216
|
+
_a = (_m.sent());
|
|
217
|
+
_m.label = 2;
|
|
217
218
|
case 2:
|
|
218
219
|
network = _a;
|
|
219
220
|
console.log("CURVE-JS IS CONNECTED TO NETWORK:", network);
|
|
@@ -234,21 +235,21 @@ var Curve = /** @class */ (function () {
|
|
|
234
235
|
this.multicallProvider = new ethcall_1.Provider();
|
|
235
236
|
return [4 /*yield*/, this.multicallProvider.init(this.provider)];
|
|
236
237
|
case 3:
|
|
237
|
-
|
|
238
|
+
_m.sent();
|
|
238
239
|
if (!this.signer) return [3 /*break*/, 5];
|
|
239
240
|
_c = this;
|
|
240
241
|
return [4 /*yield*/, this.signer.getAddress()];
|
|
241
242
|
case 4:
|
|
242
|
-
_c.signerAddress =
|
|
243
|
+
_c.signerAddress = _m.sent();
|
|
243
244
|
return [3 /*break*/, 6];
|
|
244
245
|
case 5:
|
|
245
246
|
this.signerAddress = '';
|
|
246
|
-
|
|
247
|
+
_m.label = 6;
|
|
247
248
|
case 6:
|
|
248
249
|
this.feeData = { gasPrice: options.gasPrice, maxFeePerGas: options.maxFeePerGas, maxPriorityFeePerGas: options.maxPriorityFeePerGas };
|
|
249
250
|
return [4 /*yield*/, this.updateFeeData()];
|
|
250
251
|
case 7:
|
|
251
|
-
|
|
252
|
+
_m.sent();
|
|
252
253
|
for (_i = 0, _d = Object.values(this.constants.POOLS_DATA); _i < _d.length; _i++) {
|
|
253
254
|
pool = _d[_i];
|
|
254
255
|
this.contracts[pool.swap_address] = {
|
|
@@ -315,11 +316,10 @@ var Curve = /** @class */ (function () {
|
|
|
315
316
|
multicallContract: new ethcall_1.Contract(pool.reward_contract, streamer_json_1.default),
|
|
316
317
|
};
|
|
317
318
|
}
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
multicallContract: new ethcall_1.Contract(rewardTokenAddr, ERC20_json_1.default),
|
|
319
|
+
if (pool.sCurveRewards_address) {
|
|
320
|
+
this.contracts[pool.sCurveRewards_address] = {
|
|
321
|
+
contract: new ethers_1.Contract(pool.sCurveRewards_address, pool.sCurveRewards_abi, this.signer || this.provider),
|
|
322
|
+
multicallContract: new ethcall_1.Contract(pool.sCurveRewards_address, pool.sCurveRewards_abi),
|
|
323
323
|
};
|
|
324
324
|
}
|
|
325
325
|
}
|
|
@@ -331,13 +331,15 @@ var Curve = /** @class */ (function () {
|
|
|
331
331
|
contract: new ethers_1.Contract(this.constants.ALIASES.crv, ERC20_json_1.default, this.signer || this.provider),
|
|
332
332
|
multicallContract: new ethcall_1.Contract(this.constants.ALIASES.crv, ERC20_json_1.default),
|
|
333
333
|
};
|
|
334
|
+
this.constants.DECIMALS[this.constants.ALIASES.crv] = 18;
|
|
335
|
+
_minterABI = this.chainId === 1 ? minter_json_1.default : minter_child_json_1.default;
|
|
334
336
|
this.contracts[this.constants.ALIASES.minter] = {
|
|
335
|
-
contract: new ethers_1.Contract(this.constants.ALIASES.minter,
|
|
336
|
-
multicallContract: new ethcall_1.Contract(this.constants.ALIASES.minter,
|
|
337
|
+
contract: new ethers_1.Contract(this.constants.ALIASES.minter, _minterABI, this.signer || this.provider),
|
|
338
|
+
multicallContract: new ethcall_1.Contract(this.constants.ALIASES.minter, _minterABI),
|
|
337
339
|
};
|
|
338
340
|
this.contracts[this.constants.ALIASES.minter.toLowerCase()] = {
|
|
339
|
-
contract: new ethers_1.Contract(this.constants.ALIASES.minter,
|
|
340
|
-
multicallContract: new ethcall_1.Contract(this.constants.ALIASES.minter,
|
|
341
|
+
contract: new ethers_1.Contract(this.constants.ALIASES.minter, _minterABI, this.signer || this.provider),
|
|
342
|
+
multicallContract: new ethcall_1.Contract(this.constants.ALIASES.minter, _minterABI),
|
|
341
343
|
};
|
|
342
344
|
this.contracts[this.constants.ALIASES.voting_escrow] = {
|
|
343
345
|
contract: new ethers_1.Contract(this.constants.ALIASES.voting_escrow, votingescrow_json_1.default, this.signer || this.provider),
|
|
@@ -356,10 +358,10 @@ var Curve = /** @class */ (function () {
|
|
|
356
358
|
multicallContract: new ethcall_1.Contract(this.constants.ALIASES.address_provider, address_provider_json_1.default),
|
|
357
359
|
};
|
|
358
360
|
addressProviderContract = this.contracts[this.constants.ALIASES.address_provider].contract;
|
|
359
|
-
|
|
361
|
+
_l = this.constants.ALIASES;
|
|
360
362
|
return [4 /*yield*/, addressProviderContract.get_address(2, this.constantOptions)];
|
|
361
363
|
case 8:
|
|
362
|
-
|
|
364
|
+
_l.registry_exchange = _m.sent();
|
|
363
365
|
this.contracts[this.constants.ALIASES.registry_exchange] = {
|
|
364
366
|
contract: new ethers_1.Contract(this.constants.ALIASES.registry_exchange, registry_exchange_json_1.default, this.signer || this.provider),
|
|
365
367
|
multicallContract: new ethcall_1.Contract(this.constants.ALIASES.registry_exchange, registry_exchange_json_1.default),
|
package/lib/factory/common.js
CHANGED
|
@@ -7,10 +7,16 @@ exports.setFactoryZapContracts = void 0;
|
|
|
7
7
|
var ethers_1 = require("ethers");
|
|
8
8
|
var ethcall_1 = require("ethcall");
|
|
9
9
|
var deposit_json_1 = __importDefault(require("../constants/abis/factoryPools/deposit.json"));
|
|
10
|
+
var metaZap_json_1 = __importDefault(require("../constants/abis/fraxusdc/metaZap.json"));
|
|
10
11
|
var DepositZapMetaUsdPolygon_json_1 = __importDefault(require("../constants/abis/factory-v2/DepositZapMetaUsdPolygon.json"));
|
|
11
12
|
var DepositZapMetaBtcPolygon_json_1 = __importDefault(require("../constants/abis/factory-v2/DepositZapMetaBtcPolygon.json"));
|
|
12
13
|
function setFactoryZapContracts() {
|
|
13
14
|
if (this.chainId === 1) {
|
|
15
|
+
var fraxusdcMetaZapAddress = "0x08780fb7E580e492c1935bEe4fA5920b94AA95Da".toLowerCase();
|
|
16
|
+
this.contracts[fraxusdcMetaZapAddress] = {
|
|
17
|
+
contract: new ethers_1.Contract(fraxusdcMetaZapAddress, metaZap_json_1.default, this.signer || this.provider),
|
|
18
|
+
multicallContract: new ethcall_1.Contract(fraxusdcMetaZapAddress, metaZap_json_1.default),
|
|
19
|
+
};
|
|
14
20
|
var metaSBtcZapAddress = "0x7abdbaf29929e7f8621b757d2a7c04d78d633834".toLowerCase();
|
|
15
21
|
this.contracts[metaSBtcZapAddress] = {
|
|
16
22
|
contract: new ethers_1.Contract(metaSBtcZapAddress, deposit_json_1.default, this.signer || this.provider),
|
package/lib/factory/constants.js
CHANGED
|
@@ -7,6 +7,8 @@ exports.FACTORY_CONSTANTS = exports.ETH_ADDRESS = exports.WETH_ADDRESS = exports
|
|
|
7
7
|
var swap_json_1 = __importDefault(require("../constants/abis/factoryPools/swap.json"));
|
|
8
8
|
var MetaUSD_json_1 = __importDefault(require("../constants/abis/factory-v2/MetaUSD.json"));
|
|
9
9
|
var MetaUSDBalances_json_1 = __importDefault(require("../constants/abis/factory-v2/MetaUSDBalances.json"));
|
|
10
|
+
var MetaFraxUSD_json_1 = __importDefault(require("../constants/abis/factory-v2/MetaFraxUSD.json"));
|
|
11
|
+
var MetaFraxUSDBalances_json_1 = __importDefault(require("../constants/abis/factory-v2/MetaFraxUSDBalances.json"));
|
|
10
12
|
var MetaBTC_json_1 = __importDefault(require("../constants/abis/factory-v2/MetaBTC.json"));
|
|
11
13
|
var MetaBTCBalances_json_1 = __importDefault(require("../constants/abis/factory-v2/MetaBTCBalances.json"));
|
|
12
14
|
var MetaBTCRen_json_1 = __importDefault(require("../constants/abis/factory-v2/MetaBTCRen.json"));
|
|
@@ -27,6 +29,8 @@ exports.implementationABIDictEthereum = {
|
|
|
27
29
|
"0x5F890841f657d90E081bAbdB532A05996Af79Fe6": swap_json_1.default,
|
|
28
30
|
"0x213be373FDff327658139C7df330817DAD2d5bBE": MetaUSD_json_1.default,
|
|
29
31
|
"0x55Aa9BF126bCABF0bDC17Fa9E39Ec9239e1ce7A9": MetaUSDBalances_json_1.default,
|
|
32
|
+
"0x33bB0e62d5e8C688E645Dd46DFb48Cd613250067": MetaFraxUSD_json_1.default,
|
|
33
|
+
"0x2EB24483Ef551dA247ab87Cf18e1Cc980073032D": MetaFraxUSDBalances_json_1.default,
|
|
30
34
|
"0xC6A8466d128Fbfd34AdA64a9FFFce325D57C9a52": MetaBTC_json_1.default,
|
|
31
35
|
"0xc4C78b08fA0c3d0a312605634461A88184Ecd630": MetaBTCBalances_json_1.default,
|
|
32
36
|
"0xECAaecd9d2193900b424774133B1f51ae0F29d9E": MetaBTCRen_json_1.default,
|
|
@@ -84,6 +88,8 @@ exports.implementationBasePoolAddressDictEthereum = {
|
|
|
84
88
|
"0x5F890841f657d90E081bAbdB532A05996Af79Fe6": "0xbEbc44782C7dB0a1A60Cb6fe97d0b483032FF1C7",
|
|
85
89
|
"0x213be373FDff327658139C7df330817DAD2d5bBE": "0xbEbc44782C7dB0a1A60Cb6fe97d0b483032FF1C7",
|
|
86
90
|
"0x55Aa9BF126bCABF0bDC17Fa9E39Ec9239e1ce7A9": "0xbEbc44782C7dB0a1A60Cb6fe97d0b483032FF1C7",
|
|
91
|
+
"0x33bB0e62d5e8C688E645Dd46DFb48Cd613250067": "0xDcEF968d416a41Cdac0ED8702fAC8128A64241A2",
|
|
92
|
+
"0x2EB24483Ef551dA247ab87Cf18e1Cc980073032D": "0xDcEF968d416a41Cdac0ED8702fAC8128A64241A2",
|
|
87
93
|
"0xC6A8466d128Fbfd34AdA64a9FFFce325D57C9a52": "0x7fC77b5c7614E1533320Ea6DDc2Eb61fa00A9714",
|
|
88
94
|
"0xc4C78b08fA0c3d0a312605634461A88184Ecd630": "0x7fC77b5c7614E1533320Ea6DDc2Eb61fa00A9714",
|
|
89
95
|
"0xECAaecd9d2193900b424774133B1f51ae0F29d9E": "0x93054188d876f558f4a66B2EF1d97d16eDf0895B",
|
|
@@ -103,6 +109,7 @@ exports.implementationBasePoolAddressDictAvalanche = {
|
|
|
103
109
|
};
|
|
104
110
|
exports.basePoolAddressIdDictEthereum = {
|
|
105
111
|
"0xbEbc44782C7dB0a1A60Cb6fe97d0b483032FF1C7": "3pool",
|
|
112
|
+
"0xDcEF968d416a41Cdac0ED8702fAC8128A64241A2": "fraxusdc",
|
|
106
113
|
"0x7fC77b5c7614E1533320Ea6DDc2Eb61fa00A9714": "sbtc",
|
|
107
114
|
"0x93054188d876f558f4a66B2EF1d97d16eDf0895B": "ren",
|
|
108
115
|
};
|
|
@@ -116,6 +123,7 @@ exports.basePoolAddressIdDictAvalanche = {
|
|
|
116
123
|
};
|
|
117
124
|
exports.basePoolIdZapDictEthereum = {
|
|
118
125
|
'3pool': "0xA79828DF1850E8a3A3064576f380D90aECDD3359".toLowerCase(),
|
|
126
|
+
fraxusdc: "0x08780fb7E580e492c1935bEe4fA5920b94AA95Da".toLowerCase(),
|
|
119
127
|
sbtc: "0x7abdbaf29929e7f8621b757d2a7c04d78d633834".toLowerCase(),
|
|
120
128
|
ren: "0x7abdbaf29929e7f8621b757d2a7c04d78d633834".toLowerCase(), // TODO CHECK!!!
|
|
121
129
|
};
|
|
@@ -159,7 +159,6 @@ function getFactoryPoolsDataFromApi(isCrypto) {
|
|
|
159
159
|
common_1.setFactoryZapContracts.call(this);
|
|
160
160
|
FACTORY_POOLS_DATA = {};
|
|
161
161
|
rawPoolList.forEach(function (pool) {
|
|
162
|
-
var _a, _b, _c, _d, _e, _f;
|
|
163
162
|
var coinAddresses = pool.coins.map(function (c) { return c.address.toLowerCase(); });
|
|
164
163
|
var coinNames = pool.coins.map(function (c) { return c.symbol; });
|
|
165
164
|
var coinDecimals = pool.coins.map(function (c) { return Number(c.decimals); });
|
|
@@ -183,8 +182,6 @@ function getFactoryPoolsDataFromApi(isCrypto) {
|
|
|
183
182
|
wrapped_coin_addresses: coinAddresses,
|
|
184
183
|
underlying_decimals: coinDecimals,
|
|
185
184
|
wrapped_decimals: coinDecimals,
|
|
186
|
-
reward_tokens: ((_a = pool.gaugeRewards) !== null && _a !== void 0 ? _a : []).map(function (r) { return r.tokenAddress; }),
|
|
187
|
-
reward_decimals: ((_b = pool.gaugeRewards) !== null && _b !== void 0 ? _b : []).map(function (r) { return r.decimals; }),
|
|
188
185
|
swap_abi: factory_crypto_pool_2_json_1.default,
|
|
189
186
|
gauge_abi: gauge_factory_json_1.default,
|
|
190
187
|
};
|
|
@@ -223,8 +220,6 @@ function getFactoryPoolsDataFromApi(isCrypto) {
|
|
|
223
220
|
wrapped_coin_addresses: coinAddresses,
|
|
224
221
|
underlying_decimals: __spreadArray([coinDecimals[0]], basePoolDecimals, true),
|
|
225
222
|
wrapped_decimals: coinDecimals,
|
|
226
|
-
reward_tokens: ((_c = pool.gaugeRewards) !== null && _c !== void 0 ? _c : []).map(function (r) { return r.tokenAddress; }),
|
|
227
|
-
reward_decimals: ((_d = pool.gaugeRewards) !== null && _d !== void 0 ? _d : []).map(function (r) { return r.decimals; }),
|
|
228
223
|
swap_abi: implementationABIDict[pool.implementationAddress],
|
|
229
224
|
gauge_abi: gauge_factory_json_1.default,
|
|
230
225
|
deposit_abi: deposit_json_1.default,
|
|
@@ -248,8 +243,6 @@ function getFactoryPoolsDataFromApi(isCrypto) {
|
|
|
248
243
|
wrapped_coin_addresses: coinAddresses,
|
|
249
244
|
underlying_decimals: coinDecimals,
|
|
250
245
|
wrapped_decimals: coinDecimals,
|
|
251
|
-
reward_tokens: ((_e = pool.gaugeRewards) !== null && _e !== void 0 ? _e : []).map(function (r) { return r.tokenAddress; }),
|
|
252
|
-
reward_decimals: ((_f = pool.gaugeRewards) !== null && _f !== void 0 ? _f : []).map(function (r) { return r.decimals; }),
|
|
253
246
|
swap_abi: implementationABIDict[pool.implementationAddress],
|
|
254
247
|
gauge_abi: gauge_factory_json_1.default,
|
|
255
248
|
};
|
package/lib/interfaces.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import memoize from "memoizee";
|
|
1
2
|
import { IDict, IReward } from '../interfaces';
|
|
2
3
|
export declare class PoolTemplate {
|
|
3
4
|
id: string;
|
|
@@ -26,7 +27,6 @@ export declare class PoolTemplate {
|
|
|
26
27
|
underlyingDecimals: number[];
|
|
27
28
|
wrappedDecimals: number[];
|
|
28
29
|
useLending: boolean[];
|
|
29
|
-
rewardTokens: string[];
|
|
30
30
|
estimateGas: {
|
|
31
31
|
depositApprove: (amounts: (number | string)[]) => Promise<number>;
|
|
32
32
|
deposit: (amounts: (number | string)[]) => Promise<number>;
|
|
@@ -123,6 +123,15 @@ export declare class PoolTemplate {
|
|
|
123
123
|
claimableCrv(address?: string): Promise<string>;
|
|
124
124
|
claimCrvEstimateGas(): Promise<number>;
|
|
125
125
|
claimCrv(): Promise<string>;
|
|
126
|
+
rewardTokens: (() => Promise<{
|
|
127
|
+
token: string;
|
|
128
|
+
symbol: string;
|
|
129
|
+
decimals: number;
|
|
130
|
+
}[]>) & memoize.Memoized<() => Promise<{
|
|
131
|
+
token: string;
|
|
132
|
+
symbol: string;
|
|
133
|
+
decimals: number;
|
|
134
|
+
}[]>>;
|
|
126
135
|
claimableRewards(address?: string): Promise<{
|
|
127
136
|
token: string;
|
|
128
137
|
symbol: string;
|