Skip to content

Commit

Permalink
Merge pull request #522 from paraswap/fix/1323-get-dex-issue
Browse files Browse the repository at this point in the history
BACK-1323: Not allow to throw when checking if sequential dex or not
  • Loading branch information
Verisana authored Oct 5, 2023
2 parents 4eef480 + d3cc6cc commit b69a114
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@paraswap/dex-lib",
"version": "2.37.1",
"version": "2.37.2",
"main": "build/index.js",
"types": "build/index.d.ts",
"repository": "https://github.com/paraswap/paraswap-dex-lib",
Expand Down
9 changes: 6 additions & 3 deletions src/dex/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,11 @@ export class DexAdapterService {
}

doesPreProcessingRequireSequentiality(dexKey: string): boolean {
const dex = this.getDexByKey(dexKey);

return !!dex.needsSequentialPreprocessing;
try {
const dex = this.getDexByKey(dexKey);
return !!dex.needsSequentialPreprocessing;
} catch (e) {
return false;
}
}
}

0 comments on commit b69a114

Please sign in to comment.