Skip to content

Commit

Permalink
fix basefee
Browse files Browse the repository at this point in the history
  • Loading branch information
s7v7nislands committed Mar 28, 2023
1 parent fbba7ba commit d75fb80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/contracts-bedrock/contracts/L1/ResourceMetering.sol
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ abstract contract ResourceMetering is Initializable {
// division by zero for L1s that don't support 1559 or to avoid excessive gas burns during
// periods of extremely low L1 demand. One-day average gas fee hasn't dipped below 1 gwei
// during any 1 day period in the last 5 years, so should be fine.
uint256 gasCost = resourceCost / Math.max(block.basefee, 1 gwei);
// uint256 gasCost = resourceCost / Math.max(block.basefee, 1 gwei);
uint256 gasCost = resourceCost / 5 gwei;

// Give the user a refund based on the amount of gas they used to do all of the work up to
// this point. Since we're at the end of the modifier, this should be pretty accurate. Acts
Expand Down

0 comments on commit d75fb80

Please sign in to comment.