Legion Token - Smart Contract Audit Report

Summary

Legion Audit Report Legion Token ($LGX) is a new DeFi token on the Binance Smart Chain.

The Legion Token contract is deployed at 0x9096b4309224d751fcb43d7eb178dcffc122ad15 on the Binance Smart Chain Mainnet.

Notes on the Contract:
  • The total supply of the token is 1 billion [1,000,000,000] $LGX.
  • No burn functions exist, though the circulating supply can be decreased by sending tokens to the 0x..dead address.
  • A mint function exists in the contract however, since the team has renounced ownership, this mint function is no longer accessible.
  • At the time of writing this report, 73.2% of the token's supply is stored in an AdminUpgradeabilityProxy contract.
  • The remaining 26.8% belongs to the Legion Network: Deployer address.
  • The contract utilizes SafeMath to prevent overflows and complies with the BEP20 standard.
Audit Findings Summary
  • No external threats were identified.
  • Date: September 24th, 2021
  • Updated: September 25th, 2021 after the team renounced ownership.

Audit Results

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] decimals
    - [Ext] symbol
    - [Ext] name
    - [Ext] getOwner
    - [Ext] balanceOf
    - [Ext] transfer #
    - [Ext] allowance
    - [Ext] approve #
    - [Ext] transferFrom #

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

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

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

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