diff --git a/package.json b/package.json index 2e388e2a1..2d1c9eefc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@paraswap/dex-lib", - "version": "2.9.25", + "version": "2.9.26", "main": "build/index.js", "types": "build/index.d.ts", "repository": "https://github.com/paraswap/paraswap-dex-lib", diff --git a/src/dex/curve-v1-factory/price-handlers/price-handler.ts b/src/dex/curve-v1-factory/price-handlers/price-handler.ts index ffc169e88..1a9a05d40 100644 --- a/src/dex/curve-v1-factory/price-handlers/price-handler.ts +++ b/src/dex/curve-v1-factory/price-handlers/price-handler.ts @@ -96,6 +96,14 @@ export class PriceHandler { e.message.startsWith(CONVERGENCE_ERROR_PREFIX) ) { this.logger.trace(`Convergence Error: `, e); + } else if ( + e instanceof Error && + e.message.startsWith(`Division by zero`) + ) { + this.logger.trace( + `Zero division Error suppressed because mostly it is expected`, + e, + ); } else { this.logger.error(`Unexpected error while calculating price: `, e); }