Skip to content

Commit

Permalink
Merge pull request #54 from mantlenetworkio/afk/audit/oz-n-04
Browse files Browse the repository at this point in the history
fix: [OZ][N-04] Imprecise docstrings
  • Loading branch information
afkbyte authored Jun 14, 2023
2 parents fc61c91 + 0e76225 commit 8e23955
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/L1/L1MantleToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ contract L1MantleToken is
/// @dev emits a {MintCapNumeratorChanged} event
/// @dev Requirements:
/// - The caller must be the contract owner
/// - parameter {_mintCapNumerator} must be less than or equal to {MINT_CAP_MAX_NUMERATOR}
/// - {_mintCapNumerator} must be less than or equal to {MINT_CAP_MAX_NUMERATOR}
function setMintCapNumerator(uint256 _mintCapNumerator) public onlyOwner {
if (_mintCapNumerator > MINT_CAP_MAX_NUMERATOR) {
revert MantleToken_MintCapNumeratorTooLarge(_mintCapNumerator, MINT_CAP_MAX_NUMERATOR);
Expand Down
2 changes: 2 additions & 0 deletions contracts/Migration/MantleTokenMigrator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ contract MantleTokenMigrator {
/// - The caller must have approved this contract to spend at least {_amount} of their BIT tokens
/// - The caller must have a balance of at least {_amount} of BIT tokens
/// - The contract must not be halted
/// - {_amount} must be non-zero
/// @param _amount The amount of BIT tokens to swap
function migrateBIT(uint256 _amount) external onlyWhenNotHalted {
_migrateTokens(_amount);
Expand All @@ -166,6 +167,7 @@ contract MantleTokenMigrator {
/// @dev Requirements:
/// - The caller must have approved this contract to spend at least {_amount} of their BIT tokens
/// - The caller must have a balance of at least {_amount} of BIT tokens
/// - {_amount} must be non-zero
/// @param _amount The amount of BIT tokens to swap
function _migrateTokens(uint256 _amount) internal {
if (_amount == 0) revert MantleTokenMigrator_ZeroSwap();
Expand Down

0 comments on commit 8e23955

Please sign in to comment.