Skip to content

Commit

Permalink
Merge pull request #52 from bcnmy/fixes/zellic-audit-remediations-VPMV2
Browse files Browse the repository at this point in the history
Fixes/zellic audit remediations vpmv2
  • Loading branch information
livingrockrises authored Nov 28, 2023
2 parents cca5a30 + ebbe8ae commit 1c5157c
Show file tree
Hide file tree
Showing 12 changed files with 801 additions and 139 deletions.
3 changes: 2 additions & 1 deletion contracts/verifying/VerifyingSingletonPaymasterV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ contract VerifyingSingletonPaymasterV2 is
sstore(verifyingSigner.slot, _verifyingSigner)
sstore(feeCollector.slot, _feeCollector)
}
unaccountedEPGasOverhead = 12000;
unaccountedEPGasOverhead = 24000;
fixedPriceMarkup = 1100000; // 10%
}

Expand Down Expand Up @@ -130,6 +130,7 @@ contract VerifyingSingletonPaymasterV2 is
*/
function setFixedPriceMarkup(uint32 _markup) external payable onlyOwner {
require(_markup <= PRICE_DENOMINATOR * 2, "Markup too high");
require(_markup >= PRICE_DENOMINATOR, "Markup too low"); // if allowed that would mean discounted
uint32 oldValue = fixedPriceMarkup;
fixedPriceMarkup = _markup;
emit FixedPriceMarkupChanged(oldValue, _markup);
Expand Down
Loading

0 comments on commit 1c5157c

Please sign in to comment.