Skip to content

Commit

Permalink
Merge branch 'develop' into features/SMA-329-improve-repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Aboudjem authored Nov 29, 2023
2 parents 37b7bf1 + 1c5157c commit 0d40317
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 0d40317

Please sign in to comment.