diff --git a/package.json b/package.json index f3be2a4..0b16f90 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@0xsquid/squid-types", - "version": "0.1.69", + "version": "0.1.70", "description": "JS and TS types relating to 0xsquid related projects.", "main": "dist/index.js", "types": "./dist/index.d.ts", diff --git a/src/routes/index.ts b/src/routes/index.ts index 5b7e7d1..0e0c8a3 100644 --- a/src/routes/index.ts +++ b/src/routes/index.ts @@ -2,7 +2,7 @@ import { ChainData, ChainType } from "../chains"; import { Dex, DexName } from "../dexes"; import { FeeCost, GasCost } from "../fees"; import { QuoteAction } from "../quote"; -import { ChainCall, SlippageMode, SquidData } from "../squid"; +import { ChainCall, SquidData } from "../squid"; import { Token } from "../tokens"; import { WrapDirection, WrapperType } from "../wrappers"; import { BridgeType } from "../bridges"; @@ -23,10 +23,7 @@ export interface RouteRequest { toChain: string; toToken: string; toAddress?: string; - slippageConfig: { - slippage?: number; - autoMode: SlippageMode; - }; + slippage: number; quoteOnly?: boolean; enableBoost?: boolean; preHook?: Hook; @@ -46,10 +43,7 @@ export interface RouteRequestPopulated { fromAmount: string; fromAddress?: string; toAddress?: string; - slippageConfig: { - slippage?: number; - autoMode: SlippageMode; - }; + slippage: number; quoteOnly?: boolean; enableBoost?: boolean; preHook?: Hook; diff --git a/src/squid/index.ts b/src/squid/index.ts index 017d00f..7373130 100644 --- a/src/squid/index.ts +++ b/src/squid/index.ts @@ -156,9 +156,3 @@ export interface CosmosCctpCall { burnToken: string; }; } - -export enum SlippageMode { - AGGRESSIVE, - NORMAL, - FLEXIBLE, -}