BakeryTools Token - Smart Contract Audit Report

Summary

BakeryTools Token Audit Report BakeryTools intends to build a social media platform based on blockchain.

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

Notes of the Token Contract:
  • The total supply of the token is 100 million.
  • No minting functions are present. A burn function exists, allowing any user to burn their own tokens.
  • Currently, the team holds the entire supply across 4 wallets with balances as follows:
  • Wallet 1: 54%. Wallet 2: 26%. Wallet 3: 10%. Wallet 4: 10%.
  • The only ownership-restriction function allows the team to transfer ERC20 tokens accidentally sent to the contract.
  • The contract utilizes Solidity 0.8.4 which has built-in overflow checks, removing the need for SafeMath. SafeMath is used anyway, which uses some extra gas, but the cost of this is negligible.
Audit Findings Summary
  • No issues from external attackers were identified.
  • As with any presale, ensure trust in the team prior to investing.
  • Date: April 27th, 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

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

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

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

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

 +  Ownable (Context)
    - [Pub]  #
    - [Pub] owner
    - [Pub] transferOwnership #
       - modifiers: onlyOwner

 +  HasForeignAsset (Ownable)
    - [Ext] assetBalance
    - [Ext] getAsset #
       - modifiers: onlyOwner

 +  BakeryTools (IBEP20, HasForeignAsset)
    - [Pub]  #
    - [Ext]  ($)
    - [Pub] name
    - [Pub] symbol
    - [Pub] decimals
    - [Pub] totalSupply
    - [Pub] balanceOf
    - [Pub] transfer #
    - [Pub] allowance
    - [Pub] approve #
    - [Pub] transferFrom #
    - [Pub] increaseAllowance #
    - [Pub] decreaseAllowance #
    - [Int] _transfer #
    - [Int] _mintOnce #
    - [Int] _burn #
    - [Pub] burn #
    - [Int] _approve #
    - [Int] _setupDecimals #
    - [Int] _beforeTokenTransfer #