Skip to content

Commit

Permalink
Merge pull request #79 from bcnmy/remediations/SMA-568-btpm-v2-audit
Browse files Browse the repository at this point in the history
Remediations/sma 568 btpm v2 audit
  • Loading branch information
livingrockrises authored Feb 12, 2024
2 parents 4fd1993 + a2bdc31 commit b9e1876
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions contracts/token/BiconomyTokenPaymaster.sol
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ contract BiconomyTokenPaymaster is
uint32 private constant PRICE_DENOMINATOR = 1e6;

// Gas used in EntryPoint._handlePostOp() method (including this#postOp() call)
uint256 public unaccountedEPGasOverhead = 45000;
// postOp() with ORACLE BASED priceSource = 28420
// max postOp() plus EP buffer
uint256 public unaccountedEPGasOverhead = 35000;

// Always rely on verifyingSigner..
address public verifyingSigner;
Expand Down Expand Up @@ -364,7 +366,7 @@ contract BiconomyTokenPaymaster is
assembly ("memory-safe") {
let offset := context.offset

account := calldataload(context.offset)
account := calldataload(offset)
offset := add(offset, 0x20)

feeToken := calldataload(offset)
Expand Down

0 comments on commit b9e1876

Please sign in to comment.