mirror of
https://github.com/Brotocol-xyz/bro-sdk.git
synced 2026-04-29 03:45:07 +08:00
fixup! feat(swapHelpers): add fetchKyberSwapPossibleRoutesFactory
This commit is contained in:
@@ -51,6 +51,8 @@ export const fetchIceScreamSwapPossibleRoutesFactory = (options: {
|
||||
),
|
||||
)),
|
||||
)
|
||||
|
||||
if (info.abortSignal?.aborted) break
|
||||
}
|
||||
|
||||
return res.flat()
|
||||
|
||||
@@ -53,6 +53,8 @@ export const fetchKyberSwapPossibleRoutesFactory = (options: {
|
||||
),
|
||||
)),
|
||||
)
|
||||
|
||||
if (info.abortSignal?.aborted) break
|
||||
}
|
||||
|
||||
return res.flat()
|
||||
|
||||
@@ -52,6 +52,8 @@ export const fetchMatchaPossibleRoutesFactory = (options: {
|
||||
),
|
||||
)),
|
||||
)
|
||||
|
||||
if (info.abortSignal?.aborted) break
|
||||
}
|
||||
|
||||
return res.flat()
|
||||
|
||||
@@ -43,6 +43,7 @@ export interface DexAggregatorRoute {
|
||||
|
||||
export type FetchRoutesImpl = (info: {
|
||||
possibleRoutes: QueryableRoute[]
|
||||
abortSignal?: AbortSignal
|
||||
}) => Promise<DexAggregatorRoute[]>
|
||||
|
||||
export async function getQueryableRoutes(
|
||||
|
||||
Reference in New Issue
Block a user