Prize Token - Smart Contract Audit Report

Summary

Prize Token Audit Report Prize Token (PZ) intends to be the first Finery regenerating decentralized Farming with Lending collection and NFT aggregates multi-sig store.

For this audit we reviewed the project's token contract, deployed at 0x2aaa1910467bb5f0152066d3e3b3910faa8ca495 on the Binance Smart Chain Mainnet.

Notes of the contract:
  • At the time of writing this report, the initial total supply is 75,000 tokens.
  • A minting function exists that allows the authorized minter to mint tokens up to the "maximum supply" which is set to 100,000 PZ. (A 33% increase from the current total supply).
  • No ownership-restricted functions are present, although there are designated roles such as "governance" and "minters".
  • Governance has the ability to add or remove minters.
  • Some functions could be declared external instead of public to save a minimal amount of gas. Seeing that the contract is already deployed to the mainnet, this is merely information.
  • The token contract complies with the BEP20 standard.
  • Utilization of SafeMath to prevent overflows.
Audit Findings Summary
  • No issues from external attackers were identified.
  • As with any token, ensure trust in the team prior to investing.
  • Date: June 14th, 2021.

Vulnerability CategoryNotesResult
Arbitrary Storage WriteN/APASS
Arbitrary JumpN/APASS
Delegate Call to Untrusted ContractN/APASS
Dependence on Predictable VariablesN/APASS
Deprecated OpcodesN/APASS
Ether ThiefN/APASS
ExceptionsN/APASS
External CallsN/APASS
Integer Over/UnderflowN/APASS
Multiple SendsN/APASS
SuicideN/APASS
State Change External CallsN/APass
Unchecked RetvalN/APASS
User Supplied AssertionN/APASS
Critical Solidity CompilerN/APASS
Overall Contract Safety PASS

ERC20 Token Graph

Multi-file Token


 ($) = payable function
 # = non-constant function
 
 Int = Internal
 Ext = External
 Pub = Public

 + [Int] IBEP20 
    - [Ext] totalSupply
    - [Ext] balanceOf
    - [Ext] transfer #
    - [Ext] allowance
    - [Ext] approve #
    - [Ext] transferFrom #

 +  Context 
    - [Int]  #
    - [Int] _msgSender

 +  BEP20 (Context, IBEP20)
    - [Pub] totalSupply
    - [Pub] balanceOf
    - [Pub] transfer #
    - [Pub] allowance
    - [Pub] approve #
    - [Pub] transferFrom #
    - [Pub] increaseAllowance #
    - [Pub] decreaseAllowance #
    - [Int] _transfer #
    - [Int] _mint #
    - [Int] _burn #
    - [Int] _approve #

 +  BEP20Detailed (IBEP20)
    - [Pub]  #
    - [Pub] name
    - [Pub] symbol
    - [Pub] decimals
    - [Pub] maxSupply

 + [Lib] SafeMath 
    - [Int] add
    - [Int] sub
    - [Int] sub
    - [Int] mul
    - [Int] div
    - [Int] div

 + [Lib] Address 
    - [Int] isContract

 + [Lib] SafeBEP20 
    - [Int] safeTransfer #
    - [Int] safeTransferFrom #
    - [Int] safeApprove #
    - [Prv] callOptionalReturn #

 +  PzToken (BEP20, BEP20Detailed)
    - [Pub]  #
       - modifiers: BEP20Detailed
    - [Pub] mint #
    - [Pub] setGovernance #
    - [Pub] addMinter #
    - [Pub] removeMinter #