Skip to content

Commit

Permalink
feat: added flag for variable price impact (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
H3xept committed Feb 13, 2023
1 parent cedfeec commit 7adf21b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export interface RouteOptions {
exchanges?: AllowDenyPrefer
fee?: number // 0.03 = take 3% integrator fee (requires verified integrator to be set)
insurance?: boolean // whether the user want to insure their tx
hideRoutesWithGTEPriceImpact?: number // hide routes with price impact greater than or equal to this value
}

export type ToolsResponse = {
Expand Down Expand Up @@ -142,6 +143,7 @@ export interface QuoteRequest extends ToolConfiguration {
fee?: number | string
insurance?: boolean // indicates whether the user wants a quote with bridge insurance
allowDestinationCall?: boolean // (default : true) // destination calls are enabled by default
hideRoutesWithGTEPriceImpact?: number // hide routes with price impact greater than or equal to this value
}

export interface ContractCallQuoteRequest extends ToolConfiguration {
Expand All @@ -164,6 +166,7 @@ export interface ContractCallQuoteRequest extends ToolConfiguration {
referrer?: string
fee?: number | string
allowDestinationCall?: boolean // (default : true) // destination calls are enabled by default
hideRoutesWithGTEPriceImpact?: number // hide routes with price impact greater than or equal to this value
}

export interface ContractCallQuotesRequest extends ToolConfiguration {
Expand Down

0 comments on commit 7adf21b

Please sign in to comment.