Skip to content

Commit cfeb5b4

Browse files
author
abel
committed
(feat) Changed default gas price from 500000000 to 160000000
1 parent 2aeca6a commit cfeb5b4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pyinjective/constant.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
from configparser import ConfigParser
33

4-
GAS_PRICE = 500_000_000
4+
GAS_PRICE = 160_000_000
55
GAS_FEE_BUFFER_AMOUNT = 25_000
66
MAX_MEMO_CHARACTERS = 256
77
ADDITIONAL_CHAIN_FORMAT_DECIMALS = 18

pyinjective/core/broadcaster.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from pyinjective import PrivateKey, PublicKey, Transaction
1010
from pyinjective.async_client import AsyncClient
1111
from pyinjective.composer import Composer
12+
from pyinjective.constant import GAS_PRICE
1213
from pyinjective.core.gas_limit_estimator import GasLimitEstimator
1314
from pyinjective.core.network import Network
1415

@@ -35,7 +36,7 @@ def messages_prepared_for_transaction(self, messages: List[any_pb2.Any]) -> List
3536

3637

3738
class TransactionFeeCalculator(ABC):
38-
DEFAULT_GAS_PRICE = 500_000_000
39+
DEFAULT_GAS_PRICE = GAS_PRICE
3940

4041
@abstractmethod
4142
async def configure_gas_fee_for_transaction(

0 commit comments

Comments
 (0)