Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
dantaik committed Mar 12, 2023
1 parent d388d90 commit 3551770
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/protocol/contracts/L1/libs/LibVerifying.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ library LibVerifying {

error L1_0_FEE_BASE();
error L1_INVALID_CONFIG();
error L1_INVALID_PARAM();

function init(
TaikoData.State storage state,
Expand Down Expand Up @@ -153,6 +154,7 @@ library LibVerifying {
uint64 provenAt,
uint64 proposedAt
) public view returns (uint256 newFeeBase, uint256 reward, uint256 tRelBp) {
if (proposedAt > provenAt) revert L1_INVALID_PARAM();
(newFeeBase, tRelBp) = LibUtils.getTimeAdjustedFee({
state: state,
config: config,
Expand Down

0 comments on commit 3551770

Please sign in to comment.