impermax-sdk 1.0.1 → 1.0.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/esm/abis/ImpermaxABI.d.ts +2 -0
- package/lib/esm/abis/ImpermaxABI.js +3 -0
- package/lib/esm/abis/contracts/ClaimAggregator.json +2015 -0
- package/lib/esm/abis/contracts/IBorrowable.json +13207 -0
- package/lib/esm/abis/contracts/IClaimable.json +406 -0
- package/lib/esm/abis/contracts/ICollateral.json +8952 -0
- package/lib/esm/abis/contracts/IERC20.json +2376 -0
- package/lib/esm/abis/contracts/IFactory.json +3660 -0
- package/lib/esm/abis/contracts/IFarmingPool.json +3584 -0
- package/lib/esm/abis/contracts/IMerkleDistributor.json +1134 -0
- package/lib/esm/abis/contracts/IRouter02.json +7283 -0
- package/lib/esm/abis/contracts/ISimpleUniswapOracle.json +1469 -0
- package/lib/esm/abis/contracts/IStakedLPToken.json +7309 -0
- package/lib/esm/abis/contracts/IStakingRewards.json +1036 -0
- package/lib/esm/abis/contracts/IUniswapV2Factory.json +1690 -0
- package/lib/esm/abis/contracts/IUniswapV2Pair.json +6761 -0
- package/lib/esm/abis/contracts/ImpermaxChef.json +20945 -0
- package/lib/esm/config/amms.d.ts +25 -0
- package/lib/esm/config/amms.js +196 -0
- package/lib/esm/config/contracts/claim-aggregators.d.ts +2 -0
- package/lib/esm/config/contracts/claim-aggregators.js +18 -0
- package/lib/esm/config/contracts/impermax-chef.d.ts +2 -0
- package/lib/esm/config/contracts/impermax-chef.js +18 -0
- package/lib/esm/config/contracts/imxes.d.ts +2 -0
- package/lib/esm/config/contracts/imxes.js +18 -0
- package/lib/esm/config/contracts/merkle-distributors.d.ts +4 -0
- package/lib/esm/config/contracts/merkle-distributors.js +13 -0
- package/lib/esm/config/contracts/routers.d.ts +2 -0
- package/lib/esm/config/contracts/routers.js +38 -0
- package/lib/esm/config/contracts/simple-uniswap-oracles.d.ts +2 -0
- package/lib/esm/config/contracts/simple-uniswap-oracles.js +35 -0
- package/lib/esm/config/contracts/weths.d.ts +2 -0
- package/lib/esm/config/contracts/weths.js +19 -0
- package/lib/esm/config/debank-ids.d.ts +2 -0
- package/lib/esm/config/debank-ids.js +17 -0
- package/lib/esm/config/endpoints/merkle-distributors.d.ts +4 -0
- package/lib/esm/config/endpoints/merkle-distributors.js +13 -0
- package/lib/esm/config/eth.d.ts +3 -0
- package/lib/esm/config/eth.js +32 -0
- package/lib/esm/config/factories.d.ts +6 -0
- package/lib/esm/config/factories.js +24 -0
- package/lib/esm/config/farms.d.ts +59 -0
- package/lib/esm/config/farms.js +114 -0
- package/lib/esm/config/general.d.ts +3 -0
- package/lib/esm/config/general.js +8 -0
- package/lib/esm/config/subgraphs.d.ts +5 -0
- package/lib/esm/config/subgraphs.js +68 -0
- package/lib/esm/config/types.d.ts +67 -0
- package/lib/esm/config/types.js +54 -0
- package/lib/esm/impermax-router/Account.d.ts +31 -0
- package/lib/esm/impermax-router/Account.js +154 -0
- package/lib/esm/impermax-router/AccountBorrowable.d.ts +22 -0
- package/lib/esm/impermax-router/AccountBorrowable.js +141 -0
- package/lib/esm/impermax-router/AccountCollateral.d.ts +11 -0
- package/lib/esm/impermax-router/AccountCollateral.js +63 -0
- package/lib/esm/impermax-router/AccountLendingPool.d.ts +57 -0
- package/lib/esm/impermax-router/AccountLendingPool.js +266 -0
- package/lib/esm/impermax-router/AccountPoolToken.d.ts +29 -0
- package/lib/esm/impermax-router/AccountPoolToken.js +89 -0
- package/lib/esm/impermax-router/Borrowable.d.ts +27 -0
- package/lib/esm/impermax-router/Borrowable.js +128 -0
- package/lib/esm/impermax-router/Collateral.d.ts +9 -0
- package/lib/esm/impermax-router/Collateral.js +45 -0
- package/lib/esm/impermax-router/ContractsHelper.d.ts +28 -0
- package/lib/esm/impermax-router/ContractsHelper.js +50 -0
- package/lib/esm/impermax-router/ImpermaxFactory.d.ts +15 -0
- package/lib/esm/impermax-router/ImpermaxFactory.js +42 -0
- package/lib/esm/impermax-router/Interactions.d.ts +16 -0
- package/lib/esm/impermax-router/Interactions.js +105 -0
- package/lib/esm/impermax-router/InteractionsLendingPool.d.ts +43 -0
- package/lib/esm/impermax-router/InteractionsLendingPool.js +124 -0
- package/lib/esm/impermax-router/InteractionsPoolToken.d.ts +23 -0
- package/lib/esm/impermax-router/InteractionsPoolToken.js +194 -0
- package/lib/esm/impermax-router/LendingPool.d.ts +69 -0
- package/lib/esm/impermax-router/LendingPool.js +291 -0
- package/lib/esm/impermax-router/PoolToken.d.ts +36 -0
- package/lib/esm/impermax-router/PoolToken.js +140 -0
- package/lib/esm/impermax-router/index.d.ts +20 -0
- package/lib/esm/impermax-router/index.js +34 -0
- package/lib/esm/impermax-router/interfaces.d.ts +218 -0
- package/lib/esm/impermax-router/interfaces.js +15 -0
- package/{index.ts → lib/esm/index.d.ts} +1 -3
- package/lib/esm/index.js +10 -0
- package/lib/esm/subgraph/Account.d.ts +18 -0
- package/lib/esm/subgraph/Account.js +111 -0
- package/lib/esm/subgraph/AccountLendingPool.d.ts +19 -0
- package/lib/esm/subgraph/AccountLendingPool.js +71 -0
- package/lib/esm/subgraph/AccountPoolToken.d.ts +14 -0
- package/lib/esm/subgraph/AccountPoolToken.js +75 -0
- package/lib/esm/subgraph/LendingPool.d.ts +38 -0
- package/lib/esm/subgraph/LendingPool.js +204 -0
- package/lib/esm/subgraph/PoolToken.d.ts +64 -0
- package/lib/esm/subgraph/PoolToken.js +462 -0
- package/lib/esm/subgraph/PriceHelper.d.ts +21 -0
- package/lib/esm/subgraph/PriceHelper.js +166 -0
- package/lib/esm/subgraph/SolidexHelper.d.ts +16 -0
- package/lib/esm/subgraph/SolidexHelper.js +58 -0
- package/lib/esm/subgraph/index.d.ts +73 -0
- package/lib/esm/subgraph/index.js +185 -0
- package/lib/esm/subgraph/initializer.d.ts +34 -0
- package/lib/esm/subgraph/initializer.js +517 -0
- package/lib/esm/subgraph/query.d.ts +10 -0
- package/lib/esm/subgraph/query.js +229 -0
- package/lib/esm/utils/ether-utils.d.ts +5 -0
- package/lib/esm/utils/ether-utils.js +26 -0
- package/lib/esm/utils/index.d.ts +3 -0
- package/lib/esm/utils/index.js +16 -0
- package/package.json +9 -3
- package/.idea/impermax-sdk.iml +0 -12
- package/.idea/misc.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/workspace.xml +0 -642
- package/abis/ImpermaxABI.ts +0 -3
- package/abis/contracts/BAllowance.json +0 -4735
- package/abis/contracts/BDeployer.json +0 -1195
- package/abis/contracts/BInterestRateModel.json +0 -10796
- package/abis/contracts/BSetter.json +0 -6219
- package/abis/contracts/BStorage.json +0 -2613
- package/abis/contracts/Borrowable.json +0 -19937
- package/abis/contracts/CDeployer.json +0 -1104
- package/abis/contracts/CSetter.json +0 -5094
- package/abis/contracts/CStorage.json +0 -516
- package/abis/contracts/ClaimAggregator.json +0 -2015
- package/abis/contracts/Collateral.json +0 -21615
- package/abis/contracts/ERC20.json +0 -819
- package/abis/contracts/Factory.json +0 -21986
- package/abis/contracts/FarmingPool.json +0 -8601
- package/abis/contracts/IBDeployer.json +0 -351
- package/abis/contracts/IBorrowTracker.json +0 -346
- package/abis/contracts/IBorrowable.json +0 -13207
- package/abis/contracts/ICDeployer.json +0 -294
- package/abis/contracts/IClaimable.json +0 -406
- package/abis/contracts/ICollateral.json +0 -8952
- package/abis/contracts/IERC20.json +0 -2376
- package/abis/contracts/IFactory.json +0 -3660
- package/abis/contracts/IFarmingPool.json +0 -3584
- package/abis/contracts/IImpermaxCallee.json +0 -679
- package/abis/contracts/IMerkleDistributor.json +0 -1134
- package/abis/contracts/IPoolToken.json +0 -5343
- package/abis/contracts/IRouter01.json +0 -6891
- package/abis/contracts/IRouter02.json +0 -7283
- package/abis/contracts/ISimpleUniswapOracle.json +0 -1469
- package/abis/contracts/IStakedLPToken.json +0 -7309
- package/abis/contracts/IStakingRewards.json +0 -1036
- package/abis/contracts/IUniswapV2Callee.json +0 -403
- package/abis/contracts/IUniswapV2ERC20.json +0 -3155
- package/abis/contracts/IUniswapV2Factory.json +0 -1690
- package/abis/contracts/IUniswapV2Pair.json +0 -6761
- package/abis/contracts/IWETH.json +0 -561
- package/abis/contracts/ImpermaxChef.json +0 -20945
- package/abis/contracts/ImpermaxERC20.json +0 -12095
- package/abis/contracts/Math.json +0 -1966
- package/abis/contracts/MockERC20.json +0 -8884
- package/abis/contracts/PoolToken.json +0 -10784
- package/abis/contracts/Router01.json +0 -43963
- package/abis/contracts/SafeMath.json +0 -6828
- package/abis/contracts/SimpleUniswapOracle.json +0 -9640
- package/abis/contracts/TransferHelper.json +0 -4875
- package/abis/contracts/UQ112x112.json +0 -1201
- package/abis/contracts/UniswapV2ERC20.json +0 -10969
- package/abis/contracts/UniswapV2Factory.json +0 -5521
- package/abis/contracts/UniswapV2Library.json +0 -13789
- package/abis/contracts/UniswapV2Pair.json +0 -30782
- package/abis/contracts/WETH9.json +0 -6613
- package/config/amms.ts +0 -199
- package/config/contracts/claim-aggregators.ts +0 -16
- package/config/contracts/impermax-chef.ts +0 -16
- package/config/contracts/imxes.ts +0 -16
- package/config/contracts/merkle-distributors.ts +0 -13
- package/config/contracts/routers.ts +0 -36
- package/config/contracts/simple-uniswap-oracles.ts +0 -33
- package/config/contracts/weths.ts +0 -18
- package/config/debank-ids.ts +0 -15
- package/config/endpoints/merkle-distributors.ts +0 -13
- package/config/eth.ts +0 -32
- package/config/factories.ts +0 -26
- package/config/farms.ts +0 -119
- package/config/general.ts +0 -8
- package/config/subgraphs.ts +0 -69
- package/config/types.ts +0 -81
- package/impermax-router/Account.ts +0 -123
- package/impermax-router/AccountBorrowable.ts +0 -110
- package/impermax-router/AccountCollateral.ts +0 -40
- package/impermax-router/AccountLendingPool.ts +0 -231
- package/impermax-router/AccountPoolToken.ts +0 -76
- package/impermax-router/Borrowable.ts +0 -86
- package/impermax-router/Collateral.ts +0 -26
- package/impermax-router/ContractsHelper.ts +0 -64
- package/impermax-router/ImpermaxFactory.ts +0 -47
- package/impermax-router/Interactions.ts +0 -94
- package/impermax-router/InteractionsLendingPool.ts +0 -129
- package/impermax-router/InteractionsPoolToken.ts +0 -187
- package/impermax-router/LendingPool.ts +0 -256
- package/impermax-router/PoolToken.ts +0 -112
- package/impermax-router/index.ts +0 -49
- package/impermax-router/interfaces.ts +0 -233
- package/subgraph/Account.ts +0 -93
- package/subgraph/AccountLendingPool.ts +0 -60
- package/subgraph/AccountPoolToken.ts +0 -60
- package/subgraph/LendingPool.ts +0 -179
- package/subgraph/PoolToken.ts +0 -381
- package/subgraph/PriceHelper.ts +0 -150
- package/subgraph/SolidexHelper.ts +0 -54
- package/subgraph/index.ts +0 -166
- package/subgraph/initializer.ts +0 -509
- package/subgraph/query.ts +0 -224
- package/tsconfig.json +0 -16
- package/utils/ether-utils.ts +0 -22
- package/utils/index.ts +0 -12
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Address, AmmIndex, Amms, Networks } from './types';
|
|
2
|
+
export declare const hrAmms: {
|
|
3
|
+
uniswap: string;
|
|
4
|
+
quickswap: string;
|
|
5
|
+
sushiswap: string;
|
|
6
|
+
swapr: string;
|
|
7
|
+
swapfish: string;
|
|
8
|
+
zyberswap: string;
|
|
9
|
+
pangolin: string;
|
|
10
|
+
traderJoe: string;
|
|
11
|
+
solarbeam: string;
|
|
12
|
+
thorus: string;
|
|
13
|
+
tetuswap: string;
|
|
14
|
+
solidly: string;
|
|
15
|
+
solidlyB: string;
|
|
16
|
+
solidlyUSDC: string;
|
|
17
|
+
solidlyUSDCB: string;
|
|
18
|
+
solidly091: string;
|
|
19
|
+
solidlyOxd: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const AMM_FACTORY: AmmIndex;
|
|
22
|
+
export declare function getAmmByFactory(network: Networks, address: Address): Amms;
|
|
23
|
+
export declare const AMM_SUBGRAPH_URLS: AmmIndex;
|
|
24
|
+
export declare const ADD_LIQUIDITY_URLS: AmmIndex;
|
|
25
|
+
export declare const AMM_LP_FEE: AmmIndex;
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AMM_LP_FEE = exports.ADD_LIQUIDITY_URLS = exports.AMM_SUBGRAPH_URLS = exports.getAmmByFactory = exports.AMM_FACTORY = exports.hrAmms = void 0;
|
|
4
|
+
const types_1 = require("./types");
|
|
5
|
+
exports.hrAmms = {
|
|
6
|
+
[types_1.Amms.uniswap]: 'Uniswap',
|
|
7
|
+
[types_1.Amms.quickswap]: 'QuickSwap',
|
|
8
|
+
[types_1.Amms.sushiswap]: 'SushiSwap',
|
|
9
|
+
[types_1.Amms.swapr]: 'Swapr',
|
|
10
|
+
[types_1.Amms.swapfish]: 'SwapFish',
|
|
11
|
+
[types_1.Amms.zyberswap]: 'ZyberSwap',
|
|
12
|
+
[types_1.Amms.pangolin]: 'Pangolin',
|
|
13
|
+
[types_1.Amms.traderJoe]: 'TraderJoe',
|
|
14
|
+
[types_1.Amms.solarbeam]: 'Solarbeam',
|
|
15
|
+
[types_1.Amms.thorus]: 'Thorus',
|
|
16
|
+
[types_1.Amms.tetuswap]: 'TetuSwap',
|
|
17
|
+
[types_1.Amms.solidly]: 'Solidly',
|
|
18
|
+
[types_1.Amms.solidlyB]: 'Solidly',
|
|
19
|
+
[types_1.Amms.solidlyUSDC]: 'Solidly',
|
|
20
|
+
[types_1.Amms.solidlyUSDCB]: 'Solidly',
|
|
21
|
+
[types_1.Amms.solidly091]: 'Solidly',
|
|
22
|
+
[types_1.Amms.solidlyOxd]: 'Solidly',
|
|
23
|
+
};
|
|
24
|
+
exports.AMM_FACTORY = {
|
|
25
|
+
[types_1.Networks.Ropsten]: {
|
|
26
|
+
[types_1.Amms.uniswap]: '0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f',
|
|
27
|
+
},
|
|
28
|
+
[types_1.Networks.Mainnet]: {
|
|
29
|
+
[types_1.Amms.uniswap]: '0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f',
|
|
30
|
+
},
|
|
31
|
+
[types_1.Networks.Polygon]: {
|
|
32
|
+
[types_1.Amms.quickswap]: '0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32',
|
|
33
|
+
[types_1.Amms.sushiswap]: '0xc35dadb65012ec5796536bd9864ed8773abc74c4',
|
|
34
|
+
[types_1.Amms.tetuswap]: '0x684d8c187be836171a1Af8D533e4724893031828',
|
|
35
|
+
},
|
|
36
|
+
[types_1.Networks.Arbitrum]: {
|
|
37
|
+
[types_1.Amms.sushiswap]: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
|
|
38
|
+
[types_1.Amms.swapr]: '0x359F20Ad0F42D75a5077e65F30274cABe6f4F01a',
|
|
39
|
+
[types_1.Amms.swapfish]: '0x71539D09D3890195dDa87A6198B98B75211b72F3',
|
|
40
|
+
[types_1.Amms.zyberswap]: '0xac2ee06a14c52570ef3b9812ed240bce359772e7',
|
|
41
|
+
},
|
|
42
|
+
[types_1.Networks.Avalanche]: {
|
|
43
|
+
[types_1.Amms.pangolin]: '0xefa94DE7a4656D787667C749f7E1223D71E9FD88',
|
|
44
|
+
[types_1.Amms.traderJoe]: '0x9Ad6C38BE94206cA50bb0d90783181662f0Cfa10',
|
|
45
|
+
[types_1.Amms.thorus]: '0xa98ea6356A316b44Bf710D5f9b6b4eA0081409Ef',
|
|
46
|
+
},
|
|
47
|
+
[types_1.Networks.Moonriver]: {
|
|
48
|
+
[types_1.Amms.sushiswap]: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
|
|
49
|
+
[types_1.Amms.solarbeam]: '0x049581aEB6Fe262727f290165C29BDAB065a1B68',
|
|
50
|
+
},
|
|
51
|
+
[types_1.Networks.Aurora]: {},
|
|
52
|
+
[types_1.Networks.Cronos]: {},
|
|
53
|
+
[types_1.Networks.Fantom]: {
|
|
54
|
+
[types_1.Amms.solidly]: '0x95887654d8646c26fab33f344576e2e74b211256',
|
|
55
|
+
[types_1.Amms.solidlyB]: '0x8610Dc1912a55761a713D827a1a1ad131bE8f579',
|
|
56
|
+
[types_1.Amms.solidlyUSDC]: '0xF14f98E6F34C12Bd74fcEAC1668aF749fc269cFf',
|
|
57
|
+
[types_1.Amms.solidlyUSDCB]: '0x9B1434a02Ee86302d463bB6B365EbdFAc56e067A',
|
|
58
|
+
[types_1.Amms.solidly091]: '0xdc4baf3b4b1df79083eedf3e46ec2c4ec1296f60',
|
|
59
|
+
[types_1.Amms.solidlyOxd]: '0xB83D21F60B73B21506c69DEcdBcF7Ab5AB737eB2', //NOTICE: this is actually the staked LP factory
|
|
60
|
+
},
|
|
61
|
+
[types_1.Networks.Harmony]: {},
|
|
62
|
+
[types_1.Networks.Moonbeam]: {},
|
|
63
|
+
[types_1.Networks.Sxnetwork]: {},
|
|
64
|
+
};
|
|
65
|
+
function getAmmByFactory(network, address) {
|
|
66
|
+
if (!address)
|
|
67
|
+
return null;
|
|
68
|
+
for (const amm of Object.keys(types_1.Amms)) {
|
|
69
|
+
if (exports.AMM_FACTORY[network][amm] &&
|
|
70
|
+
address.toLowerCase() == exports.AMM_FACTORY[network][amm].toLowerCase())
|
|
71
|
+
return amm;
|
|
72
|
+
}
|
|
73
|
+
return null;
|
|
74
|
+
}
|
|
75
|
+
exports.getAmmByFactory = getAmmByFactory;
|
|
76
|
+
exports.AMM_SUBGRAPH_URLS = {
|
|
77
|
+
[types_1.Networks.Ropsten]: {},
|
|
78
|
+
[types_1.Networks.Mainnet]: {
|
|
79
|
+
[types_1.Amms.uniswap]: 'https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2',
|
|
80
|
+
},
|
|
81
|
+
[types_1.Networks.Polygon]: {
|
|
82
|
+
[types_1.Amms.quickswap]: 'https://api.fura.org/subgraphs/name/quickswap',
|
|
83
|
+
[types_1.Amms.sushiswap]: 'https://api.thegraph.com/subgraphs/name/sushiswap/matic-exchange',
|
|
84
|
+
[types_1.Amms.tetuswap]: 'https://api.thegraph.com/subgraphs/name/tetu-io/tetu-swap',
|
|
85
|
+
},
|
|
86
|
+
[types_1.Networks.Arbitrum]: {
|
|
87
|
+
[types_1.Amms.sushiswap]: 'https://api.thegraph.com/subgraphs/name/sushiswap/arbitrum-exchange',
|
|
88
|
+
[types_1.Amms.swapr]: 'https://api.thegraph.com/subgraphs/name/luzzif/swapr-arbitrum-one-v2',
|
|
89
|
+
[types_1.Amms.zyberswap]: 'https://api.thegraph.com/subgraphs/name/zyberswap-arbitrum/zyber-amm',
|
|
90
|
+
//[Amms.swapfish]: 'https://bsc.streamingfast.io/subgraphs/name/pancakeswap/exchange-v2',
|
|
91
|
+
},
|
|
92
|
+
[types_1.Networks.Avalanche]: {
|
|
93
|
+
[types_1.Amms.pangolin]: 'https://api.thegraph.com/subgraphs/name/dasconnor/pangolin-dex',
|
|
94
|
+
[types_1.Amms.traderJoe]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/exchange',
|
|
95
|
+
[types_1.Amms.thorus]: '',
|
|
96
|
+
},
|
|
97
|
+
[types_1.Networks.Moonriver]: {
|
|
98
|
+
[types_1.Amms.sushiswap]: 'https://api.thegraph.com/subgraphs/name/sushiswap/moonriver-exchange',
|
|
99
|
+
[types_1.Amms.solarbeam]: 'https://analytics.solarbeam.io/api/subgraph',
|
|
100
|
+
},
|
|
101
|
+
[types_1.Networks.Aurora]: {},
|
|
102
|
+
[types_1.Networks.Cronos]: {},
|
|
103
|
+
[types_1.Networks.Fantom]: {
|
|
104
|
+
[types_1.Amms.solidly]: 'https://api.thegraph.com/subgraphs/name/spartacus-finance/solidly',
|
|
105
|
+
[types_1.Amms.solidlyB]: 'https://api.thegraph.com/subgraphs/name/spartacus-finance/solidly',
|
|
106
|
+
[types_1.Amms.solidlyUSDC]: 'https://api.thegraph.com/subgraphs/name/spartacus-finance/solidly',
|
|
107
|
+
[types_1.Amms.solidlyUSDCB]: 'https://api.thegraph.com/subgraphs/name/spartacus-finance/solidly',
|
|
108
|
+
[types_1.Amms.solidly091]: 'https://api.thegraph.com/subgraphs/name/spartacus-finance/solidly',
|
|
109
|
+
[types_1.Amms.solidlyOxd]: 'https://api.thegraph.com/subgraphs/name/spartacus-finance/solidly',
|
|
110
|
+
},
|
|
111
|
+
[types_1.Networks.Harmony]: {},
|
|
112
|
+
[types_1.Networks.Moonbeam]: {},
|
|
113
|
+
[types_1.Networks.Sxnetwork]: {},
|
|
114
|
+
};
|
|
115
|
+
exports.ADD_LIQUIDITY_URLS = {
|
|
116
|
+
[types_1.Networks.Ropsten]: {
|
|
117
|
+
[types_1.Amms.uniswap]: 'https://app.uniswap.org/#/add/V2/',
|
|
118
|
+
},
|
|
119
|
+
[types_1.Networks.Mainnet]: {
|
|
120
|
+
[types_1.Amms.uniswap]: 'https://app.uniswap.org/#/add/V2/',
|
|
121
|
+
},
|
|
122
|
+
[types_1.Networks.Polygon]: {
|
|
123
|
+
[types_1.Amms.quickswap]: 'https://quickswap.exchange/#/add/',
|
|
124
|
+
[types_1.Amms.sushiswap]: 'https://app.sushi.com/legacy/add/',
|
|
125
|
+
[types_1.Amms.tetuswap]: 'https://swap.tetu.io/#/add/',
|
|
126
|
+
},
|
|
127
|
+
[types_1.Networks.Arbitrum]: {
|
|
128
|
+
[types_1.Amms.sushiswap]: 'https://app.sushi.com/legacy/add/',
|
|
129
|
+
[types_1.Amms.swapr]: 'https://swapr.eth.link/#/add/',
|
|
130
|
+
[types_1.Amms.swapfish]: 'https://swapfish.fi/add/',
|
|
131
|
+
[types_1.Amms.zyberswap]: 'https://app.zyberswap.io/exchange/add/',
|
|
132
|
+
},
|
|
133
|
+
[types_1.Networks.Avalanche]: {
|
|
134
|
+
[types_1.Amms.pangolin]: 'https://app.pangolin.exchange/#/add/',
|
|
135
|
+
[types_1.Amms.traderJoe]: 'https://www.traderjoexyz.com/#/pool/',
|
|
136
|
+
[types_1.Amms.thorus]: 'https://app.thorus.fi/add/',
|
|
137
|
+
},
|
|
138
|
+
[types_1.Networks.Moonriver]: {
|
|
139
|
+
[types_1.Amms.sushiswap]: 'https://app.sushi.com/legacy/add/',
|
|
140
|
+
[types_1.Amms.solarbeam]: 'https://app.solarbeam.io/exchange/add/',
|
|
141
|
+
},
|
|
142
|
+
[types_1.Networks.Aurora]: {},
|
|
143
|
+
[types_1.Networks.Cronos]: {},
|
|
144
|
+
[types_1.Networks.Fantom]: {
|
|
145
|
+
[types_1.Amms.solidly]: 'https://solidly.exchange/liquidity/create',
|
|
146
|
+
[types_1.Amms.solidlyB]: 'https://solidly.exchange/liquidity/create',
|
|
147
|
+
[types_1.Amms.solidlyUSDC]: 'https://solidly.exchange/liquidity/create',
|
|
148
|
+
[types_1.Amms.solidlyUSDCB]: 'https://solidly.exchange/liquidity/create',
|
|
149
|
+
[types_1.Amms.solidly091]: 'https://solidly.exchange/liquidity/create',
|
|
150
|
+
[types_1.Amms.solidlyOxd]: 'https://solidly.exchange/liquidity/create',
|
|
151
|
+
},
|
|
152
|
+
[types_1.Networks.Harmony]: {},
|
|
153
|
+
[types_1.Networks.Moonbeam]: {},
|
|
154
|
+
[types_1.Networks.Sxnetwork]: {},
|
|
155
|
+
};
|
|
156
|
+
exports.AMM_LP_FEE = {
|
|
157
|
+
[types_1.Networks.Ropsten]: {
|
|
158
|
+
[types_1.Amms.uniswap]: 0.003,
|
|
159
|
+
},
|
|
160
|
+
[types_1.Networks.Mainnet]: {
|
|
161
|
+
[types_1.Amms.uniswap]: 0.003,
|
|
162
|
+
},
|
|
163
|
+
[types_1.Networks.Polygon]: {
|
|
164
|
+
[types_1.Amms.quickswap]: 0.0025,
|
|
165
|
+
[types_1.Amms.sushiswap]: 0.0025,
|
|
166
|
+
[types_1.Amms.tetuswap]: 0,
|
|
167
|
+
},
|
|
168
|
+
[types_1.Networks.Arbitrum]: {
|
|
169
|
+
[types_1.Amms.sushiswap]: 0.0025,
|
|
170
|
+
[types_1.Amms.swapr]: 0.00225,
|
|
171
|
+
[types_1.Amms.swapfish]: 0.0017,
|
|
172
|
+
[types_1.Amms.zyberswap]: 0.0015,
|
|
173
|
+
},
|
|
174
|
+
[types_1.Networks.Avalanche]: {
|
|
175
|
+
[types_1.Amms.pangolin]: 0.0025,
|
|
176
|
+
[types_1.Amms.traderJoe]: 0.0025,
|
|
177
|
+
[types_1.Amms.thorus]: 0,
|
|
178
|
+
},
|
|
179
|
+
[types_1.Networks.Moonriver]: {
|
|
180
|
+
[types_1.Amms.sushiswap]: 0.0025,
|
|
181
|
+
[types_1.Amms.solarbeam]: 0.002,
|
|
182
|
+
},
|
|
183
|
+
[types_1.Networks.Aurora]: {},
|
|
184
|
+
[types_1.Networks.Cronos]: {},
|
|
185
|
+
[types_1.Networks.Fantom]: {
|
|
186
|
+
[types_1.Amms.solidly]: 0,
|
|
187
|
+
[types_1.Amms.solidlyB]: 0,
|
|
188
|
+
[types_1.Amms.solidlyUSDC]: 0,
|
|
189
|
+
[types_1.Amms.solidlyUSDCB]: 0,
|
|
190
|
+
[types_1.Amms.solidly091]: 0,
|
|
191
|
+
[types_1.Amms.solidlyOxd]: 0,
|
|
192
|
+
},
|
|
193
|
+
[types_1.Networks.Harmony]: {},
|
|
194
|
+
[types_1.Networks.Moonbeam]: {},
|
|
195
|
+
[types_1.Networks.Sxnetwork]: {},
|
|
196
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CLAIM_AGGREGATOR = void 0;
|
|
4
|
+
const types_1 = require("../types");
|
|
5
|
+
exports.CLAIM_AGGREGATOR = {
|
|
6
|
+
[types_1.Networks.Ropsten]: '0x2078270ae9956f1298f8bfd8be43306bbd4ab551',
|
|
7
|
+
[types_1.Networks.Mainnet]: '0x5287cac629be59997602b4177cb4420165264b69',
|
|
8
|
+
[types_1.Networks.Polygon]: '0x718Cd1D06094b53de74dE745c4EAD3AC629a0c98',
|
|
9
|
+
[types_1.Networks.Arbitrum]: '0x95887654d8646C26fAb33F344576E2E74b211256',
|
|
10
|
+
[types_1.Networks.Avalanche]: '0x5e169082fFf23cEE6766062B96051A78c543127D',
|
|
11
|
+
[types_1.Networks.Moonriver]: '0x772a82D27b1024e9072aE33dCEd3C0DF1FbDA66e',
|
|
12
|
+
[types_1.Networks.Aurora]: '',
|
|
13
|
+
[types_1.Networks.Cronos]: '',
|
|
14
|
+
[types_1.Networks.Fantom]: '',
|
|
15
|
+
[types_1.Networks.Harmony]: '',
|
|
16
|
+
[types_1.Networks.Moonbeam]: '',
|
|
17
|
+
[types_1.Networks.Sxnetwork]: '',
|
|
18
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IMPERMAX_CHEF = void 0;
|
|
4
|
+
const types_1 = require("../types");
|
|
5
|
+
exports.IMPERMAX_CHEF = {
|
|
6
|
+
[types_1.Networks.Ropsten]: '',
|
|
7
|
+
[types_1.Networks.Mainnet]: '',
|
|
8
|
+
[types_1.Networks.Polygon]: '0x89703cA5c6C3BD35f9D288Ff9710BecBFA8C6f7b',
|
|
9
|
+
[types_1.Networks.Arbitrum]: '0x99CF05461dd5F94761d4Fae6a2abDa47A93451f5',
|
|
10
|
+
[types_1.Networks.Avalanche]: '0x5475aEd9d11BeaA822e122C36ACDfa0dA2eb086f',
|
|
11
|
+
[types_1.Networks.Moonriver]: '0xD299D53Fc3B09038765af2091a0647e2304a7caa',
|
|
12
|
+
[types_1.Networks.Aurora]: '',
|
|
13
|
+
[types_1.Networks.Cronos]: '',
|
|
14
|
+
[types_1.Networks.Fantom]: '0x19D8a5Abbd08E8Cf6aA9b2df46A04D13CCB7E3b4',
|
|
15
|
+
[types_1.Networks.Harmony]: '',
|
|
16
|
+
[types_1.Networks.Moonbeam]: '',
|
|
17
|
+
[types_1.Networks.Sxnetwork]: '',
|
|
18
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IMX = void 0;
|
|
4
|
+
const types_1 = require("../types");
|
|
5
|
+
exports.IMX = {
|
|
6
|
+
[types_1.Networks.Ropsten]: '0x6659a9c5cd313974343e30b4fdffd95bd4b4dcd2',
|
|
7
|
+
[types_1.Networks.Mainnet]: '0x7b35ce522cb72e4077baeb96cb923a5529764a00',
|
|
8
|
+
[types_1.Networks.Polygon]: '0x60bb3d364b765c497c8ce50ae0ae3f0882c5bd05',
|
|
9
|
+
[types_1.Networks.Arbitrum]: '0x9c67ee39e3c4954396b9142010653f17257dd39c',
|
|
10
|
+
[types_1.Networks.Avalanche]: '0xea6887e4a9cda1b77e70129e5fba830cdb5cddef',
|
|
11
|
+
[types_1.Networks.Moonriver]: '0x900f1Ec5819FA087d368877cD03B265Bf1802667',
|
|
12
|
+
[types_1.Networks.Aurora]: '',
|
|
13
|
+
[types_1.Networks.Cronos]: '',
|
|
14
|
+
[types_1.Networks.Fantom]: '0xea38f1ccf77bf43f352636241b05dd8f6f5f52b2',
|
|
15
|
+
[types_1.Networks.Harmony]: '0xbd8064cdb96c00a73540922504f989c64b7b8b96',
|
|
16
|
+
[types_1.Networks.Moonbeam]: '',
|
|
17
|
+
[types_1.Networks.Sxnetwork]: '',
|
|
18
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MERKLE_DISTRIBUTOR_ETH = exports.MERKLE_DISTRIBUTOR_IBEX_2 = exports.MERKLE_DISTRIBUTOR_IBEX = void 0;
|
|
4
|
+
const types_1 = require("../types");
|
|
5
|
+
exports.MERKLE_DISTRIBUTOR_IBEX = {
|
|
6
|
+
[types_1.Networks.Polygon]: '0x9c7213207b5f8726164c96a76a4b9c0fbf984aba',
|
|
7
|
+
};
|
|
8
|
+
exports.MERKLE_DISTRIBUTOR_IBEX_2 = {
|
|
9
|
+
[types_1.Networks.Polygon]: '0x1c813cDd6dAecE2CB83C52F0798504e42816E9C5',
|
|
10
|
+
};
|
|
11
|
+
exports.MERKLE_DISTRIBUTOR_ETH = {
|
|
12
|
+
[types_1.Networks.Polygon]: '0x7ce2f634f0698ecdca051ef1dc4be96ef3d05a62',
|
|
13
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ROUTER = void 0;
|
|
4
|
+
const types_1 = require("../types");
|
|
5
|
+
exports.ROUTER = {
|
|
6
|
+
[types_1.Networks.Ropsten]: {
|
|
7
|
+
[types_1.Factory.V2V1]: '0xbFf4acF789297A8507Eb7493AE18EB2C3A3A9632'
|
|
8
|
+
},
|
|
9
|
+
[types_1.Networks.Mainnet]: {
|
|
10
|
+
[types_1.Factory.V2V1]: '0x5e169082fff23cee6766062b96051a78c543127d'
|
|
11
|
+
},
|
|
12
|
+
[types_1.Networks.Polygon]: {
|
|
13
|
+
[types_1.Factory.V2V1_1]: '0x7C79A1c2152665273ebD50e9E88d92A887a83BA0',
|
|
14
|
+
[types_1.Factory.V2V2]: '0x4e69Cf49FF3aF82eFe304a3C723556efB7434736',
|
|
15
|
+
},
|
|
16
|
+
[types_1.Networks.Arbitrum]: {
|
|
17
|
+
[types_1.Factory.V2V1_1]: '0x5475aEd9d11BeaA822e122C36ACDfa0dA2eb086f',
|
|
18
|
+
[types_1.Factory.V2V2]: '0xaf82ee9246a608484e8567fadbef64ac1b8a87ab',
|
|
19
|
+
},
|
|
20
|
+
[types_1.Networks.Avalanche]: {
|
|
21
|
+
[types_1.Factory.V2V1_2]: '0x3039C26F9126833bAca8EdBF61c761CD909F461f',
|
|
22
|
+
[types_1.Factory.V2V2]: '0xaf82ee9246a608484e8567fadbef64ac1b8a87ab',
|
|
23
|
+
},
|
|
24
|
+
[types_1.Networks.Moonriver]: {
|
|
25
|
+
[types_1.Factory.V2V1_2]: '0x3271cc175577465691e48196955e09d638fa05d5',
|
|
26
|
+
},
|
|
27
|
+
[types_1.Networks.Aurora]: {
|
|
28
|
+
[types_1.Factory.V2V1_2]: '0xBB92270716C8c424849F17cCc12F4F24AD4064D6',
|
|
29
|
+
},
|
|
30
|
+
[types_1.Networks.Cronos]: {},
|
|
31
|
+
[types_1.Networks.Fantom]: {
|
|
32
|
+
[types_1.Factory.SOLV1_2]: '0xB9f3413e206F1D658D4DaFB233873dDe56cf94Fc',
|
|
33
|
+
[types_1.Factory.SOLV2]: '0xc75094b5cE53C050816A446701B0D69101c40937',
|
|
34
|
+
},
|
|
35
|
+
[types_1.Networks.Harmony]: {},
|
|
36
|
+
[types_1.Networks.Moonbeam]: {},
|
|
37
|
+
[types_1.Networks.Sxnetwork]: {},
|
|
38
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SIMPLE_UNISWAP_ORACLE = void 0;
|
|
4
|
+
const types_1 = require("../types");
|
|
5
|
+
exports.SIMPLE_UNISWAP_ORACLE = {
|
|
6
|
+
[types_1.Networks.Ropsten]: {
|
|
7
|
+
[types_1.Factory.V2V1]: '0xc53bb18028feA1B413057e2b2474F9838c465Fc3'
|
|
8
|
+
},
|
|
9
|
+
[types_1.Networks.Mainnet]: {
|
|
10
|
+
[types_1.Factory.V2V1]: '0x5671B249391cA5E6a8FE28CEb1e85Dc41c12Ba7D'
|
|
11
|
+
},
|
|
12
|
+
[types_1.Networks.Polygon]: {
|
|
13
|
+
[types_1.Factory.V2V1_1]: '0x3271CC175577465691E48196955e09d638Fa05D5',
|
|
14
|
+
[types_1.Factory.V2V2]: '0x3271CC175577465691E48196955e09d638Fa05D5',
|
|
15
|
+
},
|
|
16
|
+
[types_1.Networks.Arbitrum]: {
|
|
17
|
+
[types_1.Factory.V2V1_1]: '0x5671B249391cA5E6a8FE28CEb1e85Dc41c12Ba7D',
|
|
18
|
+
[types_1.Factory.V2V2]: '0x9c7213207b5f8726164c96a76a4b9c0fbf984aba',
|
|
19
|
+
},
|
|
20
|
+
[types_1.Networks.Avalanche]: {
|
|
21
|
+
[types_1.Factory.V2V1_2]: '0xC12E00DE204d58eAd5B5cE9054E94aeE7747fB6C',
|
|
22
|
+
[types_1.Factory.V2V2]: '0x9c7213207b5f8726164c96a76a4b9c0fbf984aba',
|
|
23
|
+
},
|
|
24
|
+
[types_1.Networks.Moonriver]: {
|
|
25
|
+
[types_1.Factory.V2V1_2]: '0x5671B249391cA5E6a8FE28CEb1e85Dc41c12Ba7D'
|
|
26
|
+
},
|
|
27
|
+
[types_1.Networks.Aurora]: {
|
|
28
|
+
[types_1.Factory.V2V1_2]: '0x5671B249391cA5E6a8FE28CEb1e85Dc41c12Ba7D'
|
|
29
|
+
},
|
|
30
|
+
[types_1.Networks.Cronos]: {},
|
|
31
|
+
[types_1.Networks.Fantom]: {},
|
|
32
|
+
[types_1.Networks.Harmony]: {},
|
|
33
|
+
[types_1.Networks.Moonbeam]: {},
|
|
34
|
+
[types_1.Networks.Sxnetwork]: {},
|
|
35
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WETH = void 0;
|
|
4
|
+
const types_1 = require("../types");
|
|
5
|
+
exports.WETH = {
|
|
6
|
+
[types_1.Networks.Ropsten]: '0xc778417E063141139Fce010982780140Aa0cD5Ab',
|
|
7
|
+
[types_1.Networks.Mainnet]: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
|
|
8
|
+
[types_1.Networks.Polygon]: '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270',
|
|
9
|
+
[types_1.Networks.Arbitrum]: '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1',
|
|
10
|
+
[types_1.Networks.Avalanche]: '0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7',
|
|
11
|
+
//[Networks.Moonriver]: '0xf50225a84382c74cbdea10b0c176f71fc3de0c4d', // WMOVR
|
|
12
|
+
[types_1.Networks.Moonriver]: '0x98878b06940ae243284ca214f92bb71a2b032b8a',
|
|
13
|
+
[types_1.Networks.Aurora]: '0xC9BdeEd33CD01541e1eeD10f90519d2C06Fe3feB',
|
|
14
|
+
[types_1.Networks.Cronos]: '0x5c7f8a570d578ed84e63fdfa7b1ee72deae1ae23',
|
|
15
|
+
[types_1.Networks.Fantom]: '0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83',
|
|
16
|
+
[types_1.Networks.Harmony]: '0xcf664087a5bb0237a0bad6742852ec6c8d69a27a',
|
|
17
|
+
[types_1.Networks.Moonbeam]: '0xacc15dc74880c9944775448304b263d191c6077f',
|
|
18
|
+
[types_1.Networks.Sxnetwork]: '0xacc15dc74880c9944775448304b263d191c6077f', // WGLMR
|
|
19
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DEBANK_IDS = void 0;
|
|
4
|
+
const types_1 = require("./types");
|
|
5
|
+
exports.DEBANK_IDS = {
|
|
6
|
+
[types_1.Networks.Ropsten]: '',
|
|
7
|
+
[types_1.Networks.Mainnet]: 'eth',
|
|
8
|
+
[types_1.Networks.Polygon]: 'matic',
|
|
9
|
+
[types_1.Networks.Arbitrum]: 'arb',
|
|
10
|
+
[types_1.Networks.Avalanche]: 'avax',
|
|
11
|
+
[types_1.Networks.Moonriver]: 'movr',
|
|
12
|
+
[types_1.Networks.Fantom]: 'ftm',
|
|
13
|
+
[types_1.Networks.Cronos]: 'cro',
|
|
14
|
+
[types_1.Networks.Aurora]: '',
|
|
15
|
+
[types_1.Networks.Harmony]: '',
|
|
16
|
+
[types_1.Networks.Moonbeam]: '',
|
|
17
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MERKLE_URL_ETH = exports.MERKLE_URL_IBEX_2 = exports.MERKLE_URL_IBEX = void 0;
|
|
4
|
+
const types_1 = require("../types");
|
|
5
|
+
exports.MERKLE_URL_IBEX = {
|
|
6
|
+
[types_1.Networks.Polygon]: 'https://falling-tooth-1f6f.impermax.workers.dev',
|
|
7
|
+
};
|
|
8
|
+
exports.MERKLE_URL_IBEX_2 = {
|
|
9
|
+
[types_1.Networks.Polygon]: 'https://misty-rice-9880.impermax.workers.dev',
|
|
10
|
+
};
|
|
11
|
+
exports.MERKLE_URL_ETH = {
|
|
12
|
+
[types_1.Networks.Polygon]: 'https://damp-hill-13d0.impermax.workers.dev',
|
|
13
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ETH_SYMBOL = exports.ETH_NAME = void 0;
|
|
4
|
+
const types_1 = require("./types");
|
|
5
|
+
exports.ETH_NAME = {
|
|
6
|
+
[types_1.Networks.Ropsten]: 'Ethereum',
|
|
7
|
+
[types_1.Networks.Mainnet]: 'Ethereum',
|
|
8
|
+
[types_1.Networks.Polygon]: 'Polygon',
|
|
9
|
+
[types_1.Networks.Arbitrum]: 'Ethereum',
|
|
10
|
+
[types_1.Networks.Avalanche]: 'Avalanche',
|
|
11
|
+
[types_1.Networks.Moonriver]: 'Moonriver',
|
|
12
|
+
[types_1.Networks.Aurora]: 'Ethereum',
|
|
13
|
+
[types_1.Networks.Cronos]: 'Crypto.com',
|
|
14
|
+
[types_1.Networks.Fantom]: 'Fantom',
|
|
15
|
+
[types_1.Networks.Harmony]: 'Harmony',
|
|
16
|
+
[types_1.Networks.Moonbeam]: 'Moonbeam',
|
|
17
|
+
[types_1.Networks.Sxnetwork]: 'SX Network',
|
|
18
|
+
};
|
|
19
|
+
exports.ETH_SYMBOL = {
|
|
20
|
+
[types_1.Networks.Ropsten]: 'ETH',
|
|
21
|
+
[types_1.Networks.Mainnet]: 'ETH',
|
|
22
|
+
[types_1.Networks.Polygon]: 'MATIC',
|
|
23
|
+
[types_1.Networks.Arbitrum]: 'ETH',
|
|
24
|
+
[types_1.Networks.Avalanche]: 'AVAX',
|
|
25
|
+
[types_1.Networks.Moonriver]: 'MOVR',
|
|
26
|
+
[types_1.Networks.Aurora]: 'ETH',
|
|
27
|
+
[types_1.Networks.Cronos]: 'CRO',
|
|
28
|
+
[types_1.Networks.Fantom]: 'FTM',
|
|
29
|
+
[types_1.Networks.Harmony]: 'ONE',
|
|
30
|
+
[types_1.Networks.Moonbeam]: 'GLMR',
|
|
31
|
+
[types_1.Networks.Sxnetwork]: 'SX',
|
|
32
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Factory } from './types';
|
|
2
|
+
export declare const SOLIDEX_FACTORIES: Factory[];
|
|
3
|
+
export declare const BORROW_FEE_FACTORIES: Factory[];
|
|
4
|
+
export declare const OLD_KINK_MULTIPLIER_FACTORIES: Factory[];
|
|
5
|
+
export declare const LIQUIDATION_FEE_FACTORIES: Factory[];
|
|
6
|
+
export declare const V2_FACTORIES: Factory[];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.V2_FACTORIES = exports.LIQUIDATION_FEE_FACTORIES = exports.OLD_KINK_MULTIPLIER_FACTORIES = exports.BORROW_FEE_FACTORIES = exports.SOLIDEX_FACTORIES = void 0;
|
|
4
|
+
const types_1 = require("./types");
|
|
5
|
+
exports.SOLIDEX_FACTORIES = [
|
|
6
|
+
types_1.Factory.SOLV1_2,
|
|
7
|
+
types_1.Factory.SOLV2,
|
|
8
|
+
];
|
|
9
|
+
exports.BORROW_FEE_FACTORIES = [
|
|
10
|
+
types_1.Factory.V2V1,
|
|
11
|
+
types_1.Factory.V2V1_1,
|
|
12
|
+
];
|
|
13
|
+
exports.OLD_KINK_MULTIPLIER_FACTORIES = [
|
|
14
|
+
types_1.Factory.V2V1,
|
|
15
|
+
types_1.Factory.V2V1_1,
|
|
16
|
+
];
|
|
17
|
+
exports.LIQUIDATION_FEE_FACTORIES = [
|
|
18
|
+
types_1.Factory.V2V2,
|
|
19
|
+
types_1.Factory.SOLV2,
|
|
20
|
+
];
|
|
21
|
+
exports.V2_FACTORIES = [
|
|
22
|
+
types_1.Factory.V2V2,
|
|
23
|
+
types_1.Factory.SOLV2,
|
|
24
|
+
];
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Address, Networks } from './types';
|
|
2
|
+
export declare enum Farms {
|
|
3
|
+
quickswapOld = "quickswapOld",
|
|
4
|
+
quickswap = "quickswap",
|
|
5
|
+
quickswapDual = "quickswapDual",
|
|
6
|
+
sushiswap = "sushiswap",
|
|
7
|
+
arbinyan = "arbinyan",
|
|
8
|
+
swapr = "swapr",
|
|
9
|
+
swapfish = "swapfish",
|
|
10
|
+
zyberswap = "zyberswap",
|
|
11
|
+
radiant = "",
|
|
12
|
+
plutusDao = "",
|
|
13
|
+
pangolin = "pangolin",
|
|
14
|
+
pangolinV2 = "pangolinV2",
|
|
15
|
+
traderJoeV2 = "traderJoeV2",
|
|
16
|
+
traderJoeV3 = "traderJoeV3",
|
|
17
|
+
traderJoeV4 = "traderJoeV4",
|
|
18
|
+
solarbeam = "solarbeam",
|
|
19
|
+
solarbeam2 = "solarbeam2",
|
|
20
|
+
thorus = "thorus",
|
|
21
|
+
tetuswap = "tetuswap",
|
|
22
|
+
solidex = "solidex",
|
|
23
|
+
solidexB = "solidexB",
|
|
24
|
+
solidexUSDC = "solidexUSDC",
|
|
25
|
+
solidexUSDCB = "solidexUSDCB",
|
|
26
|
+
oxdao = "oxdao"
|
|
27
|
+
}
|
|
28
|
+
export declare const hrFarms: {
|
|
29
|
+
quickswapOld: string;
|
|
30
|
+
quickswap: string;
|
|
31
|
+
quickswapDual: string;
|
|
32
|
+
sushiswap: string;
|
|
33
|
+
arbinyan: string;
|
|
34
|
+
swapr: string;
|
|
35
|
+
swapfish: string;
|
|
36
|
+
zyberswap: string;
|
|
37
|
+
"": string;
|
|
38
|
+
pangolin: string;
|
|
39
|
+
pangolinV2: string;
|
|
40
|
+
traderJoeV2: string;
|
|
41
|
+
traderJoeV3: string;
|
|
42
|
+
traderJoeV4: string;
|
|
43
|
+
solarbeam: string;
|
|
44
|
+
solarbeam2: string;
|
|
45
|
+
thorus: string;
|
|
46
|
+
tetuswap: string;
|
|
47
|
+
solidex: string;
|
|
48
|
+
solidexB: string;
|
|
49
|
+
solidexUSDC: string;
|
|
50
|
+
solidexUSDCB: string;
|
|
51
|
+
oxdao: string;
|
|
52
|
+
};
|
|
53
|
+
export type FarmIndex = {
|
|
54
|
+
[key in Networks]: {
|
|
55
|
+
[key in Farms]?: any;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
export declare const STAKED_LP_FACTORY: FarmIndex;
|
|
59
|
+
export declare function getFarmByStakedLPFactory(network: Networks, address: Address): Farms;
|