PROOF Token Factory (Whitelist)

Smart Contract Audit Report

Audit Summary

PROOF Token Factory Audit Report PROOF is building a new platform where users can launch their own tokens.

For this audit, we reviewed the following contracts on the Ethereum Mainnet:

Audit Findings

No findings were identified, though some centralized aspects are present.
Date: October 5th, 2023.
Updated: February 19th, 2024 to reflect the contracts' Mainnet addresses.

Contracts Overview

ProofFactory Contract:
  • Any user can use this contract to generate their own token by specifying the token name, symbol, total supply, fee percentages, Reward token address, list of whitelist addresses, whitelist end time, and an LP token unlock time greater than 30 days.
  • If the owner has initialized the minimum liquidity requirement, users must provide at least 1 ETH which will automatically be paired with the contract balance of the token and added as liquidity.
  • After the token is created, it can be finalized by the creator at any time.
  • Upon finalizing, the contract makes a call into an external token locking contract to lock the LP tokens for the duration specified by the owner, and trading will be enabled. The external token locking contract was not included in the scope of this audit so our team is unable to provide an assessment with regard to its security.
  • Each user that owns at least 1 NFT from the applicable NFT address is added to the token contract's whitelist.
  • Before a token is finalized, it can be canceled by the owner at any time. The initial liquidity will be removed and the returned tokens and ETH will be transferred to the owner.
  • A token creator can add more addresses to the whitelist in the ProofFactoryTokenCutter contract at any time.
  • Any user can transfer the ETH in the contract between the Revenue address and Reward Pool address at any time.
  • The owner can update the Router address, Locker address, Revenue address, and Reward Pool address to any addresses at any time.
  • The owner can update the Proof Admin address at any time.
ProofFactoryGate Contract:
  • The ProofFactory contract can use this contract to execute the token creation process.
  • The owner can update the ProofFactory address at any time.
  • The owner can update the Base NFT whitelist address at any time.
ProofFactoryTokenCutter and DividendDistributor Contracts:
  • The total supply of each token will be set by the creator during the creation process.
  • A percentage of the total supply (specified by the creator) is minted to the Factory contract to be used for liquidity and the remaining tokens are minted to the owner.
  • No mint or burn functions are present; though the circulating supply can be reduced by sending tokens to the 0x..dead address if desired.

  • The contract's whitelist mode will be enabled until the whitelist end time (originally set by the creator) has been reached. When enabled, each user participating in a transfer must have been added to the contract's whitelist.
  • The contract enforces a maximum transaction amount (determined by the owner) which imposes a limit to the number of tokens that can be sold via Uniswap in a single transaction.
  • The contract enforces a maximum wallet amount that prevents a transfer from occurring if the recipient's token balance will exceed the limit number of tokens (determined by the owner) after the transfer occurs.
  • There is a Reflections fee, Liquidity fee, Dev fee, and Revenue fee on all buys and sells where neither the sender nor the recipient is excluded from fees. A separate fee structure can be set by the team to apply different fee percentages depending on whether the transaction is a buy or sell.
  • The tokens collected from fees are stored in the contract address. The tokens are swapped for ETH for the purpose of funding Uniswap liquidity when the following conditions are met:
    • The automatic liquidity add functionality is enabled by the team.
    • The threshold number of tokens in the contract address (determined by the owner) has been reached.
    • The contract is not currently performing an automatic liquidity add.
    • The caller is not initiating a buy transaction via Uniswap.
  • Liquidity-adds are automatically performed by selling the tokens collected as fees, pairing the received ETH with the token, and adding it as liquidity to the ETH pair.
  • The LP tokens received through this process are sent to the 0x..dead address.
  • The tokens collected through the Dev Fee are swapped for ETH and sent to the team's Dev wallet.
  • The tokens collected through the Revenue fee are swapped for ETH and split between the Revenue address and Reward Pool address set in the Factory contract.
  • The tokens collected through the Reflections Fee are swapped for ETH and sent to the DividendDistributor contract where it is swapped for the Reward token set by the team and distributed as rewards.

  • Any user that holds any number of tokens is eligible to claim dividends once the amount of dividends they are due reaches the minimum threshold value determined by the team.
  • Once dividends are distributed, they will need to be claimed; claiming happens automatically on each transfer.
  • Alternatively, a user can manually claim dividends as an individual.
  • There is a wait-time (determined by the owner) between claiming dividend rewards.
  • Claimed dividends are sent to the user's wallet address.

  • The PROOF Admin can update the whitelist end time at any time.
  • The PROOF Admin can transfer their role to another address at any time.
  • The owner can set total fees on buys up to 12% and total fees on sells up to 17% if the owner has been added to the whitelist in the Factory contract. If not, the owner can set total fees on both buys and sells up to 7%.
  • The owner can exclude/include accounts from transfer fees at any time.
  • The owner can set the maximum transaction and maximum wallet amounts to any values between 0.5% of the total supply and 3% of the total supply at any time.
  • The owner can exclude/include accounts from the maximum wallet and maximum transaction restrictions at any time.
  • The owner can enable/disable the maximum wallet restriction at any time.
  • The owner can enable/disable automatic liquidity adds at any time.
  • The owner can update the threshold number of tokens needed to trigger an automatic liquidity add to any value at any time.
  • The owner can update the minimum threshold of dividends a user must be due in order to claim rewards to any value at any time.
  • The owner can update the wait time between claiming rewards to any value at any time.
  • The owner can update the amount of gas used for processing to any value at any time.
  • The owner can withdraw any tokens not collected through fees from the contract at any time.
  • The owner can set the team's Dev wallet to any address at any time.
  • The owner can transfer ownership to any address at any time.
ProofReflectionFactory Contract:
  • Any user can use this contract to generate their own token by specifying the token name, symbol, total supply, fee percentages, list of whitelist addresses, whitelist end time, and an LP token unlock time greater than 30 days.
  • If the owner has initialized the minimum liquidity requirement, users must provide at least 1 ETH which will automatically be paired with the contract balance of the token and added as liquidity.
  • After the token is created, it can be finalized by the creator at any time.
  • Upon finalizing, the contract makes a call into an external token locking contract to lock the LP tokens for the duration specified by the owner, and trading will be enabled. The external token locking contract was not included in the scope of this audit so our team is unable to provide an assessment with regard to its security.
  • Before a token is finalized, it can be canceled by the owner at any time. The initial liquidity will be removed and the returned tokens and ETH will be transferred to the owner.
  • A token creator can add more addresses to the whitelist at any time.
  • Any user can transfer the ETH in the contract between the Revenue address and Reward Pool address at any time.
  • The owner can update the Base NFT whitelist addresses at any time.
  • The owner can update the Router address, Locker address, Revenue address, and Reward Pool address to any addresses at any time.
  • The owner can update the Proof Admin address at any time.
ProofReflectionTokenCutter Contract:
  • The total supply of each token will be set by the creator upon deployment.
  • A percentage of the total supply (specified by the creator) is minted to the Factory contract to be used for liquidity and the remaining tokens are minted to the owner.
  • No mint or burn functions are present; though the circulating supply can be reduced by sending tokens to the 0x..dead address if desired.

  • The contract enforces a maximum transaction amount (determined by the owner) which imposes a limit to the number of tokens that can be transferred in a single transaction.
  • The contract's whitelist mode will be enabled until the whitelist end time (originally set by the creator) has been reached. When enabled, each user participating in a transfer must have been added to the contract's whitelist.
  • There is a Tax fee, LP fee, Dev fee, and Revenue fee on all buys and sells via Uniswap where neither the sender nor the recipient is excluded from fees. A separate fee structure can be set by the team to apply different fee percentages depending on whether the transaction is a buy or sell.
  • The tokens collected through the Tax fee are removed from the circulating supply; This serves as a frictionless fee redistribution that automatically benefits all token holders at the time of each transaction.
  • The Pair address has been properly excluded from rewards to prevent theft-of-liquidity attacks.
  • The tokens collected from fees are stored in the contract address. The tokens are swapped for ETH for the purpose of funding Uniswap liquidity when the following conditions are met:
    • The automatic liquidity add functionality is enabled by the team.
    • The threshold number of tokens in the contract address (determined by the owner) has been reached.
    • The contract is not currently performing an automatic liquidity add.
    • The caller is not initiating a buy transaction via Uniswap.
    • Trading is currently enabled.
  • Liquidity-adds are automatically performed by selling the tokens collected as fees, pairing the received ETH with the token, and adding it as liquidity to the ETH pair.
  • The LP tokens received through this process are sent to the 0x..dead address.
  • The tokens collected through the Dev Fee are swapped for ETH and sent to the team's Dev wallet.
  • The tokens collected through the Revenue fee are swapped for ETH and split between the Revenue address and Reward Pool address set in the Factory contract.

  • The PROOF Admin can update the whitelist end time at any time.
  • The PROOF Admin can transfer their role to another address at any time.
  • The owner can set total fees on buys up to 12% and total fees on sells up to 17% if the owner has been added to the whitelist in the Factory contract. If not, the owner can set total fees on both buys and sells up to 7%.
  • The owner can exclude/include accounts from transfer fees and reward distribution at any time.
  • The owner can set the maximum transaction amount to any value between 0.5% of the total supply and 3% of the total supply at any time.
  • The owner can exclude/include accounts from the maximum transaction amount restriction at any time.
  • The owner can enable/disable automatic liquidity adds at any time.
  • The owner can update the threshold number of tokens needed to trigger an automatic liquidity add to any value at any time.
  • The owner can withdraw any tokens not collected through fees from the contract at any time.
  • The owner can set the team's Dev wallet to any address at any time.
  • The owner can transfer ownership to any address at any time.
ProofNonReflectionTokenFactory Contract:
  • Any user can use this contract to generate their own token by specifying the token name, symbol, total supply, fee percentages, list of whitelist addresses, whitelist end time, and an LP token unlock time greater than 30 days.
  • If the owner has initialized the minimum liquidity requirement, users must provide at least 1 ETH which will automatically be paired with the contract balance of the token and added as liquidity.
  • After the token is created, it can be finalized by the creator at any time.
  • Upon finalizing, the contract makes a call into an external token locking contract to lock the LP tokens for the duration specified by the owner, and trading will be enabled. The external token locking contract was not included in the scope of this audit so our team is unable to provide an assessment with regard to its security.
  • Before a token is finalized, it can be canceled by the owner at any time. The initial liquidity will be removed and the returned tokens and ETH will be transferred to the owner.
  • A token creator can add more addresses to the whitelist at any time.
  • Any user can transfer the ETH in the contract between the Revenue address and Reward Pool address at any time.
  • The owner can update the Base NFT whitelist addresses at any time.
  • The owner can update the Router address, Locker address, Revenue address, and Reward Pool address to any addresses at any time.
  • The owner can update the Proof Admin address at any time.
ProofNonReflectionTokenCutter Contract:
  • The total supply of each token will be set by the creator upon deployment.
  • A percentage of the total supply (specified by the creator) is minted to the Factory contract to be used for liquidity and the remaining tokens are minted to the owner.
  • No mint or burn functions are present; though the circulating supply can be reduced by sending tokens to the 0x..dead address if desired.

  • The contract enforces a maximum transaction amount (determined by the owner) which imposes a limit to the number of tokens that can be sold via Uniswap in a single transaction.
  • The contract enforces a maximum wallet amount that prevents a transfer from occurring if the recipient's token balance will exceed the limit number of tokens (determined by the owner) after the transfer occurs. The team must ensure that all Pair addresses for the token are excluded from the maximum wallet restriction.
  • The contract's whitelist mode will be enabled until the whitelist end time (originally set by the creator) has been reached. When enabled, each user participating in a transfer must have been added to the contract's whitelist.
  • There is an LP fee, Dev fee, Main fee, and Proof fee on all buys and sells via Uniswap where neither the sender nor the recipient is excluded from fees. A separate fee structure can be set by the team to apply different fee percentages depending on whether the transaction is a buy or sell.
  • The tokens collected through fees are stored in the contract address. The tokens are swapped for ETH for the purpose of funding Uniswap liquidity when the following conditions are met:
    • The automatic liquidity add functionality is enabled by the team.
    • The threshold number of tokens in the contract address (determined by the owner) has been reached.
    • The contract is not currently performing an automatic liquidity add.
    • The caller is not initiating a buy transaction via Uniswap.
  • Liquidity-adds are automatically performed by selling the tokens collected as fees, pairing the received ETH with the token, and adding it as liquidity to the ETH pair.
  • The LP tokens received through this process are sent to the 0x..dead address.
  • The tokens collected through the Dev Fee and Main fee are swapped for ETH and sent to the team's Dev wallet and Main wallet respectively.
  • The tokens collected through the Proof fee are swapped for ETH and split between the Revenue address and Reward Pool address set in the Factory contract.

  • The PROOF Admin can update the whitelist end time at any time.
  • The PROOF Admin can transfer their role to another address at any time.
  • The owner can set total fees on buys up to 12% and total fees on sells up to 17% if the owner has been added to the whitelist in the Factory contract. If not, the owner can set total fees on both buys and sells up to 7%.
  • The owner can exclude/include accounts from transfer fees at any time.
  • The owner can set the maximum transaction amount and maximum wallet amount to any values between 0.5% of the total supply and 3% of the total supply at any time.
  • The owner can exclude/include accounts from the maximum transaction and maximum wallet restrictions at any time.
  • The owner can enable/disable the maximum transaction and maximum wallet restrictions at any time.
  • The owner can enable/disable automatic liquidity adds at any time.
  • The owner can update the threshold number of tokens needed to trigger an automatic liquidity add to any value at any time.
  • The owner can withdraw any tokens not collected through fees from the contract at any time.
  • The owner can set the team's Dev wallet and Main wallet to any addresses at any time.
  • The owner can transfer ownership to any address at any time.

Audit Results

Vulnerability Category Notes Result
Arbitrary Jump/Storage Write N/A PASS
Centralization of Control The Owner and Proof Admin have access to the ownership controls described above. PASS
Compiler Issues N/A PASS
Delegate Call to Untrusted Contract N/A PASS
Dependence on Predictable Variables N/A PASS
Ether/Token Theft N/A PASS
Flash Loans N/A PASS
Front Running N/A PASS
Improper Events N/A PASS
Improper Authorization Scheme N/A PASS
Integer Over/Underflow N/A PASS
Logical Issues N/A PASS
Oracle Issues N/A PASS
Outdated Compiler Version N/A PASS
Race Conditions N/A PASS
Reentrancy N/A PASS
Signature Issues N/A PASS
Sybil Attack N/A PASS
Unbounded Loops N/A PASS
Unused Code N/A PASS
Overall Contract Safety   PASS

ProofFactory Contract

Smart Contract Audit - Inheritance

Smart Contract Audit - Graph


 ($) = 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 #

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

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

 + [Int] ITeamFinanceLocker 
    - [Ext] lockToken ($)

 + [Int] ITokenCutter 
    - [Ext] swapTradingStatus #
    - [Ext] setLaunchedAt #
    - [Ext] cancelToken #

 + [Int] IUniswapV2Router02 
    - [Ext] swapExactTokensForETHSupportingFeeOnTransferTokens #
    - [Ext] swapExactETHForTokensSupportingFeeOnTransferTokens ($)
    - [Ext] factory
    - [Ext] WETH
    - [Ext] addLiquidityETH ($)
    - [Ext] removeLiquidityETH #

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

 + [Lib] ProofFactoryFees 

 + [Int] IProofFactoryTokenCutter (IERC20, IERC20Metadata)
    - [Ext] setBasicData #
    - [Ext] pair
    - [Ext] swapTradingStatus #
    - [Ext] updateProofFactory #
    - [Ext] addMoreToWhitelist #
    - [Ext] updateWhitelistEndTime #

 + [Int] IProofFactory 

 + [Int] IProofFactoryGate 
    - [Ext] updateProofFactory #
    - [Ext] createToken #

 +  ProofFactory (Ownable, IProofFactory)
    - [Pub]  #
    - [Ext] createToken ($)
    - [Ext] finalizeToken ($)
    - [Ext] addmoreWhitelist #
    - [Ext] cancelToken #
    - [Ext] factoryRevenue ($)
    - [Ext] setProofAdmin #
       - modifiers: onlyOwner
    - [Ext] setLockerAddress #
       - modifiers: onlyOwner
    - [Ext] setRouterAddress #
       - modifiers: onlyOwner
    - [Ext] setRevenueAddress #
       - modifiers: onlyOwner
    - [Ext] setRewardPoolAddress #
       - modifiers: onlyOwner
    - [Int] _checkTokenStatus
    - [Ext]  ($)

ProofFactoryGate, ProofFactoryTokenCutter, and DividendDistributor Contracts

Smart Contract Audit - Inheritance

Smart Contract Audit - Graph


 ($) = 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] IERC20Permit 
    - [Ext] permit #
    - [Ext] nonces
    - [Ext] DOMAIN_SEPARATOR

 + [Lib] Address 
    - [Int] sendValue #
    - [Int] functionCall #
    - [Int] functionCall #
    - [Int] functionCallWithValue #
    - [Int] functionCallWithValue #
    - [Int] functionStaticCall
    - [Int] functionStaticCall
    - [Int] functionDelegateCall #
    - [Int] functionDelegateCall #
    - [Int] verifyCallResultFromTarget
    - [Int] verifyCallResult
    - [Int] verifyCallResult
    - [Int] defaultRevert
    - [Prv] _revert

 + [Lib] SafeERC20 
    - [Int] safeTransfer #
    - [Int] safeTransferFrom #
    - [Int] safeIncreaseAllowance #
    - [Int] safeDecreaseAllowance #
    - [Int] forceApprove #
    - [Int] safePermit #
    - [Prv] _callOptionalReturn #
    - [Prv] _callOptionalReturnBool #

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

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

 + [Lib] ProofFactoryFees 

 + [Int] IUniswapV2Router02 
    - [Ext] swapExactTokensForETHSupportingFeeOnTransferTokens #
    - [Ext] swapExactETHForTokensSupportingFeeOnTransferTokens ($)
    - [Ext] factory
    - [Ext] WETH
    - [Ext] addLiquidityETH ($)
    - [Ext] removeLiquidityETH #

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

 + [Int] IProofFactoryTokenCutter (IERC20, IERC20Metadata)
    - [Ext] setBasicData #
    - [Ext] pair
    - [Ext] swapTradingStatus #
    - [Ext] updateProofFactory #
    - [Ext] addMoreToWhitelist #
    - [Ext] updateWhitelistEndTime #

 + [Int] IProofFactory 

 + [Int] IProofFactoryGate 
    - [Ext] updateProofFactory #
    - [Ext] createToken #

 + [Lib] EnumerableSet 
    - [Prv] _add #
    - [Prv] _remove #
    - [Prv] _contains
    - [Prv] _length
    - [Prv] _at
    - [Prv] _values
    - [Int] add #
    - [Int] remove #
    - [Int] contains
    - [Int] length
    - [Int] at
    - [Int] values
    - [Int] add #
    - [Int] remove #
    - [Int] contains
    - [Int] length
    - [Int] at
    - [Int] values
    - [Int] add #
    - [Int] remove #
    - [Int] contains
    - [Int] length
    - [Int] at
    - [Int] values

 + [Int] IERC165 
    - [Ext] supportsInterface

 + [Int] IERC721 (IERC165)
    - [Ext] balanceOf
    - [Ext] ownerOf
    - [Ext] safeTransferFrom #
    - [Ext] safeTransferFrom #
    - [Ext] transferFrom #
    - [Ext] approve #
    - [Ext] setApprovalForAll #
    - [Ext] getApproved
    - [Ext] isApprovedForAll

 + [Int] IFACTORY 
    - [Ext] proofRevenueAddress
    - [Ext] proofRewardPoolAddress

 + [Int] IDividendDistributor 
    - [Ext] setDistributionCriteria #
    - [Ext] setShare #
    - [Ext] deposit ($)
    - [Ext] process #
    - [Ext] setMinPeriod #
    - [Ext] setMinDistribution #
    - [Ext] rewardTokenAddress

 + [Lib] TokenUtils 
    - [Int] expectDecimals

 + [Int] IUniswapV2Factory 
    - [Ext] createPair #

 +  DividendDistributor (IDividendDistributor)
    - [Pub]  #
    - [Ext] setDistributionCriteria #
       - modifiers: onlyToken
    - [Ext] getShareHolders
    - [Ext] setMinPeriod #
       - modifiers: onlyToken
    - [Ext] setMinDistribution #
       - modifiers: onlyToken
    - [Ext] setShare #
       - modifiers: onlyToken
    - [Ext] deposit ($)
       - modifiers: onlyToken
    - [Ext] process #
       - modifiers: onlyToken
    - [Int] shouldDistribute
    - [Int] distributeDividend #
    - [Ext] rewardTokenAddress
    - [Ext] claimDividend #
    - [Pub] getUnpaidEarnings
    - [Int] getCumulativeDividends
    - [Int] addShareholder #
    - [Int] removeShareholder #

 +  ProofFactoryTokenCutter (Context, IProofFactoryTokenCutter)
    - [Pub]  #
    - [Ext] setBasicData #
       - modifiers: onlyFactory
    - [Ext] updateProofAdmin #
       - modifiers: onlyProofAdmin
    - [Ext] updateWhitelistEndTime #
       - modifiers: onlyProofAdmin
    - [Ext] updateProofFactory #
       - modifiers: onlyFactory
    - [Ext] swapTradingStatus #
       - modifiers: onlyFactory
    - [Ext] setLaunchedAt #
       - modifiers: onlyFactory
    - [Ext] cancelToken #
       - modifiers: onlyFactory
    - [Ext] changeFees #
       - modifiers: onlyOwner
    - [Ext] changeTxLimit #
       - modifiers: onlyOwner
    - [Ext] changeWalletLimit #
       - modifiers: onlyOwner
    - [Ext] changeRestrictWhales #
       - modifiers: onlyOwner
    - [Ext] changeIsFeeExempt #
       - modifiers: onlyOwner
    - [Ext] changeIsTxLimitExempt #
       - modifiers: onlyOwner
    - [Ext] changeDistributorGas #
       - modifiers: onlyOwner
    - [Ext] changeMinDistSettings #
       - modifiers: onlyOwner
    - [Ext] reduceProofFee #
       - modifiers: onlyOwner
    - [Ext] adjustProofFee #
       - modifiers: onlyProofAdmin
    - [Ext] setDevWallet #
       - modifiers: onlyOwner
    - [Ext] setOwnerWallet #
       - modifiers: onlyOwner
    - [Ext] changeSwapBackSettings #
       - modifiers: onlyOwner
    - [Ext] setDistributionCriteria #
       - modifiers: onlyOwner
    - [Ext] getCirculatingSupply
    - [Ext] rewardTokenAddress
    - [Pub] isWhitelisted
    - [Pub] holdsSupportedNFT
    - [Ext] name
    - [Ext] symbol
    - [Ext] decimals
    - [Ext] totalSupply
    - [Pub] balanceOf
    - [Ext] transfer #
    - [Pub] allowance
    - [Ext] approve #
    - [Ext] transferFrom #
    - [Ext] increaseAllowance #
    - [Ext] decreaseAllowance #
    - [Int] _transfer #
    - [Int] _basicTransfer #
    - [Int] _approve #
    - [Int] _spendAllowance #
    - [Int] takeFee #
    - [Int] swapBack #
       - modifiers: lockTheSwap
    - [Int] _checkLimit
    - [Int] _checkTimestamp72
    - [Int] _calcTotalFee #
    - [Int] _addWhitelist #
    - [Ext] addMoreToWhitelist #
       - modifiers: onlyFactory
    - [Ext]  ($)

 +  ProofFactoryGate (Ownable, IProofFactoryGate)
    - [Pub]  #
    - [Ext] updateProofFactory #
       - modifiers: onlyOwner
    - [Ext] setBaseNFTWhitelist #
       - modifiers: onlyOwner
    - [Ext] createToken #
       - modifiers: onlyFactory
    - [Ext]  ($)

ProofNonReflectionTokenFactory and ProofNonReflectionTokenCutter Contracts

Smart Contract Audit - Inheritance

Smart Contract Audit - Graph


 ($) = payable function
 # = non-constant function
 
 Int = Internal
 Ext = External
 Pub = Public
 
 + [Lib] SafeMath 
    - [Int] tryAdd
    - [Int] trySub
    - [Int] tryMul
    - [Int] tryDiv
    - [Int] tryMod
    - [Int] add
    - [Int] sub
    - [Int] mul
    - [Int] div
    - [Int] mod
    - [Int] sub
    - [Int] div
    - [Int] mod

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

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

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

 +  OwnerWithdrawable (Ownable)
    - [Ext]  ($)
    - [Ext]  ($)
    - [Pub] withdraw #
       - modifiers: onlyOwner
    - [Pub] withdrawAll #
       - modifiers: onlyOwner
    - [Pub] withdrawCurrency #
       - modifiers: onlyOwner

 + [Lib] Address 
    - [Int] isContract
    - [Int] sendValue #
    - [Int] functionCall #
    - [Int] functionCall #
    - [Int] functionCallWithValue #
    - [Int] functionCallWithValue #
    - [Int] functionStaticCall
    - [Int] functionStaticCall
    - [Int] functionDelegateCall #
    - [Int] functionDelegateCall #
    - [Int] verifyCallResult

 + [Lib] SafeERC20 
    - [Int] safeTransfer #
    - [Int] safeTransferFrom #
    - [Int] safeApprove #
    - [Int] safeIncreaseAllowance #
    - [Int] safeDecreaseAllowance #
    - [Prv] _callOptionalReturn #

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

 +  Marketing (OwnerWithdrawable)
    - [Pub]  #
    - [Ext] setToken #
       - modifiers: onlyOwner
    - [Ext] startUnlocking #
       - modifiers: onlyOwner
    - [Ext] stopUnlocking #
       - modifiers: onlyOwner
    - [Ext] holdTokensFor #
       - modifiers: onlyOwner
    - [Ext] withdrawToken #

ProofReflectionFactory and ProofReflectionTokenCutter Contracts

Smart Contract Audit - Inheritance

Smart Contract Audit - Graph


 ($) = 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

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

 + [Lib] ProofReflectionFactoryFees 

 + [Int] ITeamFinanceLocker 
    - [Ext] lockToken ($)

 + [Int] ITokenCutter 
    - [Ext] swapTradingStatus #
    - [Ext] setLaunchedAt #
    - [Ext] cancelToken #

 + [Int] IFACTORY 
    - [Ext] proofRevenueAddress
    - [Ext] proofRewardPoolAddress

 + [Int] IUniswapV2Router02 
    - [Ext] swapExactTokensForETHSupportingFeeOnTransferTokens #
    - [Ext] swapExactETHForTokensSupportingFeeOnTransferTokens ($)
    - [Ext] factory
    - [Ext] WETH
    - [Ext] addLiquidityETH ($)
    - [Ext] removeLiquidityETH #

 + [Int] IUniswapV2Factory 
    - [Ext] createPair #

 + [Int] IProofReflectionTokenCutter (IERC20, IERC20Metadata)
    - [Ext] setBasicData #
    - [Ext] addMoreToWhitelist #
    - [Ext] updateWhitelistEndTime #

 + [Lib] EnumerableSet 
    - [Prv] _add #
    - [Prv] _remove #
    - [Prv] _contains
    - [Prv] _length
    - [Prv] _at
    - [Prv] _values
    - [Int] add #
    - [Int] remove #
    - [Int] contains
    - [Int] length
    - [Int] at
    - [Int] values
    - [Int] add #
    - [Int] remove #
    - [Int] contains
    - [Int] length
    - [Int] at
    - [Int] values
    - [Int] add #
    - [Int] remove #
    - [Int] contains
    - [Int] length
    - [Int] at
    - [Int] values

 + [Int] IERC165 
    - [Ext] supportsInterface

 + [Int] IERC721 (IERC165)
    - [Ext] balanceOf
    - [Ext] ownerOf
    - [Ext] safeTransferFrom #
    - [Ext] safeTransferFrom #
    - [Ext] transferFrom #
    - [Ext] approve #
    - [Ext] setApprovalForAll #
    - [Ext] getApproved
    - [Ext] isApprovedForAll

 + [Int] IDividendDistributor 
    - [Ext] setDistributionCriteria #
    - [Ext] setShare #
    - [Ext] deposit ($)
    - [Ext] process #
    - [Ext] setMinPeriod #
    - [Ext] setMinDistribution #
    - [Ext] rewardTokenAddress

 +  ProofReflectionTokenCutter (Context, IProofReflectionTokenCutter)
    - [Pub]  #
    - [Ext] setBasicData #
       - modifiers: onlyFactory
    - [Pub] updateProofAdmin #
       - modifiers: onlyProofAdmin
    - [Ext] updateWhitelistEndTime #
       - modifiers: onlyProofAdmin
    - [Pub] swapTradingStatus #
       - modifiers: onlyFactory
    - [Pub] setLaunchedAt #
       - modifiers: onlyFactory
    - [Pub] cancelToken #
       - modifiers: onlyFactory
    - [Ext] changeFees #
       - modifiers: onlyOwner
    - [Ext] reduceProofFee #
       - modifiers: onlyOwner
    - [Ext] adjustProofFee #
       - modifiers: onlyProofAdmin
    - [Ext] changeTxLimit #
       - modifiers: onlyOwner
    - [Ext] changeIsFeeExempt #
       - modifiers: onlyOwner
    - [Ext] changeIsTxLimitExempt #
       - modifiers: onlyOwner
    - [Ext] setDevWallet #
       - modifiers: onlyOwner
    - [Ext] setOwnerWallet #
       - modifiers: onlyOwner
    - [Ext] changeSwapBackSettings #
       - modifiers: onlyOwner
    - [Pub] name
    - [Pub] symbol
    - [Pub] decimals
    - [Pub] approve #
    - [Pub] totalSupply
    - [Pub] balanceOf
    - [Pub] transfer #
    - [Pub] allowance
    - [Prv] tokenFromReflection
    - [Pub] transferFrom #
    - [Pub] increaseAllowance #
    - [Pub] decreaseAllowance #
    - [Prv] _transfer #
    - [Prv] _approve #
    - [Prv] _takeDev #
    - [Prv] _reflectFee #
    - [Prv] _transferStandard #
    - [Pub] isWhitelisted
    - [Pub] holdsSupportedNFT
    - [Prv] _getValues
    - [Prv] _getTValues
    - [Prv] _getRate
    - [Prv] _getCurrentSupply
    - [Prv] _getRValues
    - [Prv] swapTokensForEth #
       - modifiers: lockTheSwap
    - [Int] _addWhitelist #
    - [Ext] addMoreToWhitelist #
       - modifiers: onlyFactory
    - [Ext]  ($)

 +  ProofReflectionFactory (Ownable)
    - [Pub]  #
    - [Ext] addmoreWhitelist #
    - [Ext] createToken ($)
    - [Pub] finalizeToken ($)
    - [Pub] cancelToken #
    - [Ext] proofRevenueAddress
    - [Ext] proofRewardPoolAddress
    - [Ext] distributeExcessFunds #
       - modifiers: onlyOwner
    - [Ext] setLockerAddress #
       - modifiers: onlyOwner
    - [Ext] setRouterAddress #
       - modifiers: onlyOwner
    - [Ext] setBaseNFTWhitelist #
       - modifiers: onlyOwner
    - [Ext] setProofAdmin #
       - modifiers: onlyOwner
    - [Ext] setRevenueAddress #
       - modifiers: onlyOwner
    - [Ext] setRewardPoolAddress #
       - modifiers: onlyOwner
    - [Int] _checkTokenStatus
    - [Ext]  ($)

About SourceHat

SourceHat has quickly grown to have one of the most experienced and well-equipped smart contract auditing teams in the industry. Our team has conducted 1800+ solidity smart contract audits covering all major project types and protocols, securing a total of over $50 billion U.S. dollars in on-chain value!
Our firm is well-reputed in the community and is trusted as a top smart contract auditing company for the review of solidity code, no matter how complex. Our team of experienced solidity smart contract auditors performs audits for tokens, NFTs, crowdsales, marketplaces, gambling games, financial protocols, and more!

Contact us today to get a free quote for a smart contract audit of your project!

What is a SourceHat Audit?

Typically, a smart contract audit is a comprehensive review process designed to discover logical errors, security vulnerabilities, and optimization opportunities within code. A SourceHat Audit takes this a step further by verifying economic logic to ensure the stability of smart contracts and highlighting privileged functionality to create a report that is easy to understand for developers and community members alike.

How Do I Interpret the Findings?

Each of our Findings will be labeled with a Severity level. We always recommend the team resolve High, Medium, and Low severity findings prior to deploying the code to the mainnet. Here is a breakdown on what each Severity level means for the project:

  • High severity indicates that the issue puts a large number of users' funds at risk and has a high probability of exploitation, or the smart contract contains serious logical issues which can prevent the code from operating as intended.
  • Medium severity issues are those which place at least some users' funds at risk and has a medium to high probability of exploitation.
  • Low severity issues have a relatively minor risk association; these issues have a low probability of occurring or may have a minimal impact.
  • Informational issues pose no immediate risk, but inform the project team of opportunities for gas optimizations and following smart contract security best practices.