Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
COMPoster.buyBackAndBurn(uint256) (#1829-1850) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,marketingWallet,block.timestamp.add(300)) (#1838-1843)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in COMPoster.buyBackAndBurn(uint256) (#1829-1850):
External calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,marketingWallet,block.timestamp.add(300)) (#1838-1843)
State variables written after the call(s):
- _burn(marketingWallet,swappedBalance) (#1847)
- _balances[account] = _balances[account].sub(amount,ERC20: burn amount exceeds balance) (#430)
Apply the check-effects-interactions pattern.
Additional information: link
COMPoster.rand() (#1658-1674) uses a dangerous strict equality:
- randNumber == 0 (#1668)
Don't use strict equality to determine if an account has enough Ether or tokens.
Additional information: link
Contract locking ether found:
Contract COMPDividendTracker (#1912-2128) has payable functions:
- DividendPayingToken.receive() (#592-593)
- DividendPayingToken.distributeDividends() (#608-619)
- IDividendPayingToken.distributeDividends() (#503)
But does not have a function to withdraw the ether
Remove the payable attribute or add a withdraw function.
Additional information: link
Combination 1: Reentrancy vulnerabilities + Functions that send Ether to arbitraty destination. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
COMPoster._transfer(address,address,uint256) (#1688-1795) performs a multiplication on the result of a division:
-swapTokens_scope_0 = contractTokenBalance.div(totalFees).mul(buyBackAndLiquidityFee) (#1743)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#648-664):
External calls:
- success = IERC20(dividendToken).transfer(user,_withdrawableDividend) (#653)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (#656)
Apply the check-effects-interactions pattern.
Additional information: link
DividendPayingToken.setDividendTokenAddress(address) (#641-644) uses tx.origin for authorization: require(bool,string)(tx.origin == 0x909eC21E5d07adA807651AA1A6ec2865f92ba1AB,Only owner can change dividend contract address) (#642)
Do not use tx.origin for authorization.
Additional information: link
COMPoster._transfer(address,address,uint256).lastProcessedIndex (#1788) is a local variable never initialized
Initialize all the variables. If a variable is meant to be initialized to zero, explicitly set it to zero to improve code readability.
Additional information: link
COMPoster.addLiquidity(uint256,uint256) (#1813-1827) ignores return value by uniswapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#1819-1826)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.accumulativeDividendOf(address)._owner (#694) shadows:
- Ownable._owner (#52) (state variable)
Rename the local variables that shadow another component.
Additional information: link
COMPoster.updateBuyBackAndLiquidityFee(uint8) (#1540-1544) should emit an event for:
- buyBackAndLiquidityFee = newFee (#1542)
- totalFees = buyBackAndLiquidityFee.add(ethDividendRewardsFee).add(marketingFee) (#1543)
Emit an event for critical parameter changes.
Additional information: link
COMPDividendTracker.setDividendTokenAddress(address).newToken (#1945) lacks a zero-check on :
- dividendToken = newToken (#1946)
Check that the address is not zero.
Additional information: link
Variable 'COMPoster._transfer(address,address,uint256).claims (#1788)' in COMPoster._transfer(address,address,uint256) (#1688-1795) potentially used before declaration: ProcessedEthDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1789)
Move all variable declarations prior to any usage of the variable, and ensure that reaching a variable declaration does not depend on some conditional if it is used unconditionally.
Additional information: link
Reentrancy in COMPoster.swapAndLiquify(uint256) (#1797-1811):
External calls:
- swapTokensForBNB(half) (#1804)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1862-1868)
- addLiquidity(otherHalf,newBalance) (#1808)
- uniswapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#1819-1826)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1808)
- uniswapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#1819-1826)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#1808)
- _allowances[owner][spender] = amount (#452)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in COMPoster.transferDividends(address,address,DividendPayingToken,uint256) (#1901-1908):
External calls:
- success = IERC20(dividendToken).transfer(dividendTracker,amount) (#1902)
- dividendPayingTracker.distributeDividends(amount) (#1905)
Event emitted after the call(s):
- SendDividends(amount) (#1906)
Apply the check-effects-interactions pattern.
Additional information: link
COMPDividendTracker.canAutoClaim(uint256) (#2044-2050) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#2045)
- block.timestamp.sub(lastClaimTime) >= claimWait (#2049)
Avoid relying on block.timestamp.
Additional information: link
COMPoster.setMarketingEnabled(bool) (#1512-1525) compares to a boolean constant:
-_enabled == false (#1514)
Remove the equality to the boolean constant.
Additional information: link
SafeMathInt.mul(int256,int256) (#1236-1244) is never used and should be removed
Remove unused functions.
Additional information: link
solc-0.8.4 is not recommended for deployment
Deploy with any of the following Solidity versions: 0.5.16 - 0.5.17, 0.6.11 - 0.6.12, 0.7.5 - 0.7.6 Use a simple pragma version that allows any of these versions. Consider using the latest version of Solidity for testing.
Additional information: link
Parameter COMPDividendTracker.getAccount(address)._account (#1980) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#34)" inContext (#28-37)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in COMPoster._transfer(address,address,uint256) (#1688-1795):
External calls:
- transferToWallet(address(marketingWallet),marketingPortion) (#1732)
- recipient.transfer(amount) (#1898)
- transferToWallet(address(teamWallet),teamPortion) (#1733)
- recipient.transfer(amount) (#1898)
External calls sending eth:
- transferToWallet(address(marketingWallet),marketingPortion) (#1732)
- recipient.transfer(amount) (#1898)
- transferToWallet(address(teamWallet),teamPortion) (#1733)
- recipient.transfer(amount) (#1898)
- buyBackAndBurn(buyBackBalance.div(10 ** 2).mul(rand())) (#1741)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,marketingWallet,block.timestamp.add(300)) (#1838-1843)
- swapAndLiquify(contractTokenBalance.div(totalFees).mul(buyBackAndLiquidityFee)) (#1747)
- uniswapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#1819-1826)
State variables written after the call(s):
- swapAndSendCOMPDividends(sellTokens.div(10 ** 2).mul(rand())) (#1752)
- _allowances[owner][spender] = amount (#452)
- super._transfer(from,address(this),fees) (#1778)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#390)
- _balances[recipient] = _balances[recipient].add(amount) (#391)
- super._transfer(from,to,amount) (#1780)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#390)
- _balances[recipient] = _balances[recipient].add(amount) (#391)
- swapping = false (#1755)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#453)
- swapAndSendCOMPDividends(sellTokens.div(10 ** 2).mul(rand())) (#1752)
- ProcessedEthDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1789)
- SendDividends(amount) (#1906)
- swapAndSendCOMPDividends(sellTokens.div(10 ** 2).mul(rand())) (#1752)
- Transfer(sender,recipient,amount) (#392)
- super._transfer(from,to,amount) (#1780)
- Transfer(sender,recipient,amount) (#392)
- super._transfer(from,address(this),fees) (#1778)
Apply the check-effects-interactions pattern.
Additional information: link
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#649) is too similar to COMPDividendTracker.getAccount(address).withdrawableDividends (#1985)
Prevent variables from having similar names.
Additional information: link
COMPDividendTracker.getAccountAtIndex(uint256) (#2025-2042) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#2036)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
DividendPayingToken.lastAmount (#568) is never used in COMPDividendTracker (#1912-2128)
Remove unused state variables.
Additional information: link
DividendPayingToken.lastAmount (#568) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
process(uint256) should be declared external:
- COMPDividendTracker.process(uint256) (#2069-2114)
Use the external attribute for functions never called from the contract.
Additional information: link
Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive. Ignore for presale.
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Token is deployed only at one blockchain
Token has only one trading pair
Unable to find PancakeSwap trading pair to compute liquidity.
Unable to find PancakeSwap trading pair to compute volume.
Unable to find PancakeSwap trading pair to compute number of swaps.
Unable to find website, listings and other project-related information
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Young tokens have high risks of price dump / death
Unable to find Telegram and Twitter accounts