Skip to content

Commit

Permalink
(feat) Changed default gas price from 500000000 to 160000000
Browse files Browse the repository at this point in the history
  • Loading branch information
abel committed Dec 11, 2023
1 parent b0ffc20 commit 07a78f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyinjective/constant.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion pyinjective/core/broadcaster.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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(
Expand Down

0 comments on commit 07a78f9

Please sign in to comment.