Skip to content

Commit 7af37c0

Browse files
committed
connect: Added QuoteWarning type
1 parent fbdc5ab commit 7af37c0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

connect/src/routes/types.ts

+9
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,18 @@ export type Quote<
7070

7171
// Route-specific quote details, optional
7272
details?: D;
73+
74+
// If the transfer being quoted has any warnings
75+
// such as high slippage or a delay, they will be included here
76+
warnings?: QuoteWarning[];
7377
};
7478

7579
export type QuoteError = {
7680
success: false;
7781
error: Error;
7882
};
83+
84+
export interface QuoteWarning {
85+
message: string;
86+
url?: string;
87+
}

0 commit comments

Comments
 (0)