Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(protocol): refine EIP-1559 basefee calculation and gas excess adjustment in TaikoL2 #17871

Merged
merged 17 commits into from
Aug 6, 2024
Prev Previous commit
Next Next commit
Update Lib1559Math.sol
  • Loading branch information
dantaik committed Aug 2, 2024
commit 55dbace871209bfdb2a5f6a1bf8d786bc1d59f53
2 changes: 1 addition & 1 deletion packages/protocol/contracts/L2/Lib1559Math.sol
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ library Lib1559Math {
ratio = f * _newGasTarget / _gasTarget;
}

if (ratio > type(int256).max) revert EIP1559_INVALID_PARAMS();
if (ratio > uint256(type(int256).max)) revert EIP1559_INVALID_PARAMS();

int256 lnRatio = LibFixedPointMath.ln(int256(ratio));

Expand Down
Loading