Skip to content

Commit

Permalink
Increase Polygon gas price (#294)
Browse files Browse the repository at this point in the history
Co-authored-by: Samuel@Tatum <[email protected]>
  • Loading branch information
Hathoriel and samuelsramko authored Jan 5, 2022
1 parent 4d7912b commit 3ea6188
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tatumio/tatum",
"version": "1.30.6",
"version": "1.30.7",
"description": "Tatum API client allows browsers and Node.js clients to interact with Tatum API.",
"main": "dist/src/index.js",
"repository": "https://github.com/tatumio/tatum-js",
Expand Down
2 changes: 1 addition & 1 deletion src/transaction/polygon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import { obtainCustodialAddressType } from '../wallet';
*/
export const polygonGetGasPriceInWei = async () => {
const { data } = await axios.get('https://gasstation-mainnet.matic.network');
return Web3.utils.toWei(`${Math.max(30, Math.min(Math.ceil(data.fast / 10), 100))}`, 'gwei');
return Web3.utils.toWei(`${Math.max(30, Math.min(Math.ceil(data.fast), 1000))}`, 'gwei');
};

const prepareGeneralTx = async (client: Web3, testnet: boolean, fromPrivateKey?: string, signatureId?: string, to?: string, amount?: string, nonce?: number,
Expand Down

0 comments on commit 3ea6188

Please sign in to comment.