Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
dohaki committed Jan 14, 2025
1 parent 7678520 commit 124499f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions api/_dexes/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,3 +416,16 @@ export function assertMinOutputAmount(
);
}
}

export class NoQuoteFoundError extends Error {
constructor(params: {
originSwapChainId: number;
inputTokenSymbol: string;
destinationSwapChainId: number;
outputTokenSymbol: string;
}) {
super(
`No quote found for ${params.originSwapChainId} ${params.inputTokenSymbol} -> ${params.destinationSwapChainId} ${params.outputTokenSymbol}`
);
}
}

0 comments on commit 124499f

Please sign in to comment.