Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/change default gas price #280

Merged
merged 7 commits into from
Dec 28, 2023
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
Loading