@depay/web3-payments
Advanced tools
Comparing version 12.0.0 to 12.0.1
@@ -707,3 +707,3 @@ import Blockchains from '@depay/web3-blockchains'; | ||
params: transactionParams({ paymentRoute, exchangeRoute, event }), | ||
value: transactionValue({ paymentRoute, exchangeRoute }) | ||
value: transactionValue({ paymentRoute }) | ||
}; | ||
@@ -847,6 +847,6 @@ | ||
let transactionValue = ({ paymentRoute, exchangeRoute })=> { | ||
let transactionValue = ({ paymentRoute })=> { | ||
if(paymentRoute.fromToken.address == Blockchains[paymentRoute.blockchain].currency.address) { | ||
if(exchangeRoute) { | ||
return exchangeRoute.amountIn.toString() | ||
if(!paymentRoute.directTransfer) { | ||
return paymentRoute.fromAmount.toString() | ||
} else { // direct payment | ||
@@ -853,0 +853,0 @@ return paymentRoute.toAmount.toString() |
@@ -711,3 +711,3 @@ (function (global, factory) { | ||
params: transactionParams({ paymentRoute, exchangeRoute, event }), | ||
value: transactionValue({ paymentRoute, exchangeRoute }) | ||
value: transactionValue({ paymentRoute }) | ||
}; | ||
@@ -851,6 +851,6 @@ | ||
let transactionValue = ({ paymentRoute, exchangeRoute })=> { | ||
let transactionValue = ({ paymentRoute })=> { | ||
if(paymentRoute.fromToken.address == Blockchains__default["default"][paymentRoute.blockchain].currency.address) { | ||
if(exchangeRoute) { | ||
return exchangeRoute.amountIn.toString() | ||
if(!paymentRoute.directTransfer) { | ||
return paymentRoute.fromAmount.toString() | ||
} else { // direct payment | ||
@@ -857,0 +857,0 @@ return paymentRoute.toAmount.toString() |
{ | ||
"name": "@depay/web3-payments", | ||
"moduleName": "Web3Payments", | ||
"version": "12.0.0", | ||
"version": "12.0.1", | ||
"description": "JavaScript library to scan crypto wallets for liquefiable assets and perform cost-effective, auto-converted payments on-chain.", | ||
@@ -6,0 +6,0 @@ "main": "dist/umd/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
16
656390