@depay/widgets 6.18.0 → 6.18.1

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.
@@ -68297,7 +68297,7 @@ var PaymentValueProvider = (function (props) {
68297
68297
  var paymentAmountInBN = BigNumber$4.from(payment.route.fromAmount);
68298
68298
  var divPercent = 100 - reverseAmountOutBN.mul(BigNumber$4.from('100')).div(paymentAmountInBN).abs().toString();
68299
68299
 
68300
- if (divPercent > 5) {
68300
+ if (divPercent >= 10) {
68301
68301
  setPaymentValueLoss(divPercent);
68302
68302
  } else {
68303
68303
  setPaymentValueLoss(null);
package/dist/esm/index.js CHANGED
@@ -2822,7 +2822,7 @@ var PaymentValueProvider = (function (props) {
2822
2822
  var paymentAmountInBN = ethers.BigNumber.from(payment.route.fromAmount);
2823
2823
  var divPercent = 100 - reverseAmountOutBN.mul(ethers.BigNumber.from('100')).div(paymentAmountInBN).abs().toString();
2824
2824
 
2825
- if (divPercent > 5) {
2825
+ if (divPercent >= 10) {
2826
2826
  setPaymentValueLoss(divPercent);
2827
2827
  } else {
2828
2828
  setPaymentValueLoss(null);
@@ -68303,7 +68303,7 @@
68303
68303
  var paymentAmountInBN = BigNumber$4.from(payment.route.fromAmount);
68304
68304
  var divPercent = 100 - reverseAmountOutBN.mul(BigNumber$4.from('100')).div(paymentAmountInBN).abs().toString();
68305
68305
 
68306
- if (divPercent > 5) {
68306
+ if (divPercent >= 10) {
68307
68307
  setPaymentValueLoss(divPercent);
68308
68308
  } else {
68309
68309
  setPaymentValueLoss(null);
package/dist/umd/index.js CHANGED
@@ -2817,7 +2817,7 @@
2817
2817
  var paymentAmountInBN = ethers.ethers.BigNumber.from(payment.route.fromAmount);
2818
2818
  var divPercent = 100 - reverseAmountOutBN.mul(ethers.ethers.BigNumber.from('100')).div(paymentAmountInBN).abs().toString();
2819
2819
 
2820
- if (divPercent > 5) {
2820
+ if (divPercent >= 10) {
2821
2821
  setPaymentValueLoss(divPercent);
2822
2822
  } else {
2823
2823
  setPaymentValueLoss(null);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@depay/widgets",
3
3
  "moduleName": "DePayWidgets",
4
- "version": "6.18.0",
4
+ "version": "6.18.1",
5
5
  "description": "Web3 Payments with any token. DePay simplifies and improves Web3 Payments with the power of DeFi. Accept any token with on-the-fly conversion.",
6
6
  "main": "./dist/umd/index.js",
7
7
  "module": "./dist/esm/index.js",