@paraswap/dex-lib 2.20.2-camelot-v3 → 2.20.2-camelot-v3.1
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.
|
@@ -3,6 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.QuickSwapConfig = void 0;
|
|
4
4
|
const constants_1 = require("../../constants");
|
|
5
5
|
exports.QuickSwapConfig = {
|
|
6
|
+
CamelotV3: {
|
|
7
|
+
[constants_1.Network.ARBITRUM]: {
|
|
8
|
+
factoryAddress: '0x1a3c9B1d2F0529D97f2afC5136Cc23e58f1FD35B',
|
|
9
|
+
router: '0x1F721E2E82F6676FCE4eA07A5958cF098D339e18',
|
|
10
|
+
quoteAddress: '0x0Fc73040b26E9bC8514fA028D998E73A254Fa76E',
|
|
11
|
+
initCode: '0x6c1bebd370ba84753516bc1393c0d0a6c645856da55f5393ac8ab3d6dbc861d3',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
6
14
|
ZyberSwapV3: {
|
|
7
15
|
[constants_1.Network.ARBITRUM]: {
|
|
8
16
|
factoryAddress: '0x9C2ABD632771b433E5E7507BcaA41cA3b25D8544',
|
|
@@ -27,13 +35,5 @@ exports.QuickSwapConfig = {
|
|
|
27
35
|
initCode: '0xa360004fb86ddf4cd7fe9aa67d0c6a7f7812d9069142659003dc503e1d7d241f',
|
|
28
36
|
},
|
|
29
37
|
},
|
|
30
|
-
CamelotV3: {
|
|
31
|
-
[constants_1.Network.ARBITRUM]: {
|
|
32
|
-
factoryAddress: '0x1a3c9B1d2F0529D97f2afC5136Cc23e58f1FD35B',
|
|
33
|
-
router: '0x1F721E2E82F6676FCE4eA07A5958cF098D339e18',
|
|
34
|
-
quoteAddress: '0x0Fc73040b26E9bC8514fA028D998E73A254Fa76E',
|
|
35
|
-
initCode: '0x6c1bebd370ba84753516bc1393c0d0a6c645856da55f5393ac8ab3d6dbc861d3',
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
38
|
};
|
|
39
39
|
//# sourceMappingURL=config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/dex/quickswap/config.ts"],"names":[],"mappings":";;;AACA,+CAA0C;AAG7B,QAAA,eAAe,GAA4B;IACtD,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/dex/quickswap/config.ts"],"names":[],"mappings":";;;AACA,+CAA0C;AAG7B,QAAA,eAAe,GAA4B;IACtD,SAAS,EAAE;QACT,CAAC,mBAAO,CAAC,QAAQ,CAAC,EAAE;YAClB,cAAc,EAAE,4CAA4C;YAC5D,MAAM,EAAE,4CAA4C;YACpD,YAAY,EAAE,4CAA4C;YAC1D,QAAQ,EACN,oEAAoE;SACvE;KACF;IACD,WAAW,EAAE;QACX,CAAC,mBAAO,CAAC,QAAQ,CAAC,EAAE;YAClB,cAAc,EAAE,4CAA4C;YAC5D,MAAM,EAAE,4CAA4C;YACpD,YAAY,EAAE,4CAA4C;YAC1D,QAAQ,EACN,oEAAoE;SACvE;KACF;IACD,WAAW,EAAE;QACX,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE;YACjB,cAAc,EAAE,4CAA4C;YAC5D,MAAM,EAAE,4CAA4C;YACpD,YAAY,EAAE,4CAA4C;YAC1D,QAAQ,EACN,oEAAoE;SACvE;KACF;IACD,YAAY,EAAE;QACZ,CAAC,mBAAO,CAAC,MAAM,CAAC,EAAE;YAChB,cAAc,EAAE,4CAA4C;YAC5D,MAAM,EAAE,4CAA4C;YACpD,YAAY,EAAE,4CAA4C;YAC1D,QAAQ,EACN,oEAAoE;SACvE;KACF;CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,6 +3,15 @@ import { Network } from '../../constants';
|
|
|
3
3
|
import { DexParams } from './types';
|
|
4
4
|
|
|
5
5
|
export const QuickSwapConfig: DexConfigMap<DexParams> = {
|
|
6
|
+
CamelotV3: {
|
|
7
|
+
[Network.ARBITRUM]: {
|
|
8
|
+
factoryAddress: '0x1a3c9B1d2F0529D97f2afC5136Cc23e58f1FD35B',
|
|
9
|
+
router: '0x1F721E2E82F6676FCE4eA07A5958cF098D339e18',
|
|
10
|
+
quoteAddress: '0x0Fc73040b26E9bC8514fA028D998E73A254Fa76E',
|
|
11
|
+
initCode:
|
|
12
|
+
'0x6c1bebd370ba84753516bc1393c0d0a6c645856da55f5393ac8ab3d6dbc861d3',
|
|
13
|
+
},
|
|
14
|
+
},
|
|
6
15
|
ZyberSwapV3: {
|
|
7
16
|
[Network.ARBITRUM]: {
|
|
8
17
|
factoryAddress: '0x9C2ABD632771b433E5E7507BcaA41cA3b25D8544',
|
|
@@ -30,13 +39,4 @@ export const QuickSwapConfig: DexConfigMap<DexParams> = {
|
|
|
30
39
|
'0xa360004fb86ddf4cd7fe9aa67d0c6a7f7812d9069142659003dc503e1d7d241f',
|
|
31
40
|
},
|
|
32
41
|
},
|
|
33
|
-
CamelotV3: {
|
|
34
|
-
[Network.ARBITRUM]: {
|
|
35
|
-
factoryAddress: '0x1a3c9B1d2F0529D97f2afC5136Cc23e58f1FD35B',
|
|
36
|
-
router: '0x1F721E2E82F6676FCE4eA07A5958cF098D339e18',
|
|
37
|
-
quoteAddress: '0x0Fc73040b26E9bC8514fA028D998E73A254Fa76E',
|
|
38
|
-
initCode:
|
|
39
|
-
'0x6c1bebd370ba84753516bc1393c0d0a6c645856da55f5393ac8ab3d6dbc861d3',
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
42
|
};
|
|
@@ -355,7 +355,7 @@ describe('QuickSwap', () => {
|
|
|
355
355
|
});
|
|
356
356
|
|
|
357
357
|
describe('CamelotV3', () => {
|
|
358
|
-
const dexKey = '
|
|
358
|
+
const dexKey = 'CamelotV3';
|
|
359
359
|
|
|
360
360
|
const sideToContractMethods = new Map([
|
|
361
361
|
[
|
|
@@ -370,44 +370,32 @@ describe('QuickSwap', () => {
|
|
|
370
370
|
]);
|
|
371
371
|
|
|
372
372
|
const pairs: { name: string; sellAmount: string; buyAmount: string }[][] =
|
|
373
|
-
|
|
373
|
+
[
|
|
374
374
|
[
|
|
375
375
|
{
|
|
376
|
-
name: '
|
|
377
|
-
sellAmount: '
|
|
378
|
-
buyAmount: '20000000000',
|
|
379
|
-
},
|
|
380
|
-
{
|
|
381
|
-
name: 'USDT',
|
|
382
|
-
sellAmount: '2000000000',
|
|
383
|
-
buyAmount: '20000000000',
|
|
384
|
-
},
|
|
385
|
-
],
|
|
386
|
-
[
|
|
387
|
-
{
|
|
388
|
-
name: 'ETH',
|
|
389
|
-
sellAmount: '200000000000000000',
|
|
376
|
+
name: 'WETH',
|
|
377
|
+
sellAmount: '10000000000',
|
|
390
378
|
buyAmount: '10000000',
|
|
391
379
|
},
|
|
392
380
|
{
|
|
393
381
|
name: 'USDC',
|
|
394
|
-
sellAmount: '
|
|
395
|
-
buyAmount: '
|
|
382
|
+
sellAmount: '10000000',
|
|
383
|
+
buyAmount: '10000000000',
|
|
396
384
|
},
|
|
397
385
|
],
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
386
|
+
[
|
|
387
|
+
{
|
|
388
|
+
name: 'ETH',
|
|
389
|
+
sellAmount: '10000000000',
|
|
390
|
+
buyAmount: '10000000',
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
name: 'USDC',
|
|
394
|
+
sellAmount: '10000000',
|
|
395
|
+
buyAmount: '10000000000',
|
|
396
|
+
},
|
|
397
|
+
],
|
|
398
|
+
];
|
|
411
399
|
|
|
412
400
|
sideToContractMethods.forEach((contractMethods, side) =>
|
|
413
401
|
describe(`${side}`, () => {
|