We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e2c0a9 commit cfbfbfaCopy full SHA for cfbfbfa
src/swapService/runner.ts
@@ -36,6 +36,10 @@ function loadPipeline(swapParams: SwapParams) {
36
export async function runPipeline(
37
swapParams: SwapParams,
38
): Promise<SwapApiResponse[]> {
39
+ if (swapParams.chainId === 43114) {
40
+ throw new ApiError(StatusCodes.NOT_FOUND, "Swap quote not found", [])
41
+ }
42
+
43
const pipeline = loadPipeline(swapParams)
44
45
const allResults: StrategyResult[] = []
0 commit comments