diff --git a/src/config/networks.py b/src/config/networks.py index 9644a09a..26e47c87 100644 --- a/src/config/networks.py +++ b/src/config/networks.py @@ -38,6 +38,7 @@ class NetworkConfig: SHAPELLA_EPOCH: int MULTICALL_CONTRACT_ADDRESS: ChecksumAddress SHARED_MEV_ESCROW_CONTRACT_ADDRESS: ChecksumAddress + MAX_PRIORITY_FEE_PER_GAS_GWEI: int @property def SHAPELLA_FORK(self) -> ConsensusFork: @@ -96,6 +97,7 @@ def IS_SUPPORT_V2_MIGRATION(self) -> bool: SHARED_MEV_ESCROW_CONTRACT_ADDRESS=Web3.to_checksum_address( '0x48319f97E5Da1233c21c48b80097c0FB7a20Ff86' ), + MAX_PRIORITY_FEE_PER_GAS_GWEI=5, ), HOLESKY: NetworkConfig( SYMBOL='HolETH', @@ -130,6 +132,7 @@ def IS_SUPPORT_V2_MIGRATION(self) -> bool: SHARED_MEV_ESCROW_CONTRACT_ADDRESS=Web3.to_checksum_address( '0xc98F25BcAA6B812a07460f18da77AF8385be7b56' ), + MAX_PRIORITY_FEE_PER_GAS_GWEI=1, ), GNOSIS: NetworkConfig( SYMBOL='xDAI', @@ -163,5 +166,6 @@ def IS_SUPPORT_V2_MIGRATION(self) -> bool: '0xcA11bde05977b3631167028862bE2a173976CA11' ), SHARED_MEV_ESCROW_CONTRACT_ADDRESS=Web3.to_checksum_address(EMPTY_ADDR_HEX), + MAX_PRIORITY_FEE_PER_GAS_GWEI=1, ), } diff --git a/src/config/settings.py b/src/config/settings.py index b2d546ca..242e4f8b 100644 --- a/src/config/settings.py +++ b/src/config/settings.py @@ -123,7 +123,9 @@ def set( self.metrics_host = metrics_host self.metrics_port = metrics_port self.max_fee_per_gas_gwei = max_fee_per_gas_gwei - self.max_priority_fee_per_gas_gwei = max_priority_fee_per_gas_gwei + self.max_priority_fee_per_gas_gwei = ( + max_priority_fee_per_gas_gwei or self.network_config.MAX_PRIORITY_FEE_PER_GAS_GWEI + ) self.deposit_data_file = ( Path(deposit_data_file) if deposit_data_file else vault_dir / 'deposit_data.json'