From 07a78f98e96c00c6b525420adbcbd00229b4f63a Mon Sep 17 00:00:00 2001 From: abel Date: Mon, 11 Dec 2023 12:39:50 -0300 Subject: [PATCH] (feat) Changed default gas price from 500000000 to 160000000 --- pyinjective/constant.py | 2 +- pyinjective/core/broadcaster.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pyinjective/constant.py b/pyinjective/constant.py index 91cc4839..07274205 100644 --- a/pyinjective/constant.py +++ b/pyinjective/constant.py @@ -1,7 +1,7 @@ import os from configparser import ConfigParser -GAS_PRICE = 500_000_000 +GAS_PRICE = 160_000_000 GAS_FEE_BUFFER_AMOUNT = 25_000 MAX_MEMO_CHARACTERS = 256 ADDITIONAL_CHAIN_FORMAT_DECIMALS = 18 diff --git a/pyinjective/core/broadcaster.py b/pyinjective/core/broadcaster.py index 45ca0fca..22df562b 100644 --- a/pyinjective/core/broadcaster.py +++ b/pyinjective/core/broadcaster.py @@ -9,6 +9,7 @@ from pyinjective import PrivateKey, PublicKey, Transaction from pyinjective.async_client import AsyncClient from pyinjective.composer import Composer +from pyinjective.constant import GAS_PRICE from pyinjective.core.gas_limit_estimator import GasLimitEstimator from pyinjective.core.network import Network @@ -35,7 +36,7 @@ def messages_prepared_for_transaction(self, messages: List[any_pb2.Any]) -> List class TransactionFeeCalculator(ABC): - DEFAULT_GAS_PRICE = 500_000_000 + DEFAULT_GAS_PRICE = GAS_PRICE @abstractmethod async def configure_gas_fee_for_transaction(