DJDoge is a brand new meme currency based on the decentralized community on the BSC chain. We will organize the members who love DJ culture and DJDoge to form a DAO community, and all the major decisions of DJDoge will be decided by the votes of the MEMBERS of the DAO community.
DJDoge.addLiquidity(uint256,uint256) (#758-771) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#763-770)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in DJDoge._transfer(address,address,uint256) (#654-705):
External calls:
- swapAndLiquify(contractTokenBalance) (#692)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#763-770)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#747-753)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#692)
- recipient.transfer(amount) (#619)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#763-770)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#695)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#700)
- finalAmount = takeFee(sender,recipient,amount) (#697-698)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#785)
Apply the check-effects-interactions pattern.
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.
Contract ownership is not renounced (belongs to a wallet)
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
Reentrancy in DJDoge._transfer(address,address,uint256) (#654-705):
External calls:
- swapAndLiquify(contractTokenBalance) (#692)
- recipient.transfer(amount) (#619)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#692)
- recipient.transfer(amount) (#619)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#763-770)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#695)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#700)
- finalAmount = takeFee(sender,recipient,amount) (#697-698)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#785)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#786)
- finalAmount = takeFee(sender,recipient,amount) (#697-698)
- Transfer(sender,recipient,finalAmount) (#702)
Reentrancy in DJDoge.swapAndLiquify(uint256) (#714-736):
External calls:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#729)
- recipient.transfer(amount) (#619)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#732)
- recipient.transfer(amount) (#619)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#729)
- recipient.transfer(amount) (#619)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#732)
- recipient.transfer(amount) (#619)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#735)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#763-770)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#735)
- _allowances[owner][spender] = amount (#540)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#541)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#735)
Reentrancy in DJDoge.transferFrom(address,address,uint256) (#648-652):
External calls:
- _transfer(sender,recipient,amount) (#649)
- recipient.transfer(amount) (#619)
External calls sending eth:
- _transfer(sender,recipient,amount) (#649)
- recipient.transfer(amount) (#619)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#763-770)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#650)
- _allowances[owner][spender] = amount (#540)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#541)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#650)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#267) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#268)
Prevent variables from having similar names.
Additional information: link
DJDoge.slitherConstructorVariables() (#395-793) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#407)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
DJDoge._buyLiquidityFee (#420) should be constant
DJDoge._buyMarketingFee (#421) should be constant
DJDoge._buyTeamFee (#422) should be constant
DJDoge._decimals (#402) should be constant
DJDoge._liquidityShare (#428) should be constant
DJDoge._marketingShare (#429) should be constant
DJDoge._name (#400) should be constant
DJDoge._sellLiquidityFee (#424) should be constant
DJDoge._sellMarketingFee (#425) should be constant
DJDoge._sellTeamFee (#426) should be constant
DJDoge._symbol (#401) should be constant
DJDoge._teamShare (#430) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
waiveOwnership() should be declared external:
- Ownable.waiveOwnership() (#161-164)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#166-170)
getUnlockTime() should be declared external:
- Ownable.getUnlockTime() (#172-174)
getTime() should be declared external:
- Ownable.getTime() (#176-178)
lock(uint256) should be declared external:
- Ownable.lock(uint256) (#180-185)
unlock() should be declared external:
- Ownable.unlock() (#187-192)
name() should be declared external:
- DJDoge.name() (#493-495)
symbol() should be declared external:
- DJDoge.symbol() (#497-499)
decimals() should be declared external:
- DJDoge.decimals() (#501-503)
totalSupply() should be declared external:
- DJDoge.totalSupply() (#505-507)
allowance(address,address) should be declared external:
- DJDoge.allowance(address,address) (#513-515)
increaseAllowance(address,uint256) should be declared external:
- DJDoge.increaseAllowance(address,uint256) (#517-520)
decreaseAllowance(address,uint256) should be declared external:
- DJDoge.decreaseAllowance(address,uint256) (#522-525)
minimumTokensBeforeSwapAmount() should be declared external:
- DJDoge.minimumTokensBeforeSwapAmount() (#527-529)
approve(address,uint256) should be declared external:
- DJDoge.approve(address,uint256) (#531-534)
setMarketPairStatus(address,bool) should be declared external:
- DJDoge.setMarketPairStatus(address,bool) (#544-546)
setIsExcludedFromFee(address,bool) should be declared external:
- DJDoge.setIsExcludedFromFee(address,bool) (#548-550)
isLiquidityHolders(address) should be declared external:
- DJDoge.isLiquidityHolders(address) (#565-567)
transferForeignToken(address,address) should be declared external:
- DJDoge.transferForeignToken(address,address) (#594-598)
setSwapAndLiquifyEnabled(bool) should be declared external:
- DJDoge.setSwapAndLiquifyEnabled(bool) (#605-608)
setSwapAndLiquifyByLimitOnly(bool) should be declared external:
- DJDoge.setSwapAndLiquifyByLimitOnly(bool) (#610-612)
getCirculatingSupply() should be declared external:
- DJDoge.getCirculatingSupply() (#614-616)
changeRouterVersion(address) should be declared external:
- DJDoge.changeRouterVersion(address) (#622-638)
transfer(address,uint256) should be declared external:
- DJDoge.transfer(address,uint256) (#643-646)
transferFrom(address,address,uint256) should be declared external:
- DJDoge.transferFrom(address,address,uint256) (#648-652)
Use the external attribute for functions never called from the contract.
Additional information: link
DJDoge.addLiquidity(uint256,uint256) (#758-771) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#763-770)
Ensure that all the return values of the function calls are used.
Additional information: link
DJDoge.allowance(address,address).owner (#513) shadows:
- Ownable.owner() (#152-154) (function)
DJDoge._approve(address,address,uint256).owner (#536) shadows:
- Ownable.owner() (#152-154) (function)
Rename the local variables that shadow another component.
Additional information: link
DJDoge.setNumTokensBeforeSwap(uint256) (#578-580) should emit an event for:
- minimumTokensBeforeSwap = newLimit (#579)
Emit an event for critical parameter changes.
Additional information: link
DJDoge.setMarketingWalletAddress(address).newAddress (#582) lacks a zero-check on :
- marketingWalletAddress = address(newAddress) (#583)
DJDoge.setTeamWalletAddress(address).newAddress (#586) lacks a zero-check on :
- teamWalletAddress = address(newAddress) (#587)
DJDoge.setOAddress(address).newAddress (#590) lacks a zero-check on :
- OwnerAddress = newAddress (#591)
DJDoge.Sweep(address).account (#600) lacks a zero-check on :
- address(account).transfer(balance) (#602)
Check that the address is not zero.
Additional information: link
Reentrancy in DJDoge.changeRouterVersion(address) (#622-638):
External calls:
- newPairAddress = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#630-631)
State variables written after the call(s):
- isMarketPair[address(uniswapPair)] = true (#637)
- uniswapPair = newPairAddress (#634)
- uniswapV2Router = _uniswapV2Router (#635)
Reentrancy in DJDoge.constructor() (#469-491):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#473-474)
State variables written after the call(s):
- _allowances[address(this)][address(uniswapV2Router)] = _totalSupply (#477)
- _balances[_msgSender()] = _totalSupply (#489)
- _liquidityHolders[owner()] = true (#481)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_teamShare) (#485)
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyTeamFee) (#483)
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellTeamFee) (#484)
- isExcludedFromFee[owner()] = true (#479)
- isExcludedFromFee[address(this)] = true (#480)
- isMarketPair[address(uniswapPair)] = true (#487)
- uniswapV2Router = _uniswapV2Router (#476)
Reentrancy in DJDoge.swapAndLiquify(uint256) (#714-736):
External calls:
- swapTokensForEth(tokensForSwap) (#719)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#747-753)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#735)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#763-770)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#729)
- recipient.transfer(amount) (#619)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#732)
- recipient.transfer(amount) (#619)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#735)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#763-770)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#735)
- _allowances[owner][spender] = amount (#540)
Reentrancy in DJDoge.transferFrom(address,address,uint256) (#648-652):
External calls:
- _transfer(sender,recipient,amount) (#649)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#763-770)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#747-753)
External calls sending eth:
- _transfer(sender,recipient,amount) (#649)
- recipient.transfer(amount) (#619)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#763-770)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#650)
- _allowances[owner][spender] = amount (#540)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in DJDoge._transfer(address,address,uint256) (#654-705):
External calls:
- swapAndLiquify(contractTokenBalance) (#692)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#763-770)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#747-753)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#692)
- recipient.transfer(amount) (#619)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#763-770)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#786)
- finalAmount = takeFee(sender,recipient,amount) (#697-698)
- Transfer(sender,recipient,finalAmount) (#702)
Reentrancy in DJDoge.constructor() (#469-491):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#473-474)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_totalSupply) (#490)
Reentrancy in DJDoge.swapAndLiquify(uint256) (#714-736):
External calls:
- swapTokensForEth(tokensForSwap) (#719)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#747-753)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#735)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#763-770)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#729)
- recipient.transfer(amount) (#619)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#732)
- recipient.transfer(amount) (#619)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#735)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#763-770)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#541)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#735)
Reentrancy in DJDoge.swapTokensForEth(uint256) (#738-756):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#747-753)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (#755)
Reentrancy in DJDoge.transferFrom(address,address,uint256) (#648-652):
External calls:
- _transfer(sender,recipient,amount) (#649)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#763-770)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#747-753)
External calls sending eth:
- _transfer(sender,recipient,amount) (#649)
- recipient.transfer(amount) (#619)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#763-770)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#541)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#650)
Apply the check-effects-interactions pattern.
Additional information: link
Ownable.unlock() (#187-192) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp > _lockTime,Contract is locked until 7 days) (#189)
Avoid relying on block.timestamp.
Additional information: link
Address.isContract(address) (#83-92) uses assembly
- INLINE ASM (#90)
Address._functionCallWithValue(address,bytes,uint256,string) (#119-136) uses assembly
- INLINE ASM (#128-131)
Do not use evm assembly.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#119-136) is never used and should be removed
Address.functionCall(address,bytes) (#102-104) is never used and should be removed
Address.functionCall(address,bytes,string) (#106-108) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#110-112) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#114-117) is never used and should be removed
Address.isContract(address) (#83-92) is never used and should be removed
Address.sendValue(address,uint256) (#94-100) is never used and should be removed
Context._msgData() (#10-13) is never used and should be removed
SafeMath.mod(uint256,uint256) (#71-73) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#75-78) is never used and should be removed
Remove unused functions.
Additional information: link
DJDoge._totalSupply (#436) is set pre-construction with a non-constant function or state variable:
- 10 * 10 ** 4 * 10 ** 6 * 10 ** _decimals
DJDoge.minimumTokensBeforeSwap (#437) is set pre-construction with a non-constant function or state variable:
- 15 * 10 ** 7 * 10 ** _decimals
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
Low level call in Address.sendValue(address,uint256) (#94-100):
- (success) = recipient.call{value: amount}() (#98)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#119-136):
- (success,returndata) = target.call{value: weiValue}(data) (#122)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#226) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#227) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#243) is not in mixedCase
Function IUniswapV2Router01.WETH() (#262) is not in mixedCase
Parameter DJDoge.transferForeignToken(address,address)._token (#594) is not in mixedCase
Parameter DJDoge.transferForeignToken(address,address)._to (#594) is not in mixedCase
Function DJDoge.Sweep(address) (#600-603) is not in mixedCase
Parameter DJDoge.setSwapAndLiquifyEnabled(bool)._enabled (#605) is not in mixedCase
Variable DJDoge.OwnerAddress (#406) is not in mixedCase
Variable DJDoge._balances (#409) is not in mixedCase
Variable DJDoge._hasLiqBeenAdded (#417) is not in mixedCase
Variable DJDoge._buyLiquidityFee (#420) is not in mixedCase
Variable DJDoge._buyMarketingFee (#421) is not in mixedCase
Variable DJDoge._buyTeamFee (#422) is not in mixedCase
Variable DJDoge._sellLiquidityFee (#424) is not in mixedCase
Variable DJDoge._sellMarketingFee (#425) is not in mixedCase
Variable DJDoge._sellTeamFee (#426) is not in mixedCase
Variable DJDoge._liquidityShare (#428) is not in mixedCase
Variable DJDoge._marketingShare (#429) is not in mixedCase
Variable DJDoge._teamShare (#430) is not in mixedCase
Variable DJDoge._totalTaxIfBuying (#432) is not in mixedCase
Variable DJDoge._totalTaxIfSelling (#433) is not in mixedCase
Variable DJDoge._totalDistributionShares (#434) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#11)" inContext (#4-14)
Remove redundant statements if they congest code but offer no value.
Additional information: link
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Unable to verify that token and website are owned by the same team (no listings + unable to find contract on website)
Unable to verify token contract address on the website
Unable to find audit link on the website
Unable to find whitepaper link on the website
Unable to find token on CoinGecko
Additional information: link
Unable to find token on CoinMarketCap
Additional information: link
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
Young tokens have high risks of scam / price dump / death
Alexa traffic rank is very low
Additional information: link
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account