CannabisDoge Token Logo

CBD [CannabisDoge] Token

About CBD

Listings

Not Found
Token 15 months

Website

Not Found

Description

Not Found

Social

Not Found

Laser Scorebeta Last Audit: 17 January 2022

report
Token seems to be anonymous. As long as we are unable to find website score is limited.


Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)

CBD.addLiquidity(uint256,uint256) (#1961-1974) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1966-1973)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in CBD._transfer(address,address,uint256) (#1799-1889):
External calls:
- swapAndSendToFee(marketingTokens) (#1832)
- IERC20(DOGE).transfer(_marketingWalletAddress,newBalance) (#1899)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1952-1958)
- swapAndLiquify(swapTokens) (#1838)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1966-1973)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1934-1940)
- swapAndSendDividends(sellTokens) (#1841)
- success = IERC20(DOGE).transfer(address(dividendTracker),dividends) (#1979-1982)
- dividendTracker.distributeDOGEDividends(dividends) (#1985)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1952-1958)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1838)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1966-1973)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (#1861)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#589-592)
- _balances[recipient] = _balances[recipient].add(amount) (#593)
- super._transfer(from,to,amount) (#1864)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#589-592)
- _balances[recipient] = _balances[recipient].add(amount) (#593)
- swapping = false (#1843)
Apply the check-effects-interactions pattern.

Additional information: link

CBD.swapAndSendToFee(uint256) (#1891-1900) ignores return value by IERC20(DOGE).transfer(_marketingWalletAddress,newBalance) (#1899)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.

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.


Combination 2: Unchecked transfer + 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.


Combination 3: Reentrancy vulnerabilities + Unchecked transfer vulnerability. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.

DividendPayingToken._withdrawDividendOfUser(address) (#980-1005) has external calls inside a loop: success = IERC20(DOGE).transfer(user,_withdrawableDividend) (#991)
Favor pull over push strategy for external calls.

Additional information: link

Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#980-1005):
External calls:
- success = IERC20(DOGE).transfer(user,_withdrawableDividend) (#991)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (#994-996)
Reentrancy in CBD.updateDividendTracker(address) (#1581-1604):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1596)
- newDividendTracker.excludeFromDividends(address(this)) (#1597)
- newDividendTracker.excludeFromDividends(owner()) (#1598)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1599)
State variables written after the call(s):
- dividendTracker = newDividendTracker (#1603)
Apply the check-effects-interactions pattern.

Additional information: link

CBD._transfer(address,address,uint256).claims (#1876) is a local variable never initialized
CBD._transfer(address,address,uint256).iterations (#1875) is a local variable never initialized
CBD._transfer(address,address,uint256).lastProcessedIndex (#1877) 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

CBD.claim() (#1787-1789) ignores return value by dividendTracker.processAccount(msg.sender,false) (#1788)
CBD._transfer(address,address,uint256) (#1799-1889) ignores return value by dividendTracker.process(gas) (#1874-1887)
CBD.addLiquidity(uint256,uint256) (#1961-1974) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1966-1973)
Ensure that all the return values of the function calls are used.

Additional information: link

DividendPayingToken.constructor(string,string)._name (#953) shadows:
- ERC20._name (#363) (state variable)
DividendPayingToken.constructor(string,string)._symbol (#953) shadows:
- ERC20._symbol (#364) (state variable)
DividendPayingToken.dividendOf(address)._owner (#1010) shadows:
- Ownable._owner (#854) (state variable)
DividendPayingToken.withdrawableDividendOf(address)._owner (#1017) shadows:
- Ownable._owner (#854) (state variable)
DividendPayingToken.withdrawnDividendOf(address)._owner (#1029) shadows:
- Ownable._owner (#854) (state variable)
DividendPayingToken.accumulativeDividendOf(address)._owner (#1043) shadows:
- Ownable._owner (#854) (state variable)
Rename the local variables that shadow another component.

Additional information: link

CBD.setDOGERewardsFee(uint256) (#1643-1646) should emit an event for:
- DOGERewardsFee = value (#1644)
- totalFees = DOGERewardsFee.add(liquidityFee).add(marketingFee) (#1645)
CBD.setLiquiditFee(uint256) (#1648-1651) should emit an event for:
- liquidityFee = value (#1649)
- totalFees = DOGERewardsFee.add(liquidityFee).add(marketingFee) (#1650)
CBD.setMarketingFee(uint256) (#1653-1656) should emit an event for:
- marketingFee = value (#1654)
- totalFees = DOGERewardsFee.add(liquidityFee).add(marketingFee) (#1655)
Emit an event for critical parameter changes.

Additional information: link

CBD.updateUniswapV2Router(address)._uniswapV2Pair (#1613-1614) lacks a zero-check on :
- uniswapV2Pair = _uniswapV2Pair (#1615)
CBD.setMarketingWallet(address).wallet (#1639) lacks a zero-check on :
- _marketingWalletAddress = wallet (#1640)
Check that the address is not zero.

Additional information: link

Variable 'CBD._transfer(address,address,uint256).lastProcessedIndex (#1877)' in CBD._transfer(address,address,uint256) (#1799-1889) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1879-1886)
Variable 'CBD._transfer(address,address,uint256).claims (#1876)' in CBD._transfer(address,address,uint256) (#1799-1889) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1879-1886)
Variable 'CBD._transfer(address,address,uint256).iterations (#1875)' in CBD._transfer(address,address,uint256) (#1799-1889) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1879-1886)
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 CBD._transfer(address,address,uint256) (#1799-1889):
External calls:
- swapAndSendToFee(marketingTokens) (#1832)
- IERC20(DOGE).transfer(_marketingWalletAddress,newBalance) (#1899)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1952-1958)
- swapAndLiquify(swapTokens) (#1838)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1966-1973)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1934-1940)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1838)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1966-1973)
State variables written after the call(s):
- swapAndLiquify(swapTokens) (#1838)
- _allowances[owner][spender] = amount (#661)
Reentrancy in CBD._transfer(address,address,uint256) (#1799-1889):
External calls:
- swapAndSendToFee(marketingTokens) (#1832)
- IERC20(DOGE).transfer(_marketingWalletAddress,newBalance) (#1899)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1952-1958)
- swapAndLiquify(swapTokens) (#1838)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1966-1973)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1934-1940)
- swapAndSendDividends(sellTokens) (#1841)
- success = IERC20(DOGE).transfer(address(dividendTracker),dividends) (#1979-1982)
- dividendTracker.distributeDOGEDividends(dividends) (#1985)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1952-1958)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1838)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1966-1973)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (#1841)
- _allowances[owner][spender] = amount (#661)
Reentrancy in CBD.constructor() (#1543-1577):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1552-1553)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#1556)
- uniswapV2Router = _uniswapV2Router (#1555)
Reentrancy in CBD.constructor() (#1543-1577):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1552-1553)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1558)
- dividendTracker.excludeFromDividends(pair) (#1682)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#1561)
- dividendTracker.excludeFromDividends(address(this)) (#1562)
- dividendTracker.excludeFromDividends(owner()) (#1563)
- dividendTracker.excludeFromDividends(deadWallet) (#1564)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#1565)
State variables written after the call(s):
- _mint(owner(),1000000000000 * (10 ** 8)) (#1576)
- _balances[account] = _balances[account].add(amount) (#612)
- excludeFromFees(owner(),true) (#1568)
- _isExcludedFromFees[account] = excluded (#1623)
- excludeFromFees(_marketingWalletAddress,true) (#1569)
- _isExcludedFromFees[account] = excluded (#1623)
- excludeFromFees(address(this),true) (#1570)
- _isExcludedFromFees[account] = excluded (#1623)
- _mint(owner(),1000000000000 * (10 ** 8)) (#1576)
- _totalSupply = _totalSupply.add(amount) (#611)
Reentrancy in CBDDividendTracker.processAccount(address,bool) (#2308-2322):
External calls:
- amount = _withdrawDividendOfUser(account) (#2313)
- success = IERC20(DOGE).transfer(user,_withdrawableDividend) (#991)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (#2316)
Reentrancy in CBD.swapAndLiquify(uint256) (#1902-1923):
External calls:
- swapTokensForEth(half) (#1914)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1934-1940)
- addLiquidity(otherHalf,newBalance) (#1920)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1966-1973)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1920)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1966-1973)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#1920)
- _allowances[owner][spender] = amount (#661)
Reentrancy in CBD.updateUniswapV2Router(address) (#1606-1616):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (#1613-1614)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#1615)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in CBD._setAutomatedMarketMakerPair(address,bool) (#1674-1686):
External calls:
- dividendTracker.excludeFromDividends(pair) (#1682)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1685)
Reentrancy in CBD._transfer(address,address,uint256) (#1799-1889):
External calls:
- swapAndSendToFee(marketingTokens) (#1832)
- IERC20(DOGE).transfer(_marketingWalletAddress,newBalance) (#1899)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1952-1958)
- swapAndLiquify(swapTokens) (#1838)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1966-1973)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1934-1940)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1838)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1966-1973)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#662)
- swapAndLiquify(swapTokens) (#1838)
- SwapAndLiquify(half,newBalance,otherHalf) (#1922)
- swapAndLiquify(swapTokens) (#1838)
Reentrancy in CBD._transfer(address,address,uint256) (#1799-1889):
External calls:
- swapAndSendToFee(marketingTokens) (#1832)
- IERC20(DOGE).transfer(_marketingWalletAddress,newBalance) (#1899)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1952-1958)
- swapAndLiquify(swapTokens) (#1838)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1966-1973)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1934-1940)
- swapAndSendDividends(sellTokens) (#1841)
- success = IERC20(DOGE).transfer(address(dividendTracker),dividends) (#1979-1982)
- dividendTracker.distributeDOGEDividends(dividends) (#1985)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1952-1958)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1838)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1966-1973)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#662)
- swapAndSendDividends(sellTokens) (#1841)
- SendDividends(tokens,dividends) (#1986)
- swapAndSendDividends(sellTokens) (#1841)
- Transfer(sender,recipient,amount) (#594)
- super._transfer(from,address(this),fees) (#1861)
- Transfer(sender,recipient,amount) (#594)
- super._transfer(from,to,amount) (#1864)
Reentrancy in CBD._transfer(address,address,uint256) (#1799-1889):
External calls:
- swapAndSendToFee(marketingTokens) (#1832)
- IERC20(DOGE).transfer(_marketingWalletAddress,newBalance) (#1899)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1952-1958)
- swapAndLiquify(swapTokens) (#1838)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1966-1973)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1934-1940)
- swapAndSendDividends(sellTokens) (#1841)
- success = IERC20(DOGE).transfer(address(dividendTracker),dividends) (#1979-1982)
- dividendTracker.distributeDOGEDividends(dividends) (#1985)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1952-1958)
- dividendTracker.setBalance(address(from),balanceOf(from)) (#1866-1868)
- dividendTracker.setBalance(address(to),balanceOf(to)) (#1869)
- dividendTracker.process(gas) (#1874-1887)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1838)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1966-1973)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1879-1886)
Reentrancy in CBD.constructor() (#1543-1577):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1552-1553)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1558)
- dividendTracker.excludeFromDividends(pair) (#1682)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1685)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1558)
Reentrancy in CBD.constructor() (#1543-1577):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1552-1553)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1558)
- dividendTracker.excludeFromDividends(pair) (#1682)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#1561)
- dividendTracker.excludeFromDividends(address(this)) (#1562)
- dividendTracker.excludeFromDividends(owner()) (#1563)
- dividendTracker.excludeFromDividends(deadWallet) (#1564)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#1565)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#1625)
- excludeFromFees(_marketingWalletAddress,true) (#1569)
- ExcludeFromFees(account,excluded) (#1625)
- excludeFromFees(owner(),true) (#1568)
- ExcludeFromFees(account,excluded) (#1625)
- excludeFromFees(address(this),true) (#1570)
- Transfer(address(0),account,amount) (#613)
- _mint(owner(),1000000000000 * (10 ** 8)) (#1576)
Reentrancy in CBDDividendTracker.processAccount(address,bool) (#2308-2322):
External calls:
- amount = _withdrawDividendOfUser(account) (#2313)
- success = IERC20(DOGE).transfer(user,_withdrawableDividend) (#991)
Event emitted after the call(s):
- Claim(account,amount,automatic) (#2317)
Reentrancy in CBD.processDividendTracker(uint256) (#1771-1785):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (#1772-1776)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (#1777-1784)
Reentrancy in CBD.swapAndLiquify(uint256) (#1902-1923):
External calls:
- swapTokensForEth(half) (#1914)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1934-1940)
- addLiquidity(otherHalf,newBalance) (#1920)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1966-1973)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1920)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1966-1973)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#662)
- addLiquidity(otherHalf,newBalance) (#1920)
- SwapAndLiquify(half,newBalance,otherHalf) (#1922)
Reentrancy in CBD.swapAndSendDividends(uint256) (#1976-1988):
External calls:
- swapTokensForDoge(tokens) (#1977)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1952-1958)
- success = IERC20(DOGE).transfer(address(dividendTracker),dividends) (#1979-1982)
- dividendTracker.distributeDOGEDividends(dividends) (#1985)
Event emitted after the call(s):
- SendDividends(tokens,dividends) (#1986)
Reentrancy in CBD.updateDividendTracker(address) (#1581-1604):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1596)
- newDividendTracker.excludeFromDividends(address(this)) (#1597)
- newDividendTracker.excludeFromDividends(owner()) (#1598)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1599)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (#1601)
Apply the check-effects-interactions pattern.

Additional information: link

CBDDividendTracker.getAccount(address) (#2146-2193) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (#2190-2192)
CBDDividendTracker.canAutoClaim(uint256) (#2227-2233) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#2228)
- block.timestamp.sub(lastClaimTime) >= claimWait (#2232)
Avoid relying on block.timestamp.

Additional information: link

Different versions of Solidity is used:
- Version used: ['>=0.4.22<0.9.0', '^0.6.2']
- ^0.6.2 (#2)
- >=0.4.22<0.9.0 (#159)
Use one Solidity version.

Additional information: link

Context._msgData() (#153-156) is never used and should be removed
DividendPayingToken._transfer(address,address,uint256) (#1062-1077) is never used and should be removed
SafeMath.mod(uint256,uint256) (#304-306) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#320-327) is never used and should be removed
SafeMathInt.abs(int256) (#775-778) is never used and should be removed
SafeMathInt.div(int256,int256) (#746-752) is never used and should be removed
SafeMathInt.mul(int256,int256) (#734-741) is never used and should be removed
Remove unused functions.

Additional information: link

CBD.totalFees (#1485-1486) is set pre-construction with a non-constant function or state variable:
- DOGERewardsFee.add(liquidityFee).add(marketingFee)
Remove any initialization of state variables via non-constant state variables or function calls. If variables must be set upon contract deployment, locate initialization in the constructor instead.

Additional information: link

Pragma version^0.6.2 (#2) allows old versions
Pragma version>=0.4.22<0.9.0 (#159) is too complex
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 DividendPayingToken.dividendOf(address)._owner (#1010) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (#1017) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (#1029) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (#1043) is not in mixedCase
Constant DividendPayingToken.magnitude (#933) is not in UPPER_CASE_WITH_UNDERSCORES
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#1151) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#1153) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#1184) is not in mixedCase
Function IUniswapV2Router01.WETH() (#1260) is not in mixedCase
Variable CBD._isBlacklisted (#1480) is not in mixedCase
Variable CBD.DOGERewardsFee (#1482) is not in mixedCase
Variable CBD._marketingWalletAddress (#1488-1489) is not in mixedCase
Parameter CBDDividendTracker.getAccount(address)._account (#2146) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (#154)" inContext (#148-157)
Remove redundant statements if they congest code but offer no value.

Additional information: link

Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#1265) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#1266)
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#984) is too similar to CBDDividendTracker.getAccount(address).withdrawableDividends (#2153)
Prevent variables from having similar names.

Additional information: link

CBD.constructor() (#1543-1577) uses literals with too many digits:
- _mint(owner(),1000000000000 * (10 ** 8)) (#1576)
CBD.updateGasForProcessing(uint256) (#1688-1699) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 500000,CBD: gasForProcessing must be between 200,000 and 500,000) (#1689-1692)
CBD.slitherConstructorVariables() (#1463-1989) uses literals with too many digits:
- deadWallet = 0x000000000000000000000000000000000000dEaD (#1473)
CBD.slitherConstructorVariables() (#1463-1989) uses literals with too many digits:
- swapTokensAtAmount = 20000000 * (10 ** 8) (#1478)
CBD.slitherConstructorVariables() (#1463-1989) uses literals with too many digits:
- gasForProcessing = 300000 (#1492)
CBDDividendTracker.getAccountAtIndex(uint256) (#2195-2225) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#2210-2219)
CBDDividendTracker.slitherConstructorVariables() (#2062-2324) uses literals with too many digits:
- minimumTokenBalanceForDividends = 2000000 * (10 ** 8) (#2075)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

SafeMathInt.MAX_INT256 (#729) is never used in SafeMathInt (#727-784)
Remove unused state variables.

Additional information: link

CBD.deadWallet (#1473) should be constant
CBD.swapTokensAtAmount (#1478) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

name() should be declared external:
- ERC20.name() (#383-385)
symbol() should be declared external:
- ERC20.symbol() (#391-393)
decimals() should be declared external:
- ERC20.decimals() (#408-410)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#440-448)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#453-461)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#470-478)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#493-508)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#522-533)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#549-563)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#892-895)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#901-909)
distributeDOGEDividends(uint256) should be declared external:
- DividendPayingToken.distributeDOGEDividends(uint256) (#958-970)
withdrawDividend() should be declared external:
- CBDDividendTracker.withdrawDividend() (#2102-2107)
- DividendPayingToken.withdrawDividend() (#974-976)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (#1010-1012)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (#1029-1036)
updateDividendTracker(address) should be declared external:
- CBD.updateDividendTracker(address) (#1581-1604)
updateUniswapV2Router(address) should be declared external:
- CBD.updateUniswapV2Router(address) (#1606-1616)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- CBD.excludeMultipleAccountsFromFees(address[],bool) (#1628-1637)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- CBD.setAutomatedMarketMakerPair(address,bool) (#1658-1668)
updateGasForProcessing(uint256) should be declared external:
- CBD.updateGasForProcessing(uint256) (#1688-1699)
isExcludedFromFees(address) should be declared external:
- CBD.isExcludedFromFees(address) (#1713-1715)
withdrawableDividendOf(address) should be declared external:
- CBD.withdrawableDividendOf(address) (#1717-1723)
dividendTokenBalanceOf(address) should be declared external:
- CBD.dividendTokenBalanceOf(address) (#1725-1731)
get(IterableMapping.Map,address) should be declared external:
- IterableMapping.get(IterableMapping.Map,address) (#2000-2002)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (#2004-2013)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (#2015-2021)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (#2023-2025)
getAccountAtIndex(uint256) should be declared external:
- CBDDividendTracker.getAccountAtIndex(uint256) (#2195-2225)
process(uint256) should be declared external:
- CBDDividendTracker.process(uint256) (#2254-2306)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.


Number of Binance Smart Chain (BSC) token holders is low.


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 Telegram and Twitter accounts


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

Price for CBD