Skip to content

Commit

Permalink
feat: remove slippage config and modes with simple slippage number
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdev3 committed May 21, 2024
1 parent 576e524 commit 3dcb9d5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
12 changes: 3 additions & 9 deletions src/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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;
Expand All @@ -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;
Expand Down
6 changes: 0 additions & 6 deletions src/squid/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,3 @@ export interface CosmosCctpCall {
burnToken: string;
};
}

export enum SlippageMode {
AGGRESSIVE,
NORMAL,
FLEXIBLE,
}

0 comments on commit 3dcb9d5

Please sign in to comment.