Skip to content

Commit

Permalink
Transaction replacement fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Oct 20, 2023
1 parent 7d732f4 commit 53e9a53
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions crates/erc20_payment_lib/src/sender/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -523,10 +523,6 @@ pub async fn process_transaction(
} else if fee_per_gas_bumped_10 && !priority_fee_changed_10 {
replacement_priority_fee =
tx_priority_fee_u256 * U256::from(11) / U256::from(10) + U256::from(1);
if replacement_priority_fee > replacement_max_fee_per_gas {
//priority fee cannot be greater than max fee per gas
replacement_priority_fee = replacement_max_fee_per_gas;
}
log::warn!(
"Replacement priority fee is bumped by 10% from {} to {}",
tx_priority_fee,
Expand Down

0 comments on commit 53e9a53

Please sign in to comment.