@curvefi/api 2.63.10 → 2.64.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.
- package/lib/constants/coins/arbitrum.d.ts +0 -4
- package/lib/constants/coins/arbitrum.js +0 -4
- package/lib/constants/coins/aurora.d.ts +0 -4
- package/lib/constants/coins/aurora.js +0 -4
- package/lib/constants/coins/avalanche.d.ts +0 -3
- package/lib/constants/coins/avalanche.js +0 -3
- package/lib/constants/coins/base.d.ts +0 -4
- package/lib/constants/coins/base.js +0 -4
- package/lib/constants/coins/bsc.d.ts +0 -4
- package/lib/constants/coins/bsc.js +0 -4
- package/lib/constants/coins/celo.d.ts +0 -4
- package/lib/constants/coins/celo.js +0 -4
- package/lib/constants/coins/fantom.d.ts +0 -2
- package/lib/constants/coins/fantom.js +0 -2
- package/lib/constants/coins/fraxtal.d.ts +0 -4
- package/lib/constants/coins/fraxtal.js +0 -4
- package/lib/constants/coins/index.d.ts +18 -0
- package/lib/constants/coins/index.js +18 -0
- package/lib/constants/coins/kava.d.ts +0 -4
- package/lib/constants/coins/kava.js +0 -4
- package/lib/constants/coins/mantle.d.ts +0 -4
- package/lib/constants/coins/mantle.js +0 -4
- package/lib/constants/coins/moonbeam.d.ts +0 -4
- package/lib/constants/coins/moonbeam.js +0 -4
- package/lib/constants/coins/optimism.d.ts +0 -4
- package/lib/constants/coins/optimism.js +0 -4
- package/lib/constants/coins/polygon.d.ts +0 -3
- package/lib/constants/coins/polygon.js +0 -3
- package/lib/constants/coins/xdai.d.ts +0 -4
- package/lib/constants/coins/xdai.js +0 -4
- package/lib/constants/coins/xlayer.d.ts +0 -4
- package/lib/constants/coins/xlayer.js +0 -4
- package/lib/constants/coins/zksync.d.ts +0 -4
- package/lib/constants/coins/zksync.js +0 -4
- package/lib/constants/{tricryptoDeployImplementations.d.ts → factory/crypto.d.ts} +21 -0
- package/lib/constants/{tricryptoDeployImplementations.js → factory/crypto.js} +85 -0
- package/lib/constants/factory/index.d.ts +3 -0
- package/lib/constants/factory/index.js +3 -0
- package/lib/{factory/constants.d.ts → constants/factory/stable.d.ts} +6 -52
- package/lib/{factory/constants.js → constants/factory/stable.js} +41 -151
- package/lib/constants/network_constants.d.ts +3 -0
- package/lib/constants/{aliases.js → network_constants.js} +253 -96
- package/lib/curve.d.ts +22 -16
- package/lib/curve.js +94 -362
- package/lib/external-api.d.ts +5 -3
- package/lib/external-api.js +86 -12
- package/lib/factory/common.js +2 -3
- package/lib/factory/deploy.js +5 -4
- package/lib/factory/factory-api.js +53 -61
- package/lib/factory/factory-crypto.js +3 -3
- package/lib/factory/factory-tricrypto.js +2 -2
- package/lib/factory/factory.js +22 -11
- package/lib/index.d.ts +1 -0
- package/lib/index.js +2 -1
- package/lib/interfaces.d.ts +26 -1
- package/lib/pools/PoolTemplate.d.ts +9 -82
- package/lib/pools/PoolTemplate.js +37 -379
- package/lib/pools/mixins/depositBalancedAmountsMixins.js +3 -3
- package/lib/pools/mixins/poolBalancesMixin.d.ts +3 -3
- package/lib/pools/mixins/poolBalancesMixin.js +11 -11
- package/lib/pools/poolConstructor.js +14 -7
- package/lib/pools/subClasses/corePool.d.ts +68 -0
- package/lib/pools/subClasses/corePool.js +39 -0
- package/lib/pools/{gaugePool.d.ts → subClasses/gaugePool.d.ts} +1 -1
- package/lib/pools/{gaugePool.js → subClasses/gaugePool.js} +2 -2
- package/lib/pools/subClasses/statsPool.d.ts +45 -0
- package/lib/pools/subClasses/statsPool.js +227 -0
- package/lib/pools/subClasses/walletPool.d.ts +19 -0
- package/lib/pools/subClasses/walletPool.js +72 -0
- package/lib/pools/utils.d.ts +1 -0
- package/lib/pools/utils.js +36 -0
- package/lib/utils.d.ts +10 -1
- package/lib/utils.js +45 -7
- package/package.json +1 -1
- package/lib/constants/aliases.d.ts +0 -17
- package/lib/factory/constants-crypto.d.ts +0 -90
- package/lib/factory/constants-crypto.js +0 -122
package/lib/utils.js
CHANGED
|
@@ -11,12 +11,13 @@ import axios from 'axios';
|
|
|
11
11
|
import { Contract } from 'ethers';
|
|
12
12
|
import { Contract as MulticallContract } from "@curvefi/ethcall";
|
|
13
13
|
import BigNumber from 'bignumber.js';
|
|
14
|
-
import { curve
|
|
15
|
-
import { _getAllPoolsFromApi, _getFactoryAPYs, _getSubgraphData, _getVolumes } from "./external-api.js";
|
|
14
|
+
import { curve } from "./curve.js";
|
|
15
|
+
import { _getAllPoolsFromApi, _getCurveLiteNetworks, _getFactoryAPYs, _getLiteNetworksData, _getSubgraphData, _getVolumes, } from "./external-api.js";
|
|
16
16
|
import ERC20Abi from './constants/abis/ERC20.json' assert { type: 'json' };
|
|
17
17
|
import { L2Networks } from './constants/L2Networks.js';
|
|
18
18
|
import { volumeNetworks } from "./constants/volumeNetworks.js";
|
|
19
19
|
import { getPool } from "./pools/index.js";
|
|
20
|
+
import { NETWORK_CONSTANTS } from "./constants/network_constants.js";
|
|
20
21
|
export const ETH_ADDRESS = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
|
|
21
22
|
// export const MAX_ALLOWANCE = curve.parseUnits(new BigNumber(2).pow(256).minus(1).toFixed(), 0);
|
|
22
23
|
export const MAX_ALLOWANCE = BigInt("115792089237316195423570985008687907853269984665640564039457584007913129639935"); // 2**256 - 1
|
|
@@ -262,7 +263,7 @@ export const getPoolIdBySwapAddress = (swapAddress) => {
|
|
|
262
263
|
export const _getUsdPricesFromApi = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
263
264
|
var _a, _b;
|
|
264
265
|
const network = curve.constants.NETWORK_NAME;
|
|
265
|
-
const allTypesExtendedPoolData = yield _getAllPoolsFromApi(network);
|
|
266
|
+
const allTypesExtendedPoolData = yield _getAllPoolsFromApi(network, curve.isLiteChain);
|
|
266
267
|
const priceDict = {};
|
|
267
268
|
const priceDictByMaxTvl = {};
|
|
268
269
|
for (const extendedPoolData of allTypesExtendedPoolData) {
|
|
@@ -332,7 +333,7 @@ export const _getUsdPricesFromApi = () => __awaiter(void 0, void 0, void 0, func
|
|
|
332
333
|
export const _getCrvApyFromApi = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
333
334
|
var _c, _d;
|
|
334
335
|
const network = curve.constants.NETWORK_NAME;
|
|
335
|
-
const allTypesExtendedPoolData = yield _getAllPoolsFromApi(network);
|
|
336
|
+
const allTypesExtendedPoolData = yield _getAllPoolsFromApi(network, curve.isLiteChain);
|
|
336
337
|
const apyDict = {};
|
|
337
338
|
for (const extendedPoolData of allTypesExtendedPoolData) {
|
|
338
339
|
for (const pool of extendedPoolData.poolData) {
|
|
@@ -351,7 +352,7 @@ export const _getCrvApyFromApi = () => __awaiter(void 0, void 0, void 0, functio
|
|
|
351
352
|
export const _getRewardsFromApi = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
352
353
|
var _e;
|
|
353
354
|
const network = curve.constants.NETWORK_NAME;
|
|
354
|
-
const allTypesExtendedPoolData = yield _getAllPoolsFromApi(network);
|
|
355
|
+
const allTypesExtendedPoolData = yield _getAllPoolsFromApi(network, curve.isLiteChain);
|
|
355
356
|
const rewardsDict = {};
|
|
356
357
|
for (const extendedPoolData of allTypesExtendedPoolData) {
|
|
357
358
|
for (const pool of extendedPoolData.poolData) {
|
|
@@ -366,6 +367,9 @@ export const _getRewardsFromApi = () => __awaiter(void 0, void 0, void 0, functi
|
|
|
366
367
|
const _usdRatesCache = {};
|
|
367
368
|
export const _getUsdRate = (assetId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
368
369
|
var _f, _g;
|
|
370
|
+
if (curve.isLiteChain) {
|
|
371
|
+
throw Error('This method is not supported for the lite version');
|
|
372
|
+
}
|
|
369
373
|
if (curve.chainId === 1 && assetId.toLowerCase() === '0x8762db106b2c2a0bccb3a80d1ed41273552616e8')
|
|
370
374
|
return 0; // RSR
|
|
371
375
|
const pricesFromApi = yield _getUsdPricesFromApi();
|
|
@@ -446,6 +450,9 @@ export const _getUsdRate = (assetId) => __awaiter(void 0, void 0, void 0, functi
|
|
|
446
450
|
return _usdRatesCache[assetId]['rate'];
|
|
447
451
|
});
|
|
448
452
|
export const getUsdRate = (coin) => __awaiter(void 0, void 0, void 0, function* () {
|
|
453
|
+
if (curve.isLiteChain) {
|
|
454
|
+
throw Error('This method is not supported for the lite version');
|
|
455
|
+
}
|
|
449
456
|
const [coinAddress] = _getCoinAddressesNoCheck(coin);
|
|
450
457
|
return yield _getUsdRate(coinAddress);
|
|
451
458
|
});
|
|
@@ -546,11 +553,17 @@ const _getNetworkName = (network = curve.chainId) => {
|
|
|
546
553
|
}
|
|
547
554
|
};
|
|
548
555
|
export const getTVL = (network = curve.chainId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
556
|
+
if (curve.isLiteChain) {
|
|
557
|
+
throw Error('This method is not supported for the lite version');
|
|
558
|
+
}
|
|
549
559
|
network = _getNetworkName(network);
|
|
550
560
|
const allTypesExtendedPoolData = yield _getAllPoolsFromApi(network);
|
|
551
561
|
return allTypesExtendedPoolData.reduce((sum, data) => { var _a, _b; return sum + ((_b = (_a = data.tvl) !== null && _a !== void 0 ? _a : data.tvlAll) !== null && _b !== void 0 ? _b : 0); }, 0);
|
|
552
562
|
});
|
|
553
563
|
export const getVolumeApiController = (network) => __awaiter(void 0, void 0, void 0, function* () {
|
|
564
|
+
if (curve.isLiteChain) {
|
|
565
|
+
throw Error('This method is not supported for the lite version');
|
|
566
|
+
}
|
|
554
567
|
if (volumeNetworks.getVolumes.includes(curve.chainId)) {
|
|
555
568
|
return yield _getVolumes(network);
|
|
556
569
|
}
|
|
@@ -563,6 +576,9 @@ export const getVolumeApiController = (network) => __awaiter(void 0, void 0, voi
|
|
|
563
576
|
throw Error(`Can't get volume for network: ${network}`);
|
|
564
577
|
});
|
|
565
578
|
export const getVolume = (network = curve.chainId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
579
|
+
if (curve.isLiteChain) {
|
|
580
|
+
throw Error('This method is not supported for the lite version');
|
|
581
|
+
}
|
|
566
582
|
network = _getNetworkName(network);
|
|
567
583
|
const { totalVolume, cryptoVolume, cryptoShare } = yield getVolumeApiController(network);
|
|
568
584
|
return { totalVolume, cryptoVolume, cryptoShare };
|
|
@@ -625,8 +641,8 @@ export const getCoinsData = (...coins) => __awaiter(void 0, void 0, void 0, func
|
|
|
625
641
|
});
|
|
626
642
|
return res;
|
|
627
643
|
});
|
|
628
|
-
export const hasDepositAndStake = () =>
|
|
629
|
-
export const hasRouter = () =>
|
|
644
|
+
export const hasDepositAndStake = () => "deposit_and_stake" in curve.constants.ALIASES;
|
|
645
|
+
export const hasRouter = () => "router" in curve.constants.ALIASES;
|
|
630
646
|
export const findAbiFunction = (abi, methodName) => abi.filter((item) => item.type == 'function' && item.name === methodName);
|
|
631
647
|
export const getCountArgsOfMethodByAbi = (abi, methodName) => { var _a, _b; return (_b = (_a = findAbiFunction(abi, methodName)[0]) === null || _a === void 0 ? void 0 : _a.inputs.length) !== null && _b !== void 0 ? _b : -1; };
|
|
632
648
|
export const findAbiSignature = (abi, methodName, signature) => findAbiFunction(abi, methodName).find((func) => func.inputs.map((i) => `${i.type}`).join(',') == signature);
|
|
@@ -703,3 +719,25 @@ export function runWorker(code, syncFn, inputData, timeout = 30000) {
|
|
|
703
719
|
worker.terminate();
|
|
704
720
|
});
|
|
705
721
|
}
|
|
722
|
+
export const getCurveLiteNetworks = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
723
|
+
return yield _getCurveLiteNetworks();
|
|
724
|
+
});
|
|
725
|
+
export const getNetworkNameByChainId = (chainId, networks) => {
|
|
726
|
+
const network = networks.find((network) => network.chainId === chainId);
|
|
727
|
+
return network ? network.id : "Unknown Network";
|
|
728
|
+
};
|
|
729
|
+
export const getNetworkConstants = (chainId, isLiteChain) => __awaiter(void 0, void 0, void 0, function* () {
|
|
730
|
+
if (isLiteChain) {
|
|
731
|
+
const NAME = getNetworkNameByChainId(chainId, yield _getCurveLiteNetworks());
|
|
732
|
+
return Object.assign(Object.assign({}, yield _getLiteNetworksData(NAME)), { NAME });
|
|
733
|
+
}
|
|
734
|
+
else {
|
|
735
|
+
return NETWORK_CONSTANTS[chainId];
|
|
736
|
+
}
|
|
737
|
+
});
|
|
738
|
+
export const PERIODS = {
|
|
739
|
+
DAY: 86400,
|
|
740
|
+
WEEK: 604800,
|
|
741
|
+
MONTH: 2592000,
|
|
742
|
+
YEAR: 31536000, // 365 * 86400
|
|
743
|
+
};
|
package/package.json
CHANGED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare const ALIASES_ETHEREUM: import("../interfaces.js").IDict<string>;
|
|
2
|
-
export declare const ALIASES_POLYGON: import("../interfaces.js").IDict<string>;
|
|
3
|
-
export declare const ALIASES_FANTOM: import("../interfaces.js").IDict<string>;
|
|
4
|
-
export declare const ALIASES_AVALANCHE: import("../interfaces.js").IDict<string>;
|
|
5
|
-
export declare const ALIASES_ARBITRUM: import("../interfaces.js").IDict<string>;
|
|
6
|
-
export declare const ALIASES_OPTIMISM: import("../interfaces.js").IDict<string>;
|
|
7
|
-
export declare const ALIASES_XDAI: import("../interfaces.js").IDict<string>;
|
|
8
|
-
export declare const ALIASES_MOONBEAM: import("../interfaces.js").IDict<string>;
|
|
9
|
-
export declare const ALIASES_AURORA: import("../interfaces.js").IDict<string>;
|
|
10
|
-
export declare const ALIASES_KAVA: import("../interfaces.js").IDict<string>;
|
|
11
|
-
export declare const ALIASES_CELO: import("../interfaces.js").IDict<string>;
|
|
12
|
-
export declare const ALIASES_ZKSYNC: import("../interfaces.js").IDict<string>;
|
|
13
|
-
export declare const ALIASES_BASE: import("../interfaces.js").IDict<string>;
|
|
14
|
-
export declare const ALIASES_BSC: import("../interfaces.js").IDict<string>;
|
|
15
|
-
export declare const ALIASES_FRAXTAL: import("../interfaces.js").IDict<string>;
|
|
16
|
-
export declare const ALIASES_XLAYER: import("../interfaces.js").IDict<string>;
|
|
17
|
-
export declare const ALIASES_MANTLE: import("../interfaces.js").IDict<string>;
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { IDict } from "../interfaces";
|
|
2
|
-
export declare const lpTokenBasePoolIdDictEthereum: IDict<string>;
|
|
3
|
-
export declare const lpTokenBasePoolIdDictPolygon: IDict<string>;
|
|
4
|
-
export declare const lpTokenBasePoolIdDictFantom: IDict<string>;
|
|
5
|
-
export declare const lpTokenBasePoolIdDictAvalanche: IDict<string>;
|
|
6
|
-
export declare const lpTokenBasePoolIdDictArbitrum: IDict<string>;
|
|
7
|
-
export declare const lpTokenBasePoolIdDictOptimism: IDict<string>;
|
|
8
|
-
export declare const lpTokenBasePoolIdDictXDai: IDict<string>;
|
|
9
|
-
export declare const lpTokenBasePoolIdDictMoonbeam: IDict<string>;
|
|
10
|
-
export declare const lpTokenBasePoolIdDictKava: IDict<string>;
|
|
11
|
-
export declare const lpTokenBasePoolIdDictCelo: IDict<string>;
|
|
12
|
-
export declare const lpTokenBasePoolIdDictZkSync: IDict<string>;
|
|
13
|
-
export declare const lpTokenBasePoolIdDictBase: IDict<string>;
|
|
14
|
-
export declare const lpTokenBasePoolIdDictBsc: IDict<string>;
|
|
15
|
-
export declare const lpTokenBasePoolIdDictFraxtal: IDict<string>;
|
|
16
|
-
export declare const lpTokenBasePoolIdDictXLayer: IDict<string>;
|
|
17
|
-
export declare const lpTokenBasePoolIdDictMantle: IDict<string>;
|
|
18
|
-
export declare const basePoolIdZapDictEthereum: IDict<{
|
|
19
|
-
address: string;
|
|
20
|
-
ABI: any;
|
|
21
|
-
}>;
|
|
22
|
-
export declare const basePoolIdZapDictPolygon: IDict<{
|
|
23
|
-
address: string;
|
|
24
|
-
ABI: any;
|
|
25
|
-
}>;
|
|
26
|
-
export declare const basePoolIdZapDictFantom: IDict<{
|
|
27
|
-
address: string;
|
|
28
|
-
ABI: any;
|
|
29
|
-
}>;
|
|
30
|
-
export declare const basePoolIdZapDictAvalanche: IDict<{
|
|
31
|
-
address: string;
|
|
32
|
-
ABI: any;
|
|
33
|
-
}>;
|
|
34
|
-
export declare const basePoolIdZapDictArbitrum: IDict<{
|
|
35
|
-
address: string;
|
|
36
|
-
ABI: any;
|
|
37
|
-
}>;
|
|
38
|
-
export declare const basePoolIdZapDictOptimism: IDict<{
|
|
39
|
-
address: string;
|
|
40
|
-
ABI: any;
|
|
41
|
-
}>;
|
|
42
|
-
export declare const basePoolIdZapDictXDai: IDict<{
|
|
43
|
-
address: string;
|
|
44
|
-
ABI: any;
|
|
45
|
-
}>;
|
|
46
|
-
export declare const basePoolIdZapDictMoonbeam: IDict<{
|
|
47
|
-
address: string;
|
|
48
|
-
ABI: any;
|
|
49
|
-
}>;
|
|
50
|
-
export declare const basePoolIdZapDictKava: IDict<{
|
|
51
|
-
address: string;
|
|
52
|
-
ABI: any;
|
|
53
|
-
}>;
|
|
54
|
-
export declare const basePoolIdZapDictCelo: IDict<{
|
|
55
|
-
address: string;
|
|
56
|
-
ABI: any;
|
|
57
|
-
}>;
|
|
58
|
-
export declare const basePoolIdZapDictZkSync: IDict<{
|
|
59
|
-
address: string;
|
|
60
|
-
ABI: any;
|
|
61
|
-
}>;
|
|
62
|
-
export declare const basePoolIdZapDictBase: IDict<{
|
|
63
|
-
address: string;
|
|
64
|
-
ABI: any;
|
|
65
|
-
}>;
|
|
66
|
-
export declare const basePoolIdZapDictBsc: IDict<{
|
|
67
|
-
address: string;
|
|
68
|
-
ABI: any;
|
|
69
|
-
}>;
|
|
70
|
-
export declare const basePoolIdZapDictFraxtal: IDict<{
|
|
71
|
-
address: string;
|
|
72
|
-
ABI: any;
|
|
73
|
-
}>;
|
|
74
|
-
export declare const basePoolIdZapDictXLayer: IDict<{
|
|
75
|
-
address: string;
|
|
76
|
-
ABI: any;
|
|
77
|
-
}>;
|
|
78
|
-
export declare const basePoolIdZapDictMantle: IDict<{
|
|
79
|
-
address: string;
|
|
80
|
-
ABI: any;
|
|
81
|
-
}>;
|
|
82
|
-
export declare const CRYPTO_FACTORY_CONSTANTS: {
|
|
83
|
-
[index: number]: {
|
|
84
|
-
lpTokenBasePoolIdDict: IDict<string>;
|
|
85
|
-
basePoolIdZapDict: IDict<{
|
|
86
|
-
address: string;
|
|
87
|
-
ABI: any;
|
|
88
|
-
}>;
|
|
89
|
-
};
|
|
90
|
-
};
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { lowerCaseKeys } from "../constants/utils.js";
|
|
2
|
-
// --- ZAPS --
|
|
3
|
-
import atricrypto3ZapABI from "../constants/abis/atricrypto3/base_pool_zap.json" assert { type: 'json' };
|
|
4
|
-
import tripoolZapABI from "../constants/abis/3pool/meta_zap_crypto.json" assert { type: 'json' };
|
|
5
|
-
import fraxusdcZapABI from "../constants/abis/fraxusdc/meta_zap_crypto.json" assert { type: 'json' };
|
|
6
|
-
export const lpTokenBasePoolIdDictEthereum = lowerCaseKeys({
|
|
7
|
-
'0x6c3F90f043a72FA612cbac8115EE7e52BDe6E490': '3pool',
|
|
8
|
-
'0x3175Df0976dFA876431C2E9eE6Bc45b65d3473CC': 'fraxusdc',
|
|
9
|
-
});
|
|
10
|
-
export const lpTokenBasePoolIdDictPolygon = lowerCaseKeys({
|
|
11
|
-
'0xdAD97F7713Ae9437fa9249920eC8507e5FbB23d3': 'atricrypto3',
|
|
12
|
-
});
|
|
13
|
-
export const lpTokenBasePoolIdDictFantom = lowerCaseKeys({});
|
|
14
|
-
export const lpTokenBasePoolIdDictAvalanche = lowerCaseKeys({});
|
|
15
|
-
export const lpTokenBasePoolIdDictArbitrum = lowerCaseKeys({});
|
|
16
|
-
export const lpTokenBasePoolIdDictOptimism = lowerCaseKeys({});
|
|
17
|
-
export const lpTokenBasePoolIdDictXDai = lowerCaseKeys({});
|
|
18
|
-
export const lpTokenBasePoolIdDictMoonbeam = lowerCaseKeys({});
|
|
19
|
-
export const lpTokenBasePoolIdDictKava = lowerCaseKeys({});
|
|
20
|
-
export const lpTokenBasePoolIdDictCelo = lowerCaseKeys({});
|
|
21
|
-
export const lpTokenBasePoolIdDictZkSync = lowerCaseKeys({});
|
|
22
|
-
export const lpTokenBasePoolIdDictBase = lowerCaseKeys({});
|
|
23
|
-
export const lpTokenBasePoolIdDictBsc = lowerCaseKeys({});
|
|
24
|
-
export const lpTokenBasePoolIdDictFraxtal = lowerCaseKeys({});
|
|
25
|
-
export const lpTokenBasePoolIdDictXLayer = lowerCaseKeys({});
|
|
26
|
-
export const lpTokenBasePoolIdDictMantle = lowerCaseKeys({});
|
|
27
|
-
export const basePoolIdZapDictEthereum = {
|
|
28
|
-
'3pool': {
|
|
29
|
-
address: "0x97aDC08FA1D849D2C48C5dcC1DaB568B169b0267".toLowerCase(),
|
|
30
|
-
ABI: tripoolZapABI,
|
|
31
|
-
},
|
|
32
|
-
fraxusdc: {
|
|
33
|
-
address: "0x5de4ef4879f4fe3bbadf2227d2ac5d0e2d76c895".toLowerCase(),
|
|
34
|
-
ABI: fraxusdcZapABI,
|
|
35
|
-
},
|
|
36
|
-
};
|
|
37
|
-
export const basePoolIdZapDictPolygon = {
|
|
38
|
-
atricrypto3: {
|
|
39
|
-
address: "0x3d8EADb739D1Ef95dd53D718e4810721837c69c1".toLowerCase(),
|
|
40
|
-
ABI: atricrypto3ZapABI,
|
|
41
|
-
},
|
|
42
|
-
};
|
|
43
|
-
export const basePoolIdZapDictFantom = {};
|
|
44
|
-
export const basePoolIdZapDictAvalanche = {};
|
|
45
|
-
export const basePoolIdZapDictArbitrum = {};
|
|
46
|
-
export const basePoolIdZapDictOptimism = {};
|
|
47
|
-
export const basePoolIdZapDictXDai = {};
|
|
48
|
-
export const basePoolIdZapDictMoonbeam = {};
|
|
49
|
-
export const basePoolIdZapDictKava = {};
|
|
50
|
-
export const basePoolIdZapDictCelo = {};
|
|
51
|
-
export const basePoolIdZapDictZkSync = {};
|
|
52
|
-
export const basePoolIdZapDictBase = {};
|
|
53
|
-
export const basePoolIdZapDictBsc = {};
|
|
54
|
-
export const basePoolIdZapDictFraxtal = {};
|
|
55
|
-
export const basePoolIdZapDictXLayer = {};
|
|
56
|
-
export const basePoolIdZapDictMantle = {};
|
|
57
|
-
export const CRYPTO_FACTORY_CONSTANTS = {
|
|
58
|
-
1: {
|
|
59
|
-
lpTokenBasePoolIdDict: lpTokenBasePoolIdDictEthereum,
|
|
60
|
-
basePoolIdZapDict: basePoolIdZapDictEthereum,
|
|
61
|
-
},
|
|
62
|
-
10: {
|
|
63
|
-
lpTokenBasePoolIdDict: lpTokenBasePoolIdDictOptimism,
|
|
64
|
-
basePoolIdZapDict: basePoolIdZapDictOptimism,
|
|
65
|
-
},
|
|
66
|
-
56: {
|
|
67
|
-
lpTokenBasePoolIdDict: lpTokenBasePoolIdDictBsc,
|
|
68
|
-
basePoolIdZapDict: basePoolIdZapDictBsc,
|
|
69
|
-
},
|
|
70
|
-
100: {
|
|
71
|
-
lpTokenBasePoolIdDict: lpTokenBasePoolIdDictXDai,
|
|
72
|
-
basePoolIdZapDict: basePoolIdZapDictXDai,
|
|
73
|
-
},
|
|
74
|
-
137: {
|
|
75
|
-
lpTokenBasePoolIdDict: lpTokenBasePoolIdDictPolygon,
|
|
76
|
-
basePoolIdZapDict: basePoolIdZapDictPolygon,
|
|
77
|
-
},
|
|
78
|
-
196: {
|
|
79
|
-
lpTokenBasePoolIdDict: lpTokenBasePoolIdDictXLayer,
|
|
80
|
-
basePoolIdZapDict: basePoolIdZapDictXLayer,
|
|
81
|
-
},
|
|
82
|
-
250: {
|
|
83
|
-
lpTokenBasePoolIdDict: lpTokenBasePoolIdDictFantom,
|
|
84
|
-
basePoolIdZapDict: basePoolIdZapDictFantom,
|
|
85
|
-
},
|
|
86
|
-
252: {
|
|
87
|
-
lpTokenBasePoolIdDict: lpTokenBasePoolIdDictFraxtal,
|
|
88
|
-
basePoolIdZapDict: basePoolIdZapDictFraxtal,
|
|
89
|
-
},
|
|
90
|
-
324: {
|
|
91
|
-
lpTokenBasePoolIdDict: lpTokenBasePoolIdDictZkSync,
|
|
92
|
-
basePoolIdZapDict: basePoolIdZapDictZkSync,
|
|
93
|
-
},
|
|
94
|
-
1284: {
|
|
95
|
-
lpTokenBasePoolIdDict: lpTokenBasePoolIdDictMoonbeam,
|
|
96
|
-
basePoolIdZapDict: basePoolIdZapDictMoonbeam,
|
|
97
|
-
},
|
|
98
|
-
2222: {
|
|
99
|
-
lpTokenBasePoolIdDict: lpTokenBasePoolIdDictKava,
|
|
100
|
-
basePoolIdZapDict: basePoolIdZapDictKava,
|
|
101
|
-
},
|
|
102
|
-
5000: {
|
|
103
|
-
lpTokenBasePoolIdDict: lpTokenBasePoolIdDictMantle,
|
|
104
|
-
basePoolIdZapDict: basePoolIdZapDictMantle,
|
|
105
|
-
},
|
|
106
|
-
8453: {
|
|
107
|
-
lpTokenBasePoolIdDict: lpTokenBasePoolIdDictBase,
|
|
108
|
-
basePoolIdZapDict: basePoolIdZapDictBase,
|
|
109
|
-
},
|
|
110
|
-
42220: {
|
|
111
|
-
lpTokenBasePoolIdDict: lpTokenBasePoolIdDictCelo,
|
|
112
|
-
basePoolIdZapDict: basePoolIdZapDictCelo,
|
|
113
|
-
},
|
|
114
|
-
43114: {
|
|
115
|
-
lpTokenBasePoolIdDict: lpTokenBasePoolIdDictAvalanche,
|
|
116
|
-
basePoolIdZapDict: basePoolIdZapDictAvalanche,
|
|
117
|
-
},
|
|
118
|
-
42161: {
|
|
119
|
-
lpTokenBasePoolIdDict: lpTokenBasePoolIdDictArbitrum,
|
|
120
|
-
basePoolIdZapDict: basePoolIdZapDictArbitrum,
|
|
121
|
-
},
|
|
122
|
-
};
|