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.mjs CHANGED
@@ -35094,13 +35094,13 @@ var EthereumConnector = class {
35094
35094
  const minPriceForEth = new Decimal2(2).mul(new Decimal2(10).pow(16)).toString();
35095
35095
  const maxPriceForEth = new Decimal2(10).pow(18).toString();
35096
35096
  if (priceInDecimal.lessThan(minPriceForEth) || priceInDecimal.greaterThan(maxPriceForEth)) {
35097
- return [false, `Price ${price} is out of the allowed range [${minPriceForEth}, ${maxPriceForEth}].`];
35097
+ return [false, `Price ${ethers2.utils.formatEther(price)} is out of the allowed range [${ethers2.utils.formatEther(minPriceForEth)} ETH, ${ethers2.utils.formatEther(maxPriceForEth)} ETH].`];
35098
35098
  }
35099
35099
  } else if (this.config.chainId === 8453 /* Base */ || this.config.chainId === 84532 /* BaseSepolia */) {
35100
35100
  const minPriceForEth = new Decimal2(10).pow(16).toString();
35101
35101
  const maxPriceForEth = new Decimal2(5).mul(new Decimal2(10).pow(16)).toString();
35102
35102
  if (priceInDecimal.lessThan(minPriceForEth) || priceInDecimal.greaterThan(maxPriceForEth)) {
35103
- return [false, `Price ${price} is out of the allowed range [${minPriceForEth}, ${maxPriceForEth}].`];
35103
+ return [false, `Price ${ethers2.utils.formatEther(price)} is out of the allowed range [${ethers2.utils.formatEther(minPriceForEth)} ETH, ${ethers2.utils.formatEther(maxPriceForEth)} ETH].`];
35104
35104
  }
35105
35105
  }
35106
35106
  return [true, ""];