Skip to content

Commit

Permalink
Merge pull request mouseless0x#49 from mevsando/master
Browse files Browse the repository at this point in the history
Block gas_fees bug
  • Loading branch information
mouseless0x authored Aug 8, 2023
2 parents da4cac1 + ec1a025 commit eebeb43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bot/crates/artemis-core/src/collectors/block_collector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ where
let stream = stream.filter_map(|block| match block.number {
Some(number) => Some(NewBlock {
number,
gas_limit: block.gas_used,
gas_used: block.gas_limit,
gas_limit: block.gas_limit,
gas_used: block.gas_used,
base_fee_per_gas: block.base_fee_per_gas.unwrap_or_default(),
timestamp: block.timestamp,
}),
Expand Down
2 changes: 1 addition & 1 deletion bot/crates/strategy/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ impl SandoRecipe {
gas: Some((U256::from(self.backrun_gas_used) * 10) / 7),
value: Some(self.backrun.value.into()),
data: Some(self.backrun.data.into()),
nonce: Some(nonce),
nonce: Some(nonce+1),
access_list: access_list_to_ethers(self.backrun.access_list),
max_priority_fee_per_gas: Some(max_fee),
max_fee_per_gas: Some(max_fee),
Expand Down

0 comments on commit eebeb43

Please sign in to comment.