Attack - Smart Contract Audit Report

Summary

Scream Audit Report Attack ($ATK) is a new ERC20 token on the Polygon Network.

We reviewed the Attack contract that is deployed at 0xF868939Ee81F04f463010BC52EAb91c0839eF08c on the Polygon mainnet.

Notes on the Contract:
  • The total supply of the token is set to 1 billion $ATK [1,000,000,000].
  • Upon deployment, a Gnosis Multi-sig address was set by the team. This address has access to certain functionality in the contract.
  • Any user can burn their own tokens to reduce the total supply.
  • If tokens have been burned, the Multi-sig address can mint any amount of tokens up to the total supply cap of 1 billion $ATK.
  • At the time of writing this report, 47.2% of the total supply belongs to an unverified contract.
  • The top holder owns 39.75% of the total supply.
  • 9.62% of the total supply belongs to a Gnosis multi-signature Proxy contract.
  • 0.51% of the total supply is in Uniswap liquidity.
  • 91.7% of the LP tokens belong to an unverified contract.
  • The next five holders own a cumulative 1.2% of the total supply.

  • The contract implements the EIP-2612 standard in order to support permits which allows for approvals to be made via signatures.
  • There are no fees associated with transferring tokens.
  • The Multi-sig address can pause/unpause trading at any time.
  • The Multi-sig address can enable/disable all burning functionality at any time.
  • As the contract is deployed with Solidity v0.8.6 it is protected from overflows/underflows.
  • Some functions could have been declared external instead of public to save some gas, but as this contract is already deployed this is merely informational.
Audit Findings Summary
  • No external threats were identified.
  • Please be aware of the amount of liquidity available in proportion to the largest wallets.
  • Date: December 17th, 2021.

Audit Results

Vulnerability CategoryNotesResult
Arbitrary Storage WriteN/APASS
Arbitrary JumpN/APASS
Centralization of ControlPlease be aware of the amount of liquidity available in proportion to the largest wallets.PASS
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

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

 + [Int] IERC20Metadata (IERC20)
    - [Ext] name
    - [Ext] symbol
    - [Ext] decimals

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

 +  ERC20 (Context, IERC20, IERC20Metadata)
    - [Pub]  #
    - [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] _mint #
    - [Int] _burn #
    - [Int] _approve #
    - [Int] _beforeTokenTransfer #
    - [Int] _afterTokenTransfer #

 +  ERC20Burnable (Context, ERC20)
    - [Pub] burn #
    - [Pub] burnFrom #

 + [Int] IERC20Permit 
    - [Ext] permit #
    - [Ext] nonces
    - [Ext] DOMAIN_SEPARATOR

 + [Lib] Strings 
    - [Int] toString
    - [Int] toHexString
    - [Int] toHexString

 + [Lib] ECDSA 
    - [Prv] _throwError
    - [Int] tryRecover
    - [Int] recover
    - [Int] tryRecover
    - [Int] recover
    - [Int] tryRecover
    - [Int] recover
    - [Int] toEthSignedMessageHash
    - [Int] toEthSignedMessageHash
    - [Int] toTypedDataHash

 +  EIP712 
    - [Pub]  #
    - [Int] _domainSeparatorV4
    - [Prv] _buildDomainSeparator
    - [Int] _hashTypedDataV4

 + [Lib] Counters 
    - [Int] current
    - [Int] increment #
    - [Int] decrement #
    - [Int] reset #

 +  ERC20Permit (ERC20, IERC20Permit, EIP712)
    - [Pub]  #
       - modifiers: EIP712
    - [Pub] permit #
    - [Pub] nonces
    - [Ext] DOMAIN_SEPARATOR
    - [Int] _useNonce #

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

 +  Pausable (Context)
    - [Pub]  #
    - [Pub] paused
    - [Int] _pause #
       - modifiers: whenNotPaused
    - [Int] _unpause #
       - modifiers: whenPaused

 +  Attack (ERC20, ERC20Burnable, ERC20Permit, Ownable, Pausable)
    - [Pub]  #
       - modifiers: ERC20,ERC20Permit
    - [Pub] mint #
       - modifiers: multiSigReq
    - [Pub] burn #
    - [Pub] pause #
       - modifiers: multiSigReq
    - [Pub] unpause #
       - modifiers: multiSigReq
    - [Pub] toggleBurn #
       - modifiers: multiSigReq