flipmeme-sdk 1.3.86 → 1.3.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -35148,13 +35148,13 @@ var EthereumConnector = class {
35148
35148
  const minPriceForEth = new import_decimal2.default(2).mul(new import_decimal2.default(10).pow(16)).toString();
35149
35149
  const maxPriceForEth = new import_decimal2.default(10).pow(18).toString();
35150
35150
  if (priceInDecimal.lessThan(minPriceForEth) || priceInDecimal.greaterThan(maxPriceForEth)) {
35151
- return [false, `Price ${price} is out of the allowed range [${minPriceForEth}, ${maxPriceForEth}].`];
35151
+ return [false, `Price ${import_ethers62.ethers.utils.formatEther(price)} is out of the allowed range [${import_ethers62.ethers.utils.formatEther(minPriceForEth)} ETH, ${import_ethers62.ethers.utils.formatEther(maxPriceForEth)} ETH].`];
35152
35152
  }
35153
35153
  } else if (this.config.chainId === 8453 /* Base */ || this.config.chainId === 84532 /* BaseSepolia */) {
35154
35154
  const minPriceForEth = new import_decimal2.default(10).pow(16).toString();
35155
35155
  const maxPriceForEth = new import_decimal2.default(5).mul(new import_decimal2.default(10).pow(16)).toString();
35156
35156
  if (priceInDecimal.lessThan(minPriceForEth) || priceInDecimal.greaterThan(maxPriceForEth)) {
35157
- return [false, `Price ${price} is out of the allowed range [${minPriceForEth}, ${maxPriceForEth}].`];
35157
+ return [false, `Price ${import_ethers62.ethers.utils.formatEther(price)} is out of the allowed range [${import_ethers62.ethers.utils.formatEther(minPriceForEth)} ETH, ${import_ethers62.ethers.utils.formatEther(maxPriceForEth)} ETH].`];
35158
35158
  }
35159
35159
  }
35160
35160
  return [true, ""];