Skip to content

Commit

Permalink
v13.8.0: reduce evm payment tx deadline to 1 hour
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNe0x1 committed Feb 19, 2024
1 parent f2ad30d commit ec9ca92
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/esm/index.evm.js
Original file line number Diff line number Diff line change
Expand Up @@ -50526,7 +50526,7 @@ const transactionParams = async ({ paymentRoute })=> {
return [paymentRoute.toAddress, paymentRoute.toAmount]
}
} else {
const deadline = Math.ceil(new Date()/1000)+86400; // 1 day
const deadline = Math.ceil(new Date()/1000)+3600; // 1 hour
const exchangeRoute = paymentRoute.exchangeRoutes[0];
const exchangeType = getExchangeType({ exchangeRoute, blockchain: paymentRoute.blockchain });
const exchangeTransaction = !exchangeRoute ? undefined : await exchangeRoute.getTransaction({
Expand Down
2 changes: 1 addition & 1 deletion dist/esm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2096,7 +2096,7 @@ const transactionParams = async ({ paymentRoute })=> {
return [paymentRoute.toAddress, paymentRoute.toAmount]
}
} else {
const deadline = Math.ceil(new Date()/1000)+86400; // 1 day
const deadline = Math.ceil(new Date()/1000)+3600; // 1 hour
const exchangeRoute = paymentRoute.exchangeRoutes[0];
const exchangeType = getExchangeType({ exchangeRoute, blockchain: paymentRoute.blockchain });
const exchangeTransaction = !exchangeRoute ? undefined : await exchangeRoute.getTransaction({
Expand Down
2 changes: 1 addition & 1 deletion dist/umd/index.evm.js
Original file line number Diff line number Diff line change
Expand Up @@ -50532,7 +50532,7 @@
return [paymentRoute.toAddress, paymentRoute.toAmount]
}
} else {
const deadline = Math.ceil(new Date()/1000)+86400; // 1 day
const deadline = Math.ceil(new Date()/1000)+3600; // 1 hour
const exchangeRoute = paymentRoute.exchangeRoutes[0];
const exchangeType = getExchangeType({ exchangeRoute, blockchain: paymentRoute.blockchain });
const exchangeTransaction = !exchangeRoute ? undefined : await exchangeRoute.getTransaction({
Expand Down
2 changes: 1 addition & 1 deletion dist/umd/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2101,7 +2101,7 @@
return [paymentRoute.toAddress, paymentRoute.toAmount]
}
} else {
const deadline = Math.ceil(new Date()/1000)+86400; // 1 day
const deadline = Math.ceil(new Date()/1000)+3600; // 1 hour
const exchangeRoute = paymentRoute.exchangeRoutes[0];
const exchangeType = getExchangeType({ exchangeRoute, blockchain: paymentRoute.blockchain });
const exchangeTransaction = !exchangeRoute ? undefined : await exchangeRoute.getTransaction({
Expand Down
2 changes: 1 addition & 1 deletion package.evm.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/web3-payments-evm",
"moduleName": "Web3Payments",
"version": "13.7.1",
"version": "13.8.0",
"description": "JavaScript library to scan crypto wallets for liquefiable assets and perform cost-effective, auto-converted payments on-chain.",
"main": "dist/umd/index.evm.js",
"module": "dist/esm/index.evm.js",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/web3-payments",
"moduleName": "Web3Payments",
"version": "13.7.1",
"version": "13.8.0",
"description": "JavaScript library to scan crypto wallets for liquefiable assets and perform cost-effective, auto-converted payments on-chain.",
"main": "dist/umd/index.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion package.solana.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/web3-payments-solana",
"moduleName": "Web3Payments",
"version": "13.7.1",
"version": "13.8.0",
"description": "JavaScript library to scan crypto wallets for liquefiable assets and perform cost-effective, auto-converted payments on-chain.",
"main": "dist/umd/index.solana.js",
"module": "dist/esm/index.solana.js",
Expand Down
2 changes: 1 addition & 1 deletion src/platforms/evm/transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const transactionParams = async ({ paymentRoute })=> {
return [paymentRoute.toAddress, paymentRoute.toAmount]
}
} else {
const deadline = Math.ceil(new Date()/1000)+86400 // 1 day
const deadline = Math.ceil(new Date()/1000)+3600 // 1 hour
const exchangeRoute = paymentRoute.exchangeRoutes[0]
const exchangeType = getExchangeType({ exchangeRoute, blockchain: paymentRoute.blockchain })
const exchangeTransaction = !exchangeRoute ? undefined : await exchangeRoute.getTransaction({
Expand Down

0 comments on commit ec9ca92

Please sign in to comment.