Skip to content

Commit 9b95617

Browse files
authored
Merge pull request #2 from node-real/fix_basefee
fix basefee
2 parents fbba7ba + d75fb80 commit 9b95617

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/contracts-bedrock/contracts/L1/ResourceMetering.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ abstract contract ResourceMetering is Initializable {
157157
// division by zero for L1s that don't support 1559 or to avoid excessive gas burns during
158158
// periods of extremely low L1 demand. One-day average gas fee hasn't dipped below 1 gwei
159159
// during any 1 day period in the last 5 years, so should be fine.
160-
uint256 gasCost = resourceCost / Math.max(block.basefee, 1 gwei);
160+
// uint256 gasCost = resourceCost / Math.max(block.basefee, 1 gwei);
161+
uint256 gasCost = resourceCost / 5 gwei;
161162

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

0 commit comments

Comments
 (0)