Skip to content

Commit

Permalink
fix src.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lufaque committed Jan 8, 2025
1 parent 07102b6 commit fbaeb0c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tasks/CLFScripts/dist/infra/SRC.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@
const getGasPriceByPriceFeeds = (nativeUsdPriceFeed, dstAssetUsdPriceFeed, gasPriceInDstCurrency) => {
if (dstAssetUsdPriceFeed === undefined) return 1n;
const srcNativeDstNativeRate = nativeUsdPriceFeed / dstAssetUsdPriceFeed;
if (srcNativeDstNativeRate === 0n) return 1n;
if (BigInt(srcNativeDstNativeRate) === 0n) return 1n;
const dstGasPriceInSrcCurrency = gasPriceInDstCurrency / srcNativeDstNativeRate;
return dstGasPriceInSrcCurrency < 1n ? 1n : dstGasPriceInSrcCurrency;
};
Expand Down
Loading

0 comments on commit fbaeb0c

Please sign in to comment.