add uniswapv3 exchange

This commit is contained in:
Dmitriy Pavlov
2023-09-08 12:56:12 +03:00
parent 1538c74c48
commit 3a44ea7a62
2 changed files with 2 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@orionprotocol/sdk",
"version": "0.19.81-rc3",
"version": "0.19.81-rc4",
"description": "Orion Protocol SDK",
"main": "./lib/index.cjs",
"module": "./lib/index.js",

View File

@@ -20,6 +20,7 @@ const exchangeToType: Partial<Record<string, Factory>> = {
CHERRYSWAP: 'UniswapV2',
OKXSWAP: 'UniswapV2',
INTERNAL_POOL_V2: 'UniswapV2',
UniswapV3: 'UniswapV3',
UniswapV3_0_05: 'UniswapV3',
UniswapV3_0_3: 'UniswapV3',
UniswapV3_1_0: 'UniswapV3',
@@ -28,10 +29,6 @@ const exchangeToType: Partial<Record<string, Factory>> = {
INTERNAL_POOL_V3_0_05: 'OrionV3',
INTERNAL_POOL_V3_0_3: 'OrionV3',
INTERNAL_POOL_V3_1_0: 'OrionV3',
PANCAKESWAP_V3_0_01: 'PancakeSwapV3',
PANCAKESWAP_V3_0_05: 'PancakeSwapV3',
PANCAKESWAP_V3_0_25: 'PancakeSwapV3',
PANCAKESWAP_V3_1_0: 'PancakeSwapV3',
CURVE: 'Curve',
CURVE_FACTORY: 'Curve',
}
@@ -140,10 +137,6 @@ export default async function generateSwapCalldata({
);
break;
}
case 'PancakeSwapV3': {
calldata = await generatePancake3Calls(amountNativeDecimals, exchangeContractAddress, path, unit.provider)
break;
}
default: {
throw new Error(`Factory ${factory} is not supported`)
}