Skip to content

Commit

Permalink
working on replacements
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Oct 20, 2023
1 parent 7beeae8 commit 0d6887c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions crates/erc20_payment_lib/src/sender/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,7 @@ pub async fn process_transaction(
return Ok((web3_tx_dao.clone(), ProcessTransactionResult::Unknown));
};

let is_polygon_eco_mode = chain_setup.chain_id == 137
&& get_env_bool_value("POLYGON_ECO_MODE")
;
let is_polygon_eco_mode = chain_setup.chain_id == 137 && get_env_bool_value("POLYGON_ECO_MODE");

let web3 = payment_setup.get_provider(chain_id).map_err(|_e| {
err_create!(TransactionFailedError::new(&format!(
Expand Down Expand Up @@ -545,8 +543,7 @@ pub async fn process_transaction(
let config_priority_fee =
u256_to_rust_dec(chain_setup.priority_fee, Some(9)).map_err(err_from!())?;

if tx_priority_fee > tx_fee_per_gas
{
if tx_priority_fee > tx_fee_per_gas {
log::error!(
"Transaction priority fee is greater than max fee per gas for tx: {}",
web3_tx_dao.id
Expand Down

0 comments on commit 0d6887c

Please sign in to comment.