From ec9ca9286640a99d1ff257a53d7f678e6fb9516f Mon Sep 17 00:00:00 2001 From: Sebastian Pape <0xneo11@gmail.com> Date: Mon, 19 Feb 2024 09:58:26 +0100 Subject: [PATCH] v13.8.0: reduce evm payment tx deadline to 1 hour --- dist/esm/index.evm.js | 2 +- dist/esm/index.js | 2 +- dist/umd/index.evm.js | 2 +- dist/umd/index.js | 2 +- package.evm.json | 2 +- package.json | 2 +- package.solana.json | 2 +- src/platforms/evm/transaction.js | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dist/esm/index.evm.js b/dist/esm/index.evm.js index fd5e0a7..933ab72 100644 --- a/dist/esm/index.evm.js +++ b/dist/esm/index.evm.js @@ -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({ diff --git a/dist/esm/index.js b/dist/esm/index.js index 450a1fb..8f567a8 100644 --- a/dist/esm/index.js +++ b/dist/esm/index.js @@ -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({ diff --git a/dist/umd/index.evm.js b/dist/umd/index.evm.js index 9062543..3c790e3 100644 --- a/dist/umd/index.evm.js +++ b/dist/umd/index.evm.js @@ -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({ diff --git a/dist/umd/index.js b/dist/umd/index.js index cf5b0d2..af60a98 100644 --- a/dist/umd/index.js +++ b/dist/umd/index.js @@ -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({ diff --git a/package.evm.json b/package.evm.json index 7a71b22..6b20cf9 100644 --- a/package.evm.json +++ b/package.evm.json @@ -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", diff --git a/package.json b/package.json index c43fcf6..a855ab4 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/package.solana.json b/package.solana.json index 8f7d5a8..e15d009 100644 --- a/package.solana.json +++ b/package.solana.json @@ -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", diff --git a/src/platforms/evm/transaction.js b/src/platforms/evm/transaction.js index 9748a76..bd8acdf 100644 --- a/src/platforms/evm/transaction.js +++ b/src/platforms/evm/transaction.js @@ -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({