Assessment reports>Rainmaker>Threat Models>mint

Function: mint(address to, uint256 amount)

Gives accounts with the MINTER_ROLE the ability to mint tokens.

Inputs

  • to

    • Control: Fully controlled by minter.

    • Constraints: None.

    • Impact: Allows tokens to be minted to any address.

  • amount

    • Control: Fully controlled by minter.

    • Constraints: None.

    • Impact: Allows any number of tokens to be minted.

Branches and code coverage (including function calls)

Intended branches

  • Reward tokens are properly minted when the caller has MINTER_ROLE.

Negative behavior

  • Reverts when the caller does not have MINTER_ROLE.

Zellic © 2024Back to top ↑