Skip to content

Commit 29dffd1

Browse files
committedJul 15, 2024
connect: Added TransferQuoteWarning interface
Useful for routes to return warning messages in the TransferQuote (e.g. high slippage, governor / rate limit delay, etc.).
1 parent c213993 commit 29dffd1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎connect/src/types.ts

+8
Original file line numberDiff line numberDiff line change
@@ -168,4 +168,12 @@ export interface TransferQuote {
168168
// this will contain the amount of native gas that is to be minted
169169
// on the destination chain given the current swap rates
170170
destinationNativeGas?: bigint;
171+
// If the transfer being quoted has any warnings
172+
// such as high slippage or a delay, they will be included here
173+
warnings?: TransferQuoteWarning[];
174+
}
175+
176+
export interface TransferQuoteWarning {
177+
message: string;
178+
url?: string;
171179
}

0 commit comments

Comments
 (0)
Please sign in to comment.