Libra Token - Smart Contract Audit Report

Summary

Libra Token Audit Report Libra is a new token on the Binance Smart Chain.

For this audit we reviewed the project's token contract, deployed at 0xc29e0804c324a1f9333db757888068338a2758e4 on the BSC testnet.

Notes of the Token Contract:
  • The total supply of the token is 20 million, granted to the team upon deployment.
  • The owner and the 'chef' has the ability to mint additional tokens at any time, up to the maximum supply which is set upon deployment.
  • We advise making the _maximumSupply variable public so users can be aware of the maximum supply.
  • The 'chef' address is designed to be a staking contract, allowing that contract to mint rewards.
  • The team can update the address of the chef at any time.
  • The owner can also burn tokens from any address without permission. We advise the removal of this function or altering it to only allow users to burn their own tokens.
  • The contract utilizes SafeMath to prevent overflow issues.
Audit Findings Summary
  • No issues from external attackers were identified.
  • As with any presale, check token allocations and ensure trust in the team prior to investing.
  • Further, ensure trust in the team as they can mint tokens at any time up to the unkown supply cap, and burn tokens from any address without permission.
  • Date: May 25th, 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
Flash LoansN/APASS
Integer Over/UnderflowN/APASS
Multiple SendsN/APASS
OraclesN/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

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

 + [Lib] Address 
    - [Int] isContract
    - [Int] sendValue #
    - [Int] functionCall #
    - [Int] functionCall #
    - [Int] functionCallWithValue #
    - [Int] functionCallWithValue #
    - [Prv] _functionCallWithValue #

 +  Ownable (Context)
    - [Int]  #
    - [Pub] owner
    - [Pub] chef
    - [Pub] renounceOwnership #
       - modifiers: onlyOwner
    - [Pub] transferOwnership #
       - modifiers: onlyOwner
    - [Int] _transferOwnership #
    - [Pub] setChef #
       - modifiers: onlyOwner

 + [Lib] SafeMath 
    - [Int] add
    - [Int] sub
    - [Int] sub
    - [Int] mul
    - [Int] div
    - [Int] div
    - [Int] mod
    - [Int] mod
    - [Int] min
    - [Int] sqrt

 + [Int] IBEP20 
    - [Ext] totalSupply
    - [Ext] decimals
    - [Ext] symbol
    - [Ext] name
    - [Ext] getOwner
    - [Ext] balanceOf
    - [Ext] transfer #
    - [Ext] allowance
    - [Ext] approve #
    - [Ext] transferFrom #

 +  BEP20Limited (Context, IBEP20, Ownable)
    - [Pub]  #
    - [Ext] getOwner
    - [Pub] name
    - [Pub] decimals
    - [Pub] symbol
    - [Pub] totalSupply
    - [Pub] balanceOf
    - [Pub] transfer #
    - [Pub] allowance
    - [Pub] approve #
    - [Pub] transferFrom #
    - [Pub] increaseAllowance #
    - [Pub] decreaseAllowance #
    - [Pub] mint #
       - modifiers: onlyOwner
    - [Int] _transfer #
    - [Int] _mint #
    - [Int] _burn #
    - [Int] _approve #
    - [Int] _burnFrom #

 +  LibToken (BEP20Limited)
    - [Pub]  #
    - [Pub] burn #
       - modifiers: onlyOwner
    - [Pub] mintReward #
       - modifiers: onlyChef
    - [Ext] burnReward #
       - modifiers: onlyChef