Skip to content

Commit cfbfbfa

Browse files
committed
update config
1 parent 7e2c0a9 commit cfbfbfa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/swapService/runner.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ function loadPipeline(swapParams: SwapParams) {
3636
export async function runPipeline(
3737
swapParams: SwapParams,
3838
): Promise<SwapApiResponse[]> {
39+
if (swapParams.chainId === 43114) {
40+
throw new ApiError(StatusCodes.NOT_FOUND, "Swap quote not found", [])
41+
}
42+
3943
const pipeline = loadPipeline(swapParams)
4044

4145
const allResults: StrategyResult[] = []

0 commit comments

Comments
 (0)