Skip to content

Commit

Permalink
feat(paymaster-tracking): fix logci
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfourzerofour committed Nov 28, 2023
1 parent 25a0455 commit 6bfd59f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/pool/src/mempool/paymaster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ impl PaymasterBalance {
/// check that new user op cost is within an acceptable range
fn validate_user_op_cost(&mut self, max_op_cost: U256) -> bool {
let temp_pending = self.pending.saturating_add(max_op_cost);
self.pending.saturating_sub(temp_pending).gt(&U256::zero())
self.confirmed
.saturating_sub(temp_pending)
.gt(&U256::zero())
}
}

0 comments on commit 6bfd59f

Please sign in to comment.