forked from paraswap/paraswap-dex-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.ts
56 lines (52 loc) · 1.2 KB
/
config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import { DexConfigMap } from '../../types';
import { Network, SwapSide } from '../../constants';
import {
AaveV2Avalanche,
AaveV2Ethereum,
AaveV2Polygon,
} from '@bgd-labs/aave-address-book';
export const aaveLendingPool: { [network: string]: string } = {
[Network.MAINNET]: AaveV2Ethereum.POOL,
[Network.POLYGON]: AaveV2Polygon.POOL,
[Network.AVALANCHE]: AaveV2Avalanche.POOL,
};
export const WETH_GATEWAY: any = {
[Network.MAINNET]: AaveV2Ethereum.WETH_GATEWAY,
[Network.POLYGON]: AaveV2Polygon.WETH_GATEWAY,
[Network.AVALANCHE]: AaveV2Avalanche.WETH_GATEWAY,
};
export const AaveV2Config: DexConfigMap<any> = {
AaveV2: {
[Network.MAINNET]: {},
[Network.POLYGON]: {},
[Network.AVALANCHE]: {},
},
};
export const Adapters: {
[chainId: number]: { [side: string]: { name: string; index: number }[] };
} = {
[Network.MAINNET]: {
[SwapSide.SELL]: [
{
name: 'Adapter01',
index: 7,
},
],
},
[Network.POLYGON]: {
[SwapSide.SELL]: [
{
name: 'PolygonAdapter01',
index: 1,
},
],
},
[Network.AVALANCHE]: {
[SwapSide.SELL]: [
{
name: 'AvalancheAdapter01',
index: 7,
},
],
},
};