Skip to content

Commit

Permalink
chore: bump prio fee (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
onbjerg authored Oct 11, 2024
1 parent 865cba1 commit 4f19e13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/wallet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,12 @@ where
request = request.gas_limit(estimate.to());

// set gas fees
let (max_fee_per_gas, max_priority_fee_per_gas) =
let (base_fee, max_priority_fee_per_gas) =
LoadFee::eip1559_fees(&self.inner.eth_api, None, None)
.await
.map_err(|_| AlphaNetWalletError::InvalidTransactionRequest)?;
request.max_fee_per_gas = Some((max_fee_per_gas + max_priority_fee_per_gas).to());
request.max_priority_fee_per_gas = Some(max_priority_fee_per_gas.to());
request.max_fee_per_gas = Some((base_fee + max_priority_fee_per_gas).to::<u128>() * 2u128);
request.max_priority_fee_per_gas = Some((max_priority_fee_per_gas * U256::from(2)).to());
request.gas_price = None;

// build and sign
Expand Down

0 comments on commit 4f19e13

Please sign in to comment.