Skip to content

Commit

Permalink
do some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dantaik committed Apr 25, 2023
1 parent e6d00e3 commit eb2cc41
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/protocol/contracts/L1/libs/LibTokenomics.sol
Original file line number Diff line number Diff line change
Expand Up @@ -92,19 +92,19 @@ library LibTokenomics {
}

/**
* Calculate the newProofTimeIssued and newBasefee
* Calculate the newProofTimeIssued and BlockFee
*
* @param state The actual state data
* @param config Config data
* @param proofTime The actual proof time
* @return newProofTimeIssued Accumulated proof time
* @return newBasefee New basefee
* @return BlockFee New basefee
*/
function getNewBlockFeeAndProofTimeIssued(
TaikoData.State storage state,
TaikoData.Config memory config,
uint64 proofTime
) internal view returns (uint64 newProofTimeIssued, uint64 newBasefee) {
) internal view returns (uint64 newProofTimeIssued, uint64 BlockFee) {
newProofTimeIssued = (state.proofTimeIssued > config.proofTimeTarget)
? state.proofTimeIssued - config.proofTimeTarget
: uint64(0);
Expand All @@ -121,6 +121,6 @@ library LibTokenomics {
Math.SCALING_FACTOR_1E18) /
(config.proofTimeTarget * config.adjustmentQuotient);

newBasefee = uint64(result.min(type(uint64).max));
BlockFee = uint64(result.min(type(uint64).max));
}
}

0 comments on commit eb2cc41

Please sign in to comment.