Skip to content

Commit

Permalink
Expose "apply slippage" funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiTimesChi committed Dec 26, 2023
1 parent d07b99e commit 43ed59f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/sdk-router/src/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ import {
} from './router'
import * as operations from './operations'
import { ETH_NATIVE_TOKEN_ADDRESS } from './utils/handleNativeToken'
import { Query, modifyDeadline } from './module'
import {
Query,
applySlippage,
applySlippageInBips,
modifyDeadline,
} from './module'

class SynapseSDK {
public allRouterSets: RouterSet[]
Expand Down Expand Up @@ -71,6 +76,8 @@ class SynapseSDK {
public swapQuote = operations.swapQuote

// Define Query operations
public applySlippage = applySlippage
public applySlippageInBips = applySlippageInBips
public modifyDeadline = modifyDeadline
}

Expand Down

0 comments on commit 43ed59f

Please sign in to comment.