@paraswap/dex-lib 3.4.2-balancer-v2-single-swap.0 → 3.4.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/README.md +377 -377
- package/build/config.js +9 -5
- package/build/config.js.map +1 -1
- package/build/dex/algebra/algebra.js +25 -25
- package/build/dex/balancer-v1/balancer-v1.js +34 -34
- package/build/dex/balancer-v2/balancer-v2.d.ts +1 -1
- package/build/dex/balancer-v2/balancer-v2.js +65 -78
- package/build/dex/balancer-v2/balancer-v2.js.map +1 -1
- package/build/dex/camelot/camelot.js +27 -27
- package/build/dex/kyberdmm/kyberdmm.js +27 -27
- package/build/dex/pancakeswap-v3/pancakeswap-v3.js +25 -25
- package/build/dex/solidly/solidly.js +27 -27
- package/build/dex/solidly-v3/solidly-v3.js +25 -25
- package/build/dex/swaap-v2/config.js +15 -0
- package/build/dex/swaap-v2/config.js.map +1 -1
- package/build/dex/uniswap-v2/uniswap-v2.js +26 -26
- package/build/dex/uniswap-v3/uniswap-v3.js +25 -25
- package/funding.json +5 -5
- package/package.json +1 -1
- package/src/config.ts +500 -496
- package/src/constants.ts +67 -67
- package/src/dex/aave-v2/aave-v2.ts +409 -409
- package/src/dex/aave-v3/aave-v3.ts +320 -320
- package/src/dex/algebra/algebra.ts +1180 -1180
- package/src/dex/angle-staked-stable/angle-staked-stable.ts +347 -347
- package/src/dex/augustus-rfq.ts +180 -180
- package/src/dex/bProtocol/bProtocol.ts +108 -108
- package/src/dex/balancer-v1/balancer-v1.ts +572 -572
- package/src/dex/balancer-v2/balancer-v2-e2e.test.ts +1699 -1699
- package/src/dex/balancer-v2/balancer-v2.ts +1669 -1701
- package/src/dex/bancor/bancor.ts +128 -128
- package/src/dex/camelot/camelot.ts +873 -873
- package/src/dex/compound/compound.ts +107 -107
- package/src/dex/curve-v1/config.ts +1179 -1179
- package/src/dex/curve-v1/curve-v1-e2e.test.ts +507 -507
- package/src/dex/curve-v1/curve-v1.ts +1315 -1315
- package/src/dex/curve-v1-factory/config.ts +1018 -1018
- package/src/dex/curve-v1-factory/curve-v1-factory.ts +1288 -1288
- package/src/dex/curve-v2/curve-v2.ts +440 -440
- package/src/dex/dexalot/dexalot.ts +1100 -1100
- package/src/dex/dodo-v1/dodo-v1.ts +132 -132
- package/src/dex/dodo-v2.ts +266 -266
- package/src/dex/etherfi.ts +239 -239
- package/src/dex/generic-rfq/generic-rfq.ts +431 -431
- package/src/dex/gmx/gmx.ts +321 -321
- package/src/dex/hashflow/hashflow.ts +1135 -1135
- package/src/dex/idex.ts +254 -254
- package/src/dex/index.ts +357 -357
- package/src/dex/jarvis-v6/jarvis-v6.ts +509 -509
- package/src/dex/jarvis.ts +262 -262
- package/src/dex/kyberdmm/kyberdmm.ts +649 -649
- package/src/dex/lido/lido.ts +110 -110
- package/src/dex/maker-psm/maker-psm.ts +592 -592
- package/src/dex/maverick-v1/maverick-v1.ts +537 -537
- package/src/dex/nerve/config.ts +635 -635
- package/src/dex/nerve/nerve-e2e.test.ts +731 -731
- package/src/dex/nerve/nerve-events.test.ts +911 -911
- package/src/dex/nerve/nerve.ts +467 -467
- package/src/dex/onebit/onebit.ts +113 -113
- package/src/dex/pancakeswap-v3/pancakeswap-v3.ts +1150 -1150
- package/src/dex/paraswap-limit-orders/config.ts +60 -60
- package/src/dex/paraswap-limit-orders/paraswap-limit-orders-e2e.test.ts +137 -137
- package/src/dex/paraswap-limit-orders/paraswap-limit-orders-integration.test.ts +328 -328
- package/src/dex/paraswap-limit-orders/paraswap-limit-orders.ts +631 -631
- package/src/dex/polygon-migrator/polygon-migrator.ts +194 -194
- package/src/dex/quick-perps/quick-perps.ts +337 -337
- package/src/dex/quickswap/config.ts +16 -16
- package/src/dex/quickswap/quickswap-e2e.test.ts +384 -384
- package/src/dex/smoothy/smoothy.ts +110 -110
- package/src/dex/solidly/config.ts +225 -225
- package/src/dex/solidly/solidly-e2e.test.ts +1421 -1421
- package/src/dex/solidly/solidly-integration.test.ts +1753 -1753
- package/src/dex/solidly/solidly.ts +687 -687
- package/src/dex/solidly-v3/solidly-v3.ts +968 -968
- package/src/dex/spark/spark.ts +284 -284
- package/src/dex/stable-pool/stable-pool.ts +129 -129
- package/src/dex/swaap-v2/config.ts +15 -0
- package/src/dex/swaap-v2/swaap-v2-e2e.test.ts +233 -17
- package/src/dex/swaap-v2/swaap-v2-integration.test.ts +1 -1
- package/src/dex/swaap-v2/swaap-v2.ts +1056 -1056
- package/src/dex/swell/swell.ts +312 -312
- package/src/dex/synthetix/synthetix.ts +420 -420
- package/src/dex/trader-joe-v2.1/trader-joe-v2.1.ts +180 -180
- package/src/dex/uniswap-v2/config.ts +637 -637
- package/src/dex/uniswap-v2/constants.ts +58 -58
- package/src/dex/uniswap-v2/uniswap-v2-e2e-avalanche.test.ts +1257 -1257
- package/src/dex/uniswap-v2/uniswap-v2-e2e-base.test.ts +42 -42
- package/src/dex/uniswap-v2/uniswap-v2-e2e-bsc.test.ts +1295 -1295
- package/src/dex/uniswap-v2/uniswap-v2-e2e-mainnet.test.ts +1834 -1834
- package/src/dex/uniswap-v2/uniswap-v2-e2e-polygon.test.ts +871 -871
- package/src/dex/uniswap-v2/uniswap-v2.ts +1117 -1117
- package/src/dex/uniswap-v3/uniswap-v3.ts +1501 -1501
- package/src/dex/uniswap-v3.ts +242 -242
- package/src/dex/weth/config.ts +73 -73
- package/src/dex/weth/weth.ts +230 -230
- package/src/dex/wombat/wombat.ts +467 -467
- package/src/dex/woo-fi-v2/woo-fi-v2.ts +529 -529
- package/src/dex/wsteth/wsteth.ts +304 -304
- package/src/dex/zerox/index.ts +328 -328
- package/src/executor/Executor01BytecodeBuilder.ts +474 -474
- package/src/executor/Executor02BytecodeBuilder.ts +1392 -1392
- package/src/executor/ExecutorBytecodeBuilder.ts +390 -390
- package/src/executor/ExecutorDetector.ts +131 -131
- package/src/executor/constants.ts +66 -66
- package/src/executor/executor01-bytecode-builder-e2e.test.ts +1478 -1478
- package/src/executor/utils.ts +62 -62
- package/src/router/simpleswap.ts +366 -366
- package/src/types.ts +342 -342
- package/tests/constants-e2e.ts +1632 -1622
- package/tests/generate-new-limit-order.ts +107 -107
|
@@ -1,110 +1,110 @@
|
|
|
1
|
-
import { Interface } from '@ethersproject/abi';
|
|
2
|
-
import { Provider } from '@ethersproject/providers';
|
|
3
|
-
import { SwapSide } from '../../constants';
|
|
4
|
-
import {
|
|
5
|
-
AdapterExchangeParam,
|
|
6
|
-
Address,
|
|
7
|
-
DexExchangeParam,
|
|
8
|
-
NumberAsString,
|
|
9
|
-
SimpleExchangeParam,
|
|
10
|
-
} from '../../types';
|
|
11
|
-
import { IDexTxBuilder } from '../idex';
|
|
12
|
-
import { SimpleExchange } from '../simple-exchange';
|
|
13
|
-
import SmoothyABI from '../../abi/Smoothy.json';
|
|
14
|
-
import { IDexHelper } from '../../dex-helper';
|
|
15
|
-
import { SmoothyData, SmoothyFunctions, SmoothyParam } from './types';
|
|
16
|
-
|
|
17
|
-
export class Smoothy
|
|
18
|
-
extends SimpleExchange
|
|
19
|
-
implements IDexTxBuilder<SmoothyData, SmoothyParam>
|
|
20
|
-
{
|
|
21
|
-
static dexKeys = ['smoothy'];
|
|
22
|
-
exchangeRouterInterface: Interface;
|
|
23
|
-
minConversionRate = '1';
|
|
24
|
-
|
|
25
|
-
constructor(dexHelper: IDexHelper) {
|
|
26
|
-
super(dexHelper, 'smoothy');
|
|
27
|
-
this.exchangeRouterInterface = new Interface(SmoothyABI);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
getAdapterParam(
|
|
31
|
-
srcToken: string,
|
|
32
|
-
destToken: string,
|
|
33
|
-
srcAmount: string,
|
|
34
|
-
destAmount: string,
|
|
35
|
-
data: SmoothyData,
|
|
36
|
-
side: SwapSide,
|
|
37
|
-
): AdapterExchangeParam {
|
|
38
|
-
if (side === SwapSide.BUY) throw new Error(`Buy not supported`);
|
|
39
|
-
|
|
40
|
-
const { i, j } = data;
|
|
41
|
-
const payload = this.abiCoder.encodeParameter(
|
|
42
|
-
{
|
|
43
|
-
ParentStruct: {
|
|
44
|
-
i: 'int128',
|
|
45
|
-
j: 'int128',
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
{ i, j },
|
|
49
|
-
);
|
|
50
|
-
return {
|
|
51
|
-
targetExchange: data.exchange,
|
|
52
|
-
payload,
|
|
53
|
-
networkFee: '0',
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
async getSimpleParam(
|
|
58
|
-
srcToken: string,
|
|
59
|
-
destToken: string,
|
|
60
|
-
srcAmount: string,
|
|
61
|
-
destAmount: string,
|
|
62
|
-
data: SmoothyData,
|
|
63
|
-
side: SwapSide,
|
|
64
|
-
): Promise<SimpleExchangeParam> {
|
|
65
|
-
if (side === SwapSide.BUY) throw new Error(`Buy not supported`);
|
|
66
|
-
|
|
67
|
-
const { exchange, i, j } = data;
|
|
68
|
-
const swapFunctionParams: SmoothyParam = [i, j, srcAmount, destAmount];
|
|
69
|
-
const swapData = this.exchangeRouterInterface.encodeFunctionData(
|
|
70
|
-
SmoothyFunctions.swap,
|
|
71
|
-
swapFunctionParams,
|
|
72
|
-
);
|
|
73
|
-
|
|
74
|
-
return this.buildSimpleParamWithoutWETHConversion(
|
|
75
|
-
srcToken,
|
|
76
|
-
srcAmount,
|
|
77
|
-
destToken,
|
|
78
|
-
destAmount,
|
|
79
|
-
swapData,
|
|
80
|
-
exchange,
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
getDexParam(
|
|
85
|
-
_srcToken: Address,
|
|
86
|
-
_destToken: Address,
|
|
87
|
-
srcAmount: NumberAsString,
|
|
88
|
-
destAmount: NumberAsString,
|
|
89
|
-
_recipient: Address,
|
|
90
|
-
data: SmoothyData,
|
|
91
|
-
side: SwapSide,
|
|
92
|
-
): DexExchangeParam {
|
|
93
|
-
if (side === SwapSide.BUY) throw new Error(`Buy not supported`);
|
|
94
|
-
|
|
95
|
-
const { exchange, i, j } = data;
|
|
96
|
-
const swapFunctionParams: SmoothyParam = [i, j, srcAmount, destAmount];
|
|
97
|
-
const swapData = this.exchangeRouterInterface.encodeFunctionData(
|
|
98
|
-
SmoothyFunctions.swap,
|
|
99
|
-
swapFunctionParams,
|
|
100
|
-
);
|
|
101
|
-
|
|
102
|
-
return {
|
|
103
|
-
needWrapNative: this.needWrapNative,
|
|
104
|
-
dexFuncHasRecipient: false,
|
|
105
|
-
exchangeData: swapData,
|
|
106
|
-
targetExchange: exchange,
|
|
107
|
-
returnAmountPos: undefined,
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
}
|
|
1
|
+
import { Interface } from '@ethersproject/abi';
|
|
2
|
+
import { Provider } from '@ethersproject/providers';
|
|
3
|
+
import { SwapSide } from '../../constants';
|
|
4
|
+
import {
|
|
5
|
+
AdapterExchangeParam,
|
|
6
|
+
Address,
|
|
7
|
+
DexExchangeParam,
|
|
8
|
+
NumberAsString,
|
|
9
|
+
SimpleExchangeParam,
|
|
10
|
+
} from '../../types';
|
|
11
|
+
import { IDexTxBuilder } from '../idex';
|
|
12
|
+
import { SimpleExchange } from '../simple-exchange';
|
|
13
|
+
import SmoothyABI from '../../abi/Smoothy.json';
|
|
14
|
+
import { IDexHelper } from '../../dex-helper';
|
|
15
|
+
import { SmoothyData, SmoothyFunctions, SmoothyParam } from './types';
|
|
16
|
+
|
|
17
|
+
export class Smoothy
|
|
18
|
+
extends SimpleExchange
|
|
19
|
+
implements IDexTxBuilder<SmoothyData, SmoothyParam>
|
|
20
|
+
{
|
|
21
|
+
static dexKeys = ['smoothy'];
|
|
22
|
+
exchangeRouterInterface: Interface;
|
|
23
|
+
minConversionRate = '1';
|
|
24
|
+
|
|
25
|
+
constructor(dexHelper: IDexHelper) {
|
|
26
|
+
super(dexHelper, 'smoothy');
|
|
27
|
+
this.exchangeRouterInterface = new Interface(SmoothyABI);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
getAdapterParam(
|
|
31
|
+
srcToken: string,
|
|
32
|
+
destToken: string,
|
|
33
|
+
srcAmount: string,
|
|
34
|
+
destAmount: string,
|
|
35
|
+
data: SmoothyData,
|
|
36
|
+
side: SwapSide,
|
|
37
|
+
): AdapterExchangeParam {
|
|
38
|
+
if (side === SwapSide.BUY) throw new Error(`Buy not supported`);
|
|
39
|
+
|
|
40
|
+
const { i, j } = data;
|
|
41
|
+
const payload = this.abiCoder.encodeParameter(
|
|
42
|
+
{
|
|
43
|
+
ParentStruct: {
|
|
44
|
+
i: 'int128',
|
|
45
|
+
j: 'int128',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
{ i, j },
|
|
49
|
+
);
|
|
50
|
+
return {
|
|
51
|
+
targetExchange: data.exchange,
|
|
52
|
+
payload,
|
|
53
|
+
networkFee: '0',
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async getSimpleParam(
|
|
58
|
+
srcToken: string,
|
|
59
|
+
destToken: string,
|
|
60
|
+
srcAmount: string,
|
|
61
|
+
destAmount: string,
|
|
62
|
+
data: SmoothyData,
|
|
63
|
+
side: SwapSide,
|
|
64
|
+
): Promise<SimpleExchangeParam> {
|
|
65
|
+
if (side === SwapSide.BUY) throw new Error(`Buy not supported`);
|
|
66
|
+
|
|
67
|
+
const { exchange, i, j } = data;
|
|
68
|
+
const swapFunctionParams: SmoothyParam = [i, j, srcAmount, destAmount];
|
|
69
|
+
const swapData = this.exchangeRouterInterface.encodeFunctionData(
|
|
70
|
+
SmoothyFunctions.swap,
|
|
71
|
+
swapFunctionParams,
|
|
72
|
+
);
|
|
73
|
+
|
|
74
|
+
return this.buildSimpleParamWithoutWETHConversion(
|
|
75
|
+
srcToken,
|
|
76
|
+
srcAmount,
|
|
77
|
+
destToken,
|
|
78
|
+
destAmount,
|
|
79
|
+
swapData,
|
|
80
|
+
exchange,
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
getDexParam(
|
|
85
|
+
_srcToken: Address,
|
|
86
|
+
_destToken: Address,
|
|
87
|
+
srcAmount: NumberAsString,
|
|
88
|
+
destAmount: NumberAsString,
|
|
89
|
+
_recipient: Address,
|
|
90
|
+
data: SmoothyData,
|
|
91
|
+
side: SwapSide,
|
|
92
|
+
): DexExchangeParam {
|
|
93
|
+
if (side === SwapSide.BUY) throw new Error(`Buy not supported`);
|
|
94
|
+
|
|
95
|
+
const { exchange, i, j } = data;
|
|
96
|
+
const swapFunctionParams: SmoothyParam = [i, j, srcAmount, destAmount];
|
|
97
|
+
const swapData = this.exchangeRouterInterface.encodeFunctionData(
|
|
98
|
+
SmoothyFunctions.swap,
|
|
99
|
+
swapFunctionParams,
|
|
100
|
+
);
|
|
101
|
+
|
|
102
|
+
return {
|
|
103
|
+
needWrapNative: this.needWrapNative,
|
|
104
|
+
dexFuncHasRecipient: false,
|
|
105
|
+
exchangeData: swapData,
|
|
106
|
+
targetExchange: exchange,
|
|
107
|
+
returnAmountPos: undefined,
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
}
|
|
@@ -1,225 +1,225 @@
|
|
|
1
|
-
import { DexParams } from './types';
|
|
2
|
-
import { DexConfigMap, AdapterMappings } from '../../types';
|
|
3
|
-
import { Network, SwapSide } from '../../constants';
|
|
4
|
-
|
|
5
|
-
export const SolidlyConfig: DexConfigMap<DexParams> = {
|
|
6
|
-
Solidly: {
|
|
7
|
-
[Network.FANTOM]: {
|
|
8
|
-
subgraphURL:
|
|
9
|
-
'https://api.thegraph.com/subgraphs/name/deusfinance/solidly',
|
|
10
|
-
factoryAddress: '0x3faab499b519fdc5819e3d7ed0c26111904cbc28',
|
|
11
|
-
router: '0x93d2611EB8b85bE4FDEa9D94Ce9913D90072eC0f',
|
|
12
|
-
initCode:
|
|
13
|
-
'0x57ae84018c47ebdaf7ddb2d1216c8c36389d12481309af65428eb6d460f747a4',
|
|
14
|
-
// Fixed Fees, same for volatile and stable pools
|
|
15
|
-
feeCode: 1,
|
|
16
|
-
poolGasCost: 180 * 1000,
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
SolidlyV2: {
|
|
20
|
-
[Network.MAINNET]: {
|
|
21
|
-
factoryAddress: '0x777de5Fe8117cAAA7B44f396E93a401Cf5c9D4d6',
|
|
22
|
-
router: '0x5b39e7A1C706464F5B3956b21CD22a43F0dB0eAC',
|
|
23
|
-
subgraphURL: 'https://api.thegraph.com/subgraphs/name/0xc30/solidly',
|
|
24
|
-
initCode:
|
|
25
|
-
'0x413d36e4ab9e83cf39b8064a3b5c98253a9e46a6cf02c8efd185314c866d656b',
|
|
26
|
-
stableFee: 200, // This is not fixed
|
|
27
|
-
volatileFee: 2000,
|
|
28
|
-
feeCode: 0,
|
|
29
|
-
poolGasCost: 220 * 1000, // https://dashboard.tenderly.co/paraswap/paraswap/tx/mainnet/0x80f01d841ac01cfaedc93ceaadc88fc799ee1539841c2ac19cfccfdcfb605d70/gas-usage
|
|
30
|
-
feeFactor: 1e6,
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
Dystopia: {
|
|
34
|
-
[Network.POLYGON]: {
|
|
35
|
-
subgraphURL:
|
|
36
|
-
'https://api.thegraph.com/subgraphs/name/dystopia-exchange/dystopia-v2',
|
|
37
|
-
factoryAddress: '0x1d21Db6cde1b18c7E47B0F7F42f4b3F68b9beeC9',
|
|
38
|
-
router: '0xc8DB3501281c192fFE9697A1b905b161ca0cd64d',
|
|
39
|
-
initCode:
|
|
40
|
-
'0x009bce6d7eb00d3d075e5bd9851068137f44bba159f1cde806a268e20baaf2e8',
|
|
41
|
-
// Fixed Fees, same for volatile and stable pools
|
|
42
|
-
feeCode: 5,
|
|
43
|
-
poolGasCost: 180 * 1000,
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
SpiritSwapV2: {
|
|
47
|
-
[Network.FANTOM]: {
|
|
48
|
-
subgraphURL:
|
|
49
|
-
'https://api.thegraph.com/subgraphs/name/layer3org/spiritswap-v2',
|
|
50
|
-
factoryAddress: '0x9d3591719038752db0c8bEEe2040FfcC3B2c6B9c',
|
|
51
|
-
router: '0x93d2611EB8b85bE4FDEa9D94Ce9913D90072eC0f',
|
|
52
|
-
initCode:
|
|
53
|
-
'0x5442fb448d86f32a7d2a9dc1a457e64bf5a6c77415d98802aac4fb5a9dc5ecd9',
|
|
54
|
-
// updatable fees on the pool contract without event
|
|
55
|
-
stableFee: 4, // 10000 / 2500 = 4 in BPS
|
|
56
|
-
volatileFee: 18, // ceil(10000 / 556) = 18 in BPS
|
|
57
|
-
poolGasCost: 180 * 1000,
|
|
58
|
-
feeCode: 4,
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
Velodrome: {
|
|
62
|
-
[Network.OPTIMISM]: {
|
|
63
|
-
subgraphURL: 'https://api.thegraph.com/subgraphs/name/dmihal/velodrome',
|
|
64
|
-
factoryAddress: '0x25cbddb98b35ab1ff77413456b31ec81a6b6b746',
|
|
65
|
-
router: '0xa2f581b012E0f2dcCDe86fCbfb529f4aC5dD4983',
|
|
66
|
-
initCode:
|
|
67
|
-
'0xc1ac28b1c4ebe53c0cff67bab5878c4eb68759bb1e9f73977cd266b247d149f0',
|
|
68
|
-
// updatable fees on the factory without event
|
|
69
|
-
stableFee: 2,
|
|
70
|
-
volatileFee: 2,
|
|
71
|
-
poolGasCost: 180 * 1000,
|
|
72
|
-
feeCode: 2,
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
VelodromeV2: {
|
|
76
|
-
[Network.OPTIMISM]: {
|
|
77
|
-
// There is no subgraph for VelodromeV2
|
|
78
|
-
factoryAddress: '0xF1046053aa5682b4F9a81b5481394DA16BE5FF5a',
|
|
79
|
-
router: '0xa2f581b012E0f2dcCDe86fCbfb529f4aC5dD4983',
|
|
80
|
-
initCode:
|
|
81
|
-
'0x1a8f01f7eab324003d9388f229ea17991eee9c9d14586f429799f3656790eba0',
|
|
82
|
-
poolGasCost: 180 * 1000,
|
|
83
|
-
feeCode: 0,
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
Aerodrome: {
|
|
87
|
-
[Network.BASE]: {
|
|
88
|
-
// There is no subgraph for Aerodrome
|
|
89
|
-
factoryAddress: '0x420DD381b31aEf6683db6B902084cB0FFECe40Da',
|
|
90
|
-
router: '0xDCf4EE5B700e2a5Fec458e06B763A4a3E3004494',
|
|
91
|
-
initCode:
|
|
92
|
-
'0x1a8f01f7eab324003d9388f229ea17991eee9c9d14586f429799f3656790eba0',
|
|
93
|
-
poolGasCost: 180 * 1000,
|
|
94
|
-
feeCode: 0,
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
Thena: {
|
|
98
|
-
[Network.BSC]: {
|
|
99
|
-
subgraphURL: 'https://api.thegraph.com/subgraphs/name/thenaursa/thena-v1',
|
|
100
|
-
factoryAddress: '0xAFD89d21BdB66d00817d4153E055830B1c2B3970',
|
|
101
|
-
router: '0xc2b5a8082D2E1867A9CBBF41b625E3ae9dF81f8b',
|
|
102
|
-
initCode:
|
|
103
|
-
'0x8d3d214c094a9889564f695c3e9fa516dd3b50bc3258207acd7f8b8e6b94fb65',
|
|
104
|
-
stableFee: 1, // 10000 / 10000 = 1 in BPS
|
|
105
|
-
volatileFee: 20, // 10000 / 500 = 20 in BPS
|
|
106
|
-
poolGasCost: 180 * 1000,
|
|
107
|
-
feeCode: 1,
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
Chronos: {
|
|
111
|
-
[Network.ARBITRUM]: {
|
|
112
|
-
subgraphURL: 'https://api.thegraph.com/subgraphs/name/xliee/chronos',
|
|
113
|
-
factoryAddress: '0xce9240869391928253ed9cc9bcb8cb98cb5b0722',
|
|
114
|
-
router: '0xb2634B3CBc1E401AB3C2743DB44d459C5c9aA662',
|
|
115
|
-
initCode:
|
|
116
|
-
'0x1840ae455256f509042de907fe0623f2e5e0ad44751ef974c4c37c1e516b7644',
|
|
117
|
-
poolGasCost: 180 * 1000,
|
|
118
|
-
feeCode: 0,
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
Ramses: {
|
|
122
|
-
[Network.ARBITRUM]: {
|
|
123
|
-
subgraphURL:
|
|
124
|
-
'https://api.thegraph.com/subgraphs/name/ramsesexchange/api-subgraph',
|
|
125
|
-
factoryAddress: '0xAAA20D08e59F6561f242b08513D36266C5A29415',
|
|
126
|
-
router: '0xb2634B3CBc1E401AB3C2743DB44d459C5c9aA662',
|
|
127
|
-
initCode:
|
|
128
|
-
'0x1565b129f2d1790f12d45301b9b084335626f0c92410bc43130763b69971135d',
|
|
129
|
-
poolGasCost: 180 * 1000,
|
|
130
|
-
feeCode: 0,
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
PharaohV1: {
|
|
134
|
-
[Network.AVALANCHE]: {
|
|
135
|
-
subgraphURL:
|
|
136
|
-
'https://api.studio.thegraph.com/query/66247/pharaoh-legacy/version/latest',
|
|
137
|
-
factoryAddress: '0xAAA16c016BF556fcD620328f0759252E29b1AB57',
|
|
138
|
-
router: '0x609AcD8Fc955Dd7E744c7DFFc9930a7A6654DE43',
|
|
139
|
-
initCode:
|
|
140
|
-
'0xbf2404274de2b11f05e5aebd49e508de933034cb5fa2d0ac3de8cbd4bcef47dc',
|
|
141
|
-
poolGasCost: 180 * 1000,
|
|
142
|
-
stableFee: 5,
|
|
143
|
-
volatileFee: 25,
|
|
144
|
-
feeCode: 0,
|
|
145
|
-
},
|
|
146
|
-
},
|
|
147
|
-
Equalizer: {
|
|
148
|
-
[Network.FANTOM]: {
|
|
149
|
-
factoryAddress: '0xc6366EFD0AF1d09171fe0EBF32c7943BB310832a',
|
|
150
|
-
router: '0x93d2611EB8b85bE4FDEa9D94Ce9913D90072eC0f',
|
|
151
|
-
initCode:
|
|
152
|
-
'0x02ada2a0163cd4f7e0f0c9805f5230716a95b174140e4c84c14883de216cc6a3',
|
|
153
|
-
feeCode: 0,
|
|
154
|
-
poolGasCost: 180 * 1000,
|
|
155
|
-
},
|
|
156
|
-
[Network.BASE]: {
|
|
157
|
-
factoryAddress: '0xed8db60acc29e14bc867a497d94ca6e3ceb5ec04',
|
|
158
|
-
router: '0xDCf4EE5B700e2a5Fec458e06B763A4a3E3004494',
|
|
159
|
-
initCode:
|
|
160
|
-
'0x7ba31a081e879b8e7f06d4e8bf5ee26b5c2680669c5701f4cdbdcde51727b275',
|
|
161
|
-
feeCode: 0,
|
|
162
|
-
feeFactor: 1e18,
|
|
163
|
-
poolGasCost: 180 * 1000,
|
|
164
|
-
},
|
|
165
|
-
},
|
|
166
|
-
Velocimeter: {
|
|
167
|
-
[Network.FANTOM]: {
|
|
168
|
-
factoryAddress: '0x472f3C3c9608fe0aE8d702f3f8A2d12c410C881A',
|
|
169
|
-
router: '0x93d2611EB8b85bE4FDEa9D94Ce9913D90072eC0f',
|
|
170
|
-
initCode:
|
|
171
|
-
'0xac4013aa7118234c1dd1f9cc4cdd3933d5a426224bc691c1bde3d8930a7e6151', // PairFactory.pairCodeHash
|
|
172
|
-
feeCode: 0, // dynamic fees
|
|
173
|
-
poolGasCost: 180 * 1000, // just same as other forks
|
|
174
|
-
// no subgraph
|
|
175
|
-
},
|
|
176
|
-
[Network.BASE]: {
|
|
177
|
-
factoryAddress: '0xe21Aac7F113Bd5DC2389e4d8a8db854a87fD6951',
|
|
178
|
-
router: '0xDCf4EE5B700e2a5Fec458e06B763A4a3E3004494',
|
|
179
|
-
initCode:
|
|
180
|
-
'0xac4013aa7118234c1dd1f9cc4cdd3933d5a426224bc691c1bde3d8930a7e6151', // PairFactory.pairCodeHash
|
|
181
|
-
feeCode: 0, // dynamic fees
|
|
182
|
-
poolGasCost: 180 * 1000, // just same as other forks
|
|
183
|
-
// no subgraph
|
|
184
|
-
},
|
|
185
|
-
},
|
|
186
|
-
Usdfi: {
|
|
187
|
-
[Network.BSC]: {
|
|
188
|
-
subgraphURL:
|
|
189
|
-
'https://api.thegraph.com/subgraphs/name/tbotteam/usdfi-dexv2',
|
|
190
|
-
factoryAddress: '0xB3863573d9f25e6a84895d4685a408db7a488416',
|
|
191
|
-
router: '0xc2b5a8082D2E1867A9CBBF41b625E3ae9dF81f8b',
|
|
192
|
-
initCode:
|
|
193
|
-
'0x1d770cc32abcf060a45b0de3f0afbd8594effe9f6d836f93d19c05d76b4b4dfa',
|
|
194
|
-
poolGasCost: 180 * 1000,
|
|
195
|
-
feeCode: 0, // dynamic fees
|
|
196
|
-
},
|
|
197
|
-
},
|
|
198
|
-
};
|
|
199
|
-
|
|
200
|
-
export const Adapters: Record<number, AdapterMappings> = {
|
|
201
|
-
[Network.POLYGON]: {
|
|
202
|
-
[SwapSide.SELL]: [{ name: 'PolygonAdapter02', index: 3 }], // dystopia
|
|
203
|
-
},
|
|
204
|
-
[Network.FANTOM]: {
|
|
205
|
-
[SwapSide.SELL]: [{ name: 'FantomAdapter01', index: 10 }], // solidly, spiritSwapV2, equalizer, velocimeter
|
|
206
|
-
},
|
|
207
|
-
[Network.OPTIMISM]: {
|
|
208
|
-
[SwapSide.SELL]: [{ name: 'OptimismAdapter01', index: 8 }], // velodrome
|
|
209
|
-
},
|
|
210
|
-
[Network.BSC]: {
|
|
211
|
-
[SwapSide.SELL]: [{ name: 'BscAdapter02', index: 1 }], // thena + cone, usdFi
|
|
212
|
-
},
|
|
213
|
-
[Network.MAINNET]: {
|
|
214
|
-
[SwapSide.SELL]: [{ name: 'Adapter04', index: 1 }], // solidly
|
|
215
|
-
},
|
|
216
|
-
[Network.AVALANCHE]: {
|
|
217
|
-
[SwapSide.SELL]: [{ name: 'AvalancheAdapter02', index: 3 }], // solisnek (deprecated)
|
|
218
|
-
},
|
|
219
|
-
[Network.ARBITRUM]: {
|
|
220
|
-
[SwapSide.SELL]: [{ name: 'ArbitrumAdapter02', index: 1 }], // chronos, ramses
|
|
221
|
-
},
|
|
222
|
-
[Network.BASE]: {
|
|
223
|
-
[SwapSide.SELL]: [{ name: 'BaseAdapter01', index: 3 }], // aerodrome, equalizer, velocimeter
|
|
224
|
-
},
|
|
225
|
-
};
|
|
1
|
+
import { DexParams } from './types';
|
|
2
|
+
import { DexConfigMap, AdapterMappings } from '../../types';
|
|
3
|
+
import { Network, SwapSide } from '../../constants';
|
|
4
|
+
|
|
5
|
+
export const SolidlyConfig: DexConfigMap<DexParams> = {
|
|
6
|
+
Solidly: {
|
|
7
|
+
[Network.FANTOM]: {
|
|
8
|
+
subgraphURL:
|
|
9
|
+
'https://api.thegraph.com/subgraphs/name/deusfinance/solidly',
|
|
10
|
+
factoryAddress: '0x3faab499b519fdc5819e3d7ed0c26111904cbc28',
|
|
11
|
+
router: '0x93d2611EB8b85bE4FDEa9D94Ce9913D90072eC0f',
|
|
12
|
+
initCode:
|
|
13
|
+
'0x57ae84018c47ebdaf7ddb2d1216c8c36389d12481309af65428eb6d460f747a4',
|
|
14
|
+
// Fixed Fees, same for volatile and stable pools
|
|
15
|
+
feeCode: 1,
|
|
16
|
+
poolGasCost: 180 * 1000,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
SolidlyV2: {
|
|
20
|
+
[Network.MAINNET]: {
|
|
21
|
+
factoryAddress: '0x777de5Fe8117cAAA7B44f396E93a401Cf5c9D4d6',
|
|
22
|
+
router: '0x5b39e7A1C706464F5B3956b21CD22a43F0dB0eAC',
|
|
23
|
+
subgraphURL: 'https://api.thegraph.com/subgraphs/name/0xc30/solidly',
|
|
24
|
+
initCode:
|
|
25
|
+
'0x413d36e4ab9e83cf39b8064a3b5c98253a9e46a6cf02c8efd185314c866d656b',
|
|
26
|
+
stableFee: 200, // This is not fixed
|
|
27
|
+
volatileFee: 2000,
|
|
28
|
+
feeCode: 0,
|
|
29
|
+
poolGasCost: 220 * 1000, // https://dashboard.tenderly.co/paraswap/paraswap/tx/mainnet/0x80f01d841ac01cfaedc93ceaadc88fc799ee1539841c2ac19cfccfdcfb605d70/gas-usage
|
|
30
|
+
feeFactor: 1e6,
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
Dystopia: {
|
|
34
|
+
[Network.POLYGON]: {
|
|
35
|
+
subgraphURL:
|
|
36
|
+
'https://api.thegraph.com/subgraphs/name/dystopia-exchange/dystopia-v2',
|
|
37
|
+
factoryAddress: '0x1d21Db6cde1b18c7E47B0F7F42f4b3F68b9beeC9',
|
|
38
|
+
router: '0xc8DB3501281c192fFE9697A1b905b161ca0cd64d',
|
|
39
|
+
initCode:
|
|
40
|
+
'0x009bce6d7eb00d3d075e5bd9851068137f44bba159f1cde806a268e20baaf2e8',
|
|
41
|
+
// Fixed Fees, same for volatile and stable pools
|
|
42
|
+
feeCode: 5,
|
|
43
|
+
poolGasCost: 180 * 1000,
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
SpiritSwapV2: {
|
|
47
|
+
[Network.FANTOM]: {
|
|
48
|
+
subgraphURL:
|
|
49
|
+
'https://api.thegraph.com/subgraphs/name/layer3org/spiritswap-v2',
|
|
50
|
+
factoryAddress: '0x9d3591719038752db0c8bEEe2040FfcC3B2c6B9c',
|
|
51
|
+
router: '0x93d2611EB8b85bE4FDEa9D94Ce9913D90072eC0f',
|
|
52
|
+
initCode:
|
|
53
|
+
'0x5442fb448d86f32a7d2a9dc1a457e64bf5a6c77415d98802aac4fb5a9dc5ecd9',
|
|
54
|
+
// updatable fees on the pool contract without event
|
|
55
|
+
stableFee: 4, // 10000 / 2500 = 4 in BPS
|
|
56
|
+
volatileFee: 18, // ceil(10000 / 556) = 18 in BPS
|
|
57
|
+
poolGasCost: 180 * 1000,
|
|
58
|
+
feeCode: 4,
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
Velodrome: {
|
|
62
|
+
[Network.OPTIMISM]: {
|
|
63
|
+
subgraphURL: 'https://api.thegraph.com/subgraphs/name/dmihal/velodrome',
|
|
64
|
+
factoryAddress: '0x25cbddb98b35ab1ff77413456b31ec81a6b6b746',
|
|
65
|
+
router: '0xa2f581b012E0f2dcCDe86fCbfb529f4aC5dD4983',
|
|
66
|
+
initCode:
|
|
67
|
+
'0xc1ac28b1c4ebe53c0cff67bab5878c4eb68759bb1e9f73977cd266b247d149f0',
|
|
68
|
+
// updatable fees on the factory without event
|
|
69
|
+
stableFee: 2,
|
|
70
|
+
volatileFee: 2,
|
|
71
|
+
poolGasCost: 180 * 1000,
|
|
72
|
+
feeCode: 2,
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
VelodromeV2: {
|
|
76
|
+
[Network.OPTIMISM]: {
|
|
77
|
+
// There is no subgraph for VelodromeV2
|
|
78
|
+
factoryAddress: '0xF1046053aa5682b4F9a81b5481394DA16BE5FF5a',
|
|
79
|
+
router: '0xa2f581b012E0f2dcCDe86fCbfb529f4aC5dD4983',
|
|
80
|
+
initCode:
|
|
81
|
+
'0x1a8f01f7eab324003d9388f229ea17991eee9c9d14586f429799f3656790eba0',
|
|
82
|
+
poolGasCost: 180 * 1000,
|
|
83
|
+
feeCode: 0,
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
Aerodrome: {
|
|
87
|
+
[Network.BASE]: {
|
|
88
|
+
// There is no subgraph for Aerodrome
|
|
89
|
+
factoryAddress: '0x420DD381b31aEf6683db6B902084cB0FFECe40Da',
|
|
90
|
+
router: '0xDCf4EE5B700e2a5Fec458e06B763A4a3E3004494',
|
|
91
|
+
initCode:
|
|
92
|
+
'0x1a8f01f7eab324003d9388f229ea17991eee9c9d14586f429799f3656790eba0',
|
|
93
|
+
poolGasCost: 180 * 1000,
|
|
94
|
+
feeCode: 0,
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
Thena: {
|
|
98
|
+
[Network.BSC]: {
|
|
99
|
+
subgraphURL: 'https://api.thegraph.com/subgraphs/name/thenaursa/thena-v1',
|
|
100
|
+
factoryAddress: '0xAFD89d21BdB66d00817d4153E055830B1c2B3970',
|
|
101
|
+
router: '0xc2b5a8082D2E1867A9CBBF41b625E3ae9dF81f8b',
|
|
102
|
+
initCode:
|
|
103
|
+
'0x8d3d214c094a9889564f695c3e9fa516dd3b50bc3258207acd7f8b8e6b94fb65',
|
|
104
|
+
stableFee: 1, // 10000 / 10000 = 1 in BPS
|
|
105
|
+
volatileFee: 20, // 10000 / 500 = 20 in BPS
|
|
106
|
+
poolGasCost: 180 * 1000,
|
|
107
|
+
feeCode: 1,
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
Chronos: {
|
|
111
|
+
[Network.ARBITRUM]: {
|
|
112
|
+
subgraphURL: 'https://api.thegraph.com/subgraphs/name/xliee/chronos',
|
|
113
|
+
factoryAddress: '0xce9240869391928253ed9cc9bcb8cb98cb5b0722',
|
|
114
|
+
router: '0xb2634B3CBc1E401AB3C2743DB44d459C5c9aA662',
|
|
115
|
+
initCode:
|
|
116
|
+
'0x1840ae455256f509042de907fe0623f2e5e0ad44751ef974c4c37c1e516b7644',
|
|
117
|
+
poolGasCost: 180 * 1000,
|
|
118
|
+
feeCode: 0,
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
Ramses: {
|
|
122
|
+
[Network.ARBITRUM]: {
|
|
123
|
+
subgraphURL:
|
|
124
|
+
'https://api.thegraph.com/subgraphs/name/ramsesexchange/api-subgraph',
|
|
125
|
+
factoryAddress: '0xAAA20D08e59F6561f242b08513D36266C5A29415',
|
|
126
|
+
router: '0xb2634B3CBc1E401AB3C2743DB44d459C5c9aA662',
|
|
127
|
+
initCode:
|
|
128
|
+
'0x1565b129f2d1790f12d45301b9b084335626f0c92410bc43130763b69971135d',
|
|
129
|
+
poolGasCost: 180 * 1000,
|
|
130
|
+
feeCode: 0,
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
PharaohV1: {
|
|
134
|
+
[Network.AVALANCHE]: {
|
|
135
|
+
subgraphURL:
|
|
136
|
+
'https://api.studio.thegraph.com/query/66247/pharaoh-legacy/version/latest',
|
|
137
|
+
factoryAddress: '0xAAA16c016BF556fcD620328f0759252E29b1AB57',
|
|
138
|
+
router: '0x609AcD8Fc955Dd7E744c7DFFc9930a7A6654DE43',
|
|
139
|
+
initCode:
|
|
140
|
+
'0xbf2404274de2b11f05e5aebd49e508de933034cb5fa2d0ac3de8cbd4bcef47dc',
|
|
141
|
+
poolGasCost: 180 * 1000,
|
|
142
|
+
stableFee: 5,
|
|
143
|
+
volatileFee: 25,
|
|
144
|
+
feeCode: 0,
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
Equalizer: {
|
|
148
|
+
[Network.FANTOM]: {
|
|
149
|
+
factoryAddress: '0xc6366EFD0AF1d09171fe0EBF32c7943BB310832a',
|
|
150
|
+
router: '0x93d2611EB8b85bE4FDEa9D94Ce9913D90072eC0f',
|
|
151
|
+
initCode:
|
|
152
|
+
'0x02ada2a0163cd4f7e0f0c9805f5230716a95b174140e4c84c14883de216cc6a3',
|
|
153
|
+
feeCode: 0,
|
|
154
|
+
poolGasCost: 180 * 1000,
|
|
155
|
+
},
|
|
156
|
+
[Network.BASE]: {
|
|
157
|
+
factoryAddress: '0xed8db60acc29e14bc867a497d94ca6e3ceb5ec04',
|
|
158
|
+
router: '0xDCf4EE5B700e2a5Fec458e06B763A4a3E3004494',
|
|
159
|
+
initCode:
|
|
160
|
+
'0x7ba31a081e879b8e7f06d4e8bf5ee26b5c2680669c5701f4cdbdcde51727b275',
|
|
161
|
+
feeCode: 0,
|
|
162
|
+
feeFactor: 1e18,
|
|
163
|
+
poolGasCost: 180 * 1000,
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
Velocimeter: {
|
|
167
|
+
[Network.FANTOM]: {
|
|
168
|
+
factoryAddress: '0x472f3C3c9608fe0aE8d702f3f8A2d12c410C881A',
|
|
169
|
+
router: '0x93d2611EB8b85bE4FDEa9D94Ce9913D90072eC0f',
|
|
170
|
+
initCode:
|
|
171
|
+
'0xac4013aa7118234c1dd1f9cc4cdd3933d5a426224bc691c1bde3d8930a7e6151', // PairFactory.pairCodeHash
|
|
172
|
+
feeCode: 0, // dynamic fees
|
|
173
|
+
poolGasCost: 180 * 1000, // just same as other forks
|
|
174
|
+
// no subgraph
|
|
175
|
+
},
|
|
176
|
+
[Network.BASE]: {
|
|
177
|
+
factoryAddress: '0xe21Aac7F113Bd5DC2389e4d8a8db854a87fD6951',
|
|
178
|
+
router: '0xDCf4EE5B700e2a5Fec458e06B763A4a3E3004494',
|
|
179
|
+
initCode:
|
|
180
|
+
'0xac4013aa7118234c1dd1f9cc4cdd3933d5a426224bc691c1bde3d8930a7e6151', // PairFactory.pairCodeHash
|
|
181
|
+
feeCode: 0, // dynamic fees
|
|
182
|
+
poolGasCost: 180 * 1000, // just same as other forks
|
|
183
|
+
// no subgraph
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
Usdfi: {
|
|
187
|
+
[Network.BSC]: {
|
|
188
|
+
subgraphURL:
|
|
189
|
+
'https://api.thegraph.com/subgraphs/name/tbotteam/usdfi-dexv2',
|
|
190
|
+
factoryAddress: '0xB3863573d9f25e6a84895d4685a408db7a488416',
|
|
191
|
+
router: '0xc2b5a8082D2E1867A9CBBF41b625E3ae9dF81f8b',
|
|
192
|
+
initCode:
|
|
193
|
+
'0x1d770cc32abcf060a45b0de3f0afbd8594effe9f6d836f93d19c05d76b4b4dfa',
|
|
194
|
+
poolGasCost: 180 * 1000,
|
|
195
|
+
feeCode: 0, // dynamic fees
|
|
196
|
+
},
|
|
197
|
+
},
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
export const Adapters: Record<number, AdapterMappings> = {
|
|
201
|
+
[Network.POLYGON]: {
|
|
202
|
+
[SwapSide.SELL]: [{ name: 'PolygonAdapter02', index: 3 }], // dystopia
|
|
203
|
+
},
|
|
204
|
+
[Network.FANTOM]: {
|
|
205
|
+
[SwapSide.SELL]: [{ name: 'FantomAdapter01', index: 10 }], // solidly, spiritSwapV2, equalizer, velocimeter
|
|
206
|
+
},
|
|
207
|
+
[Network.OPTIMISM]: {
|
|
208
|
+
[SwapSide.SELL]: [{ name: 'OptimismAdapter01', index: 8 }], // velodrome
|
|
209
|
+
},
|
|
210
|
+
[Network.BSC]: {
|
|
211
|
+
[SwapSide.SELL]: [{ name: 'BscAdapter02', index: 1 }], // thena + cone, usdFi
|
|
212
|
+
},
|
|
213
|
+
[Network.MAINNET]: {
|
|
214
|
+
[SwapSide.SELL]: [{ name: 'Adapter04', index: 1 }], // solidly
|
|
215
|
+
},
|
|
216
|
+
[Network.AVALANCHE]: {
|
|
217
|
+
[SwapSide.SELL]: [{ name: 'AvalancheAdapter02', index: 3 }], // solisnek (deprecated)
|
|
218
|
+
},
|
|
219
|
+
[Network.ARBITRUM]: {
|
|
220
|
+
[SwapSide.SELL]: [{ name: 'ArbitrumAdapter02', index: 1 }], // chronos, ramses
|
|
221
|
+
},
|
|
222
|
+
[Network.BASE]: {
|
|
223
|
+
[SwapSide.SELL]: [{ name: 'BaseAdapter01', index: 3 }], // aerodrome, equalizer, velocimeter
|
|
224
|
+
},
|
|
225
|
+
};
|