diff --git a/package.json b/package.json index d54b401..1f69f76 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.19.48-dev.1-rc-1", + "version": "0.19.48-dev.2-rc-0", "description": "Orion Protocol SDK", "main": "./lib/index.cjs", "module": "./lib/index.js", diff --git a/src/Unit/Exchange/generateSwapCalldata.ts b/src/Unit/Exchange/generateSwapCalldata.ts index 1679376..15f7399 100644 --- a/src/Unit/Exchange/generateSwapCalldata.ts +++ b/src/Unit/Exchange/generateSwapCalldata.ts @@ -5,13 +5,12 @@ import { concat, defaultAbiCoder, type BytesLike } from 'ethers/lib/utils.js'; import { safeGet, SafeArray } from '../../utils/safeGetters.js'; import type Unit from '../index.js'; import { simpleFetch } from 'simple-typed-fetch'; -import type { Exchange } from '../../types.js'; const EXECUTOR_SWAP_FUNCTION = "func_70LYiww" export type Factory = "UniswapV2" | "UniswapV3" | "Curve" | "OrionV2" | "OrionV3" -const exchangeToType: Partial> = { +const exchangeToType: Partial> = { 'SPOOKYSWAP': 'UniswapV2', 'PANCAKESWAP': 'UniswapV2', 'UNISWAP': 'UniswapV2', @@ -33,7 +32,7 @@ export type SwapInfo = { pool: string, assetIn: string, assetOut: string, - factory: Exchange + factory: string } export type CallParams = {