欢迎来到 Chinu 🐶 bsc 发射项目即将到来..🤫
Chinu是2000多年前在中国首次出现的重庆犬种。
电报链接:https://t.me/Chinudoge
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
ChinuDoge.addLiquidity(uint256,uint256) (#1151-1161) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1153-1160)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in ChinuDoge._transfer(address,address,uint256) (#987-1101):
External calls:
- swapBack() (#1059)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1153-1160)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1142-1148)
- (success) = address(marketingAddress).call{value: bnbForMarketing}() (#1124)
- (success,None) = address(marketingAddress).call{value: address(this).balance}() (#1133)
External calls sending eth:
- swapBack() (#1059)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1153-1160)
- (success) = address(marketingAddress).call{value: bnbForMarketing}() (#1124)
- (success,None) = address(marketingAddress).call{value: address(this).balance}() (#1133)
State variables written after the call(s):
- _tokenTransfer(from,to,amount) (#1098)
- _liquidityTokensToSwap += tLiquidity * _buyLiquidityFee / _liquidityFee (#1376)
- _liquidityTokensToSwap += tLiquidity * _sellLiquidityFee / _liquidityFee (#1379)
- _tokenTransfer(from,to,amount) (#1098)
- _marketingTokensToSwap += tLiquidity * _buyMarketingFee / _liquidityFee (#1377)
- _marketingTokensToSwap += tLiquidity * _sellMarketingFee / _liquidityFee (#1380)
- _tokenTransfer(from,to,amount) (#1098)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1228)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1208)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1271)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1209)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1250)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1251)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1230)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#1384)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1273)
- _tokenTransfer(from,to,amount) (#1098)
- _rTotal = _rTotal.sub(rFee) (#1280)
- _tokenTransfer(from,to,amount) (#1098)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1249)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1270)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1229)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1272)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#1386)
Apply the check-effects-interactions pattern.
Additional information: link
ChinuDoge.earlyBuyPenaltyEnd (#660) is never initialized. It is used in:
- ChinuDoge._transfer(address,address,uint256) (#987-1101)
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
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 ticker (Chinu Doge) contains non-alphanumeric characters.
Not a direct threat, but may indicate unreliable intentions of developer. Non-alphanumeric chars (,.;!#*&") are extremely rare among low risk tokens.
ChinuDoge.slitherConstructorVariables() (#597-1548) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#607-608)
ChinuDoge.slitherConstructorVariables() (#597-1548) uses literals with too many digits:
- gasMaxLimit = 1000000 * 1000000000 (#671)
ChinuDoge.slitherConstructorConstantVariables() (#597-1548) uses literals with too many digits:
- _tTotal = 1000000000000 * 1e9 (#620)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Ownable._previousOwner (#212) is never used in ChinuDoge (#597-1548)
Remove unused state variables.
Additional information: link
ChinuDoge.earlyBuyPenaltyEnd (#660) should be constant
ChinuDoge.tradingActive (#686) should be constant
ChinuDoge.tradingActiveBlock (#658) should be constant
Ownable._previousOwner (#212) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
getTime() should be declared external:
- Ownable.getTime() (#248-250)
excludeFromMaxTransaction(address,bool) should be declared external:
- ChinuDoge.excludeFromMaxTransaction(address,bool) (#880-882)
setSwapAndLiquifyEnabled(bool) should be declared external:
- ChinuDoge.setSwapAndLiquifyEnabled(bool) (#1483-1486)
Use the external attribute for functions never called from the contract.
Additional information: link
Reentrancy in ChinuDoge.swapBack() (#1103-1135):
External calls:
- swapTokensForBNB(amountToSwapForBNB) (#1113)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1142-1148)
State variables written after the call(s):
- _liquidityTokensToSwap = 0 (#1121)
- _marketingTokensToSwap = 0 (#1122)
Apply the check-effects-interactions pattern.
Additional information: link
ChinuDoge._transfer(address,address,uint256) (#987-1101) uses tx.origin for authorization: require(bool,string)(_holderLastTransferTimestamp[tx.origin] < block.number,_transfer:: Transfer Delay enabled. Only one purchase per block allowed.) (#1022)
Do not use tx.origin for authorization.
Additional information: link
ChinuDoge.addLiquidity(uint256,uint256) (#1151-1161) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1153-1160)
Ensure that all the return values of the function calls are used.
Additional information: link
ChinuDoge.allowance(address,address).owner (#798) shadows:
- Ownable.owner() (#225-227) (function)
ChinuDoge._approve(address,address,uint256).owner (#976) shadows:
- Ownable.owner() (#225-227) (function)
Rename the local variables that shadow another component.
Additional information: link
ChinuDoge.setGasPriceLimit(uint256) (#904-907) should emit an event for:
- gasPriceLimit = gas * 1000000000 (#906)
ChinuDoge.setMinimumTokensBeforeSwap(uint256) (#1492-1494) should emit an event for:
- minimumTokensBeforeSwap = newAmt * (10 ** 9) (#1493)
ChinuDoge.setMaxBuyTxAmount(uint256) (#1496-1499) should emit an event for:
- _maxBuyTxAmount = maxBuyTxAmount * (10 ** 9) (#1498)
ChinuDoge.setMaxSellTxAmount(uint256) (#1501-1504) should emit an event for:
- _maxSellTxAmount = maxSellTxAmount * (10 ** 9) (#1503)
Emit an event for critical parameter changes.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#399) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#400)
Variable ChinuDoge.reflectionFromToken(uint256,bool).rTransferAmount (#925) is too similar to ChinuDoge._transferFromExcluded(address,address,uint256).tTransferAmount (#1245)
Variable ChinuDoge._transferToExcluded(address,address,uint256).rTransferAmount (#1222) is too similar to ChinuDoge._transferStandard(address,address,uint256).tTransferAmount (#1204)
Variable ChinuDoge._transferToExcluded(address,address,uint256).rTransferAmount (#1222) is too similar to ChinuDoge._getValues(uint256).tTransferAmount (#1297)
Variable ChinuDoge.reflectionFromToken(uint256,bool).rTransferAmount (#925) is too similar to ChinuDoge._transferBothExcluded(address,address,uint256).tTransferAmount (#1266)
Variable ChinuDoge._transferBothExcluded(address,address,uint256).rTransferAmount (#1264) is too similar to ChinuDoge._transferStandard(address,address,uint256).tTransferAmount (#1204)
Variable ChinuDoge._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#1349) is too similar to ChinuDoge._transferStandard(address,address,uint256).tTransferAmount (#1204)
Variable ChinuDoge._getValues(uint256).rTransferAmount (#1301) is too similar to ChinuDoge._transferBothExcluded(address,address,uint256).tTransferAmount (#1266)
Variable ChinuDoge.reflectionFromToken(uint256,bool).rTransferAmount (#925) is too similar to ChinuDoge._transferToExcluded(address,address,uint256).tTransferAmount (#1224)
Variable ChinuDoge._transferFromExcluded(address,address,uint256).rTransferAmount (#1243) is too similar to ChinuDoge._transferFromExcluded(address,address,uint256).tTransferAmount (#1245)
Variable ChinuDoge.reflectionFromToken(uint256,bool).rTransferAmount (#925) is too similar to ChinuDoge._getValues(uint256).tTransferAmount (#1297)
Variable ChinuDoge.reflectionFromToken(uint256,bool).rTransferAmount (#925) is too similar to ChinuDoge._transferStandard(address,address,uint256).tTransferAmount (#1204)
Variable ChinuDoge._transferFromExcluded(address,address,uint256).rTransferAmount (#1243) is too similar to ChinuDoge._transferBothExcluded(address,address,uint256).tTransferAmount (#1266)
Variable ChinuDoge._transferStandard(address,address,uint256).rTransferAmount (#1202) is too similar to ChinuDoge._transferStandard(address,address,uint256).tTransferAmount (#1204)
Variable ChinuDoge._transferToExcluded(address,address,uint256).rTransferAmount (#1222) is too similar to ChinuDoge._transferFromExcluded(address,address,uint256).tTransferAmount (#1245)
Variable ChinuDoge._getValues(uint256).rTransferAmount (#1301) is too similar to ChinuDoge._transferStandard(address,address,uint256).tTransferAmount (#1204)
Variable ChinuDoge._transferFromExcluded(address,address,uint256).rTransferAmount (#1243) is too similar to ChinuDoge._transferToExcluded(address,address,uint256).tTransferAmount (#1224)
Variable ChinuDoge._transferToExcluded(address,address,uint256).rTransferAmount (#1222) is too similar to ChinuDoge._transferBothExcluded(address,address,uint256).tTransferAmount (#1266)
Variable ChinuDoge._transferFromExcluded(address,address,uint256).rTransferAmount (#1243) is too similar to ChinuDoge._getValues(uint256).tTransferAmount (#1297)
Variable ChinuDoge._transferBothExcluded(address,address,uint256).rTransferAmount (#1264) is too similar to ChinuDoge._transferBothExcluded(address,address,uint256).tTransferAmount (#1266)
Variable ChinuDoge._transferFromExcluded(address,address,uint256).rTransferAmount (#1243) is too similar to ChinuDoge._transferStandard(address,address,uint256).tTransferAmount (#1204)
Variable ChinuDoge._transferToExcluded(address,address,uint256).rTransferAmount (#1222) is too similar to ChinuDoge._transferToExcluded(address,address,uint256).tTransferAmount (#1224)
Variable ChinuDoge._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#1349) is too similar to ChinuDoge._transferBothExcluded(address,address,uint256).tTransferAmount (#1266)
Variable ChinuDoge._transferStandard(address,address,uint256).rTransferAmount (#1202) is too similar to ChinuDoge._transferFromExcluded(address,address,uint256).tTransferAmount (#1245)
Variable ChinuDoge._transferBothExcluded(address,address,uint256).rTransferAmount (#1264) is too similar to ChinuDoge._transferToExcluded(address,address,uint256).tTransferAmount (#1224)
Variable ChinuDoge._transferStandard(address,address,uint256).rTransferAmount (#1202) is too similar to ChinuDoge._getValues(uint256).tTransferAmount (#1297)
Variable ChinuDoge._transferStandard(address,address,uint256).rTransferAmount (#1202) is too similar to ChinuDoge._transferToExcluded(address,address,uint256).tTransferAmount (#1224)
Variable ChinuDoge._transferStandard(address,address,uint256).rTransferAmount (#1202) is too similar to ChinuDoge._transferBothExcluded(address,address,uint256).tTransferAmount (#1266)
Variable ChinuDoge._transferFromExcluded(address,address,uint256).rTransferAmount (#1243) is too similar to ChinuDoge._getTValues(uint256).tTransferAmount (#1328)
Variable ChinuDoge._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#1349) is too similar to ChinuDoge._getTValues(uint256).tTransferAmount (#1328)
Variable ChinuDoge._getValues(uint256).rTransferAmount (#1301) is too similar to ChinuDoge._getTValues(uint256).tTransferAmount (#1328)
Variable ChinuDoge._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#1349) is too similar to ChinuDoge._transferFromExcluded(address,address,uint256).tTransferAmount (#1245)
Variable ChinuDoge._transferBothExcluded(address,address,uint256).rTransferAmount (#1264) is too similar to ChinuDoge._getTValues(uint256).tTransferAmount (#1328)
Variable ChinuDoge._getValues(uint256).rTransferAmount (#1301) is too similar to ChinuDoge._transferFromExcluded(address,address,uint256).tTransferAmount (#1245)
Variable ChinuDoge._transferBothExcluded(address,address,uint256).rTransferAmount (#1264) is too similar to ChinuDoge._transferFromExcluded(address,address,uint256).tTransferAmount (#1245)
Variable ChinuDoge._transferToExcluded(address,address,uint256).rTransferAmount (#1222) is too similar to ChinuDoge._getTValues(uint256).tTransferAmount (#1328)
Variable ChinuDoge._getValues(uint256).rTransferAmount (#1301) is too similar to ChinuDoge._getValues(uint256).tTransferAmount (#1297)
Variable ChinuDoge._getValues(uint256).rTransferAmount (#1301) is too similar to ChinuDoge._transferToExcluded(address,address,uint256).tTransferAmount (#1224)
Variable ChinuDoge.reflectionFromToken(uint256,bool).rTransferAmount (#925) is too similar to ChinuDoge._getTValues(uint256).tTransferAmount (#1328)
Variable ChinuDoge._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#1349) is too similar to ChinuDoge._getValues(uint256).tTransferAmount (#1297)
Variable ChinuDoge._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#1349) is too similar to ChinuDoge._transferToExcluded(address,address,uint256).tTransferAmount (#1224)
Variable ChinuDoge._transferStandard(address,address,uint256).rTransferAmount (#1202) is too similar to ChinuDoge._getTValues(uint256).tTransferAmount (#1328)
Variable ChinuDoge._transferBothExcluded(address,address,uint256).rTransferAmount (#1264) is too similar to ChinuDoge._getValues(uint256).tTransferAmount (#1297)
Prevent variables from having similar names.
Additional information: link
Reentrancy in ChinuDoge._transfer(address,address,uint256) (#987-1101):
External calls:
- swapBack() (#1059)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1153-1160)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1142-1148)
- (success) = address(marketingAddress).call{value: bnbForMarketing}() (#1124)
- (success,None) = address(marketingAddress).call{value: address(this).balance}() (#1133)
External calls sending eth:
- swapBack() (#1059)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1153-1160)
- (success) = address(marketingAddress).call{value: bnbForMarketing}() (#1124)
- (success,None) = address(marketingAddress).call{value: address(this).balance}() (#1133)
State variables written after the call(s):
- removeAllFee() (#1067)
- _burnFee = 0 (#1416)
- removeAllFee() (#1072)
- _burnFee = 0 (#1416)
- _burnFee = _buyBurnFee (#1075)
- removeAllFee() (#1080)
- _burnFee = 0 (#1416)
- _burnFee = _sellBurnFee (#1083)
- removeAllFee() (#1093)
- _burnFee = 0 (#1416)
- _tokenTransfer(from,to,amount) (#1098)
- _burnFee = _previousBurnFee (#1422)
- _burnFee = 0 (#1416)
- restoreAllFee() (#1100)
- _burnFee = _previousBurnFee (#1422)
- removeAllFee() (#1067)
- _liquidityFee = 0 (#1415)
- removeAllFee() (#1072)
- _liquidityFee = 0 (#1415)
- _liquidityFee = _buyLiquidityFee + _buyMarketingFee (#1074)
- removeAllFee() (#1080)
- _liquidityFee = 0 (#1415)
- _liquidityFee = _sellLiquidityFee + _sellMarketingFee (#1082)
- _liquidityFee = _liquidityFee * 5 (#1088)
- removeAllFee() (#1093)
- _liquidityFee = 0 (#1415)
- _tokenTransfer(from,to,amount) (#1098)
- _liquidityFee = _previousLiquidityFee (#1421)
- _liquidityFee = 0 (#1415)
- restoreAllFee() (#1100)
- _liquidityFee = _previousLiquidityFee (#1421)
- removeAllFee() (#1067)
- _previousBurnFee = _burnFee (#1412)
- removeAllFee() (#1072)
- _previousBurnFee = _burnFee (#1412)
- removeAllFee() (#1080)
- _previousBurnFee = _burnFee (#1412)
- removeAllFee() (#1093)
- _previousBurnFee = _burnFee (#1412)
- _tokenTransfer(from,to,amount) (#1098)
- _previousBurnFee = _burnFee (#1412)
- removeAllFee() (#1067)
- _previousLiquidityFee = _liquidityFee (#1411)
- removeAllFee() (#1072)
- _previousLiquidityFee = _liquidityFee (#1411)
- removeAllFee() (#1080)
- _previousLiquidityFee = _liquidityFee (#1411)
- removeAllFee() (#1093)
- _previousLiquidityFee = _liquidityFee (#1411)
- _tokenTransfer(from,to,amount) (#1098)
- _previousLiquidityFee = _liquidityFee (#1411)
- removeAllFee() (#1067)
- _previousTaxFee = _taxFee (#1410)
- removeAllFee() (#1072)
- _previousTaxFee = _taxFee (#1410)
- removeAllFee() (#1080)
- _previousTaxFee = _taxFee (#1410)
- removeAllFee() (#1093)
- _previousTaxFee = _taxFee (#1410)
- _tokenTransfer(from,to,amount) (#1098)
- _previousTaxFee = _taxFee (#1410)
- _tokenTransfer(from,to,amount) (#1098)
- _tFeeTotal = _tFeeTotal.add(tFee) (#1281)
- removeAllFee() (#1067)
- _taxFee = 0 (#1414)
- removeAllFee() (#1072)
- _taxFee = 0 (#1414)
- _taxFee = _buyTaxFee (#1073)
- removeAllFee() (#1080)
- _taxFee = 0 (#1414)
- _taxFee = _sellTaxFee (#1081)
- _taxFee = _taxFee * 5 (#1087)
- removeAllFee() (#1093)
- _taxFee = 0 (#1414)
- _tokenTransfer(from,to,amount) (#1098)
- _taxFee = _previousTaxFee (#1420)
- _taxFee = 0 (#1414)
- restoreAllFee() (#1100)
- _taxFee = _previousTaxFee (#1420)
- buyOrSellSwitch = TRANSFER (#1068)
- buyOrSellSwitch = BUY (#1076)
- buyOrSellSwitch = SELL (#1084)
- buyOrSellSwitch = TRANSFER (#1094)
Reentrancy in ChinuDoge.changeRouterVersion(address) (#1506-1530):
External calls:
- _pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1520-1523)
State variables written after the call(s):
- uniswapV2Pair = _pair (#1525)
- uniswapV2Router = _uniswapV2Router (#1528)
Reentrancy in ChinuDoge.constructor() (#735-766):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#750-751)
State variables written after the call(s):
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#756)
- _excluded.push(account) (#950)
- _excluded[i] = _excluded[_excluded.length - 1] (#957)
- _excluded.pop() (#960)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#756)
- _isExcluded[account] = true (#949)
- _isExcluded[account] = false (#959)
- _isExcludedFromFee[newOwner] = true (#758)
- _isExcludedFromFee[address(this)] = true (#759)
- _isExcludedFromFee[marketingAddress] = true (#760)
- _isExcludedFromFee[liquidityAddress] = true (#761)
- transferOwnership(newOwner) (#765)
- _owner = newOwner (#245)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#756)
- _tOwned[account] = tokenFromReflection(_rOwned[account]) (#947)
- _tOwned[account] = 0 (#958)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#756)
- automatedMarketMakerPairs[pair] = value (#895)
- uniswapV2Pair = _uniswapV2Pair (#754)
- uniswapV2Router = _uniswapV2Router (#753)
Reentrancy in ChinuDoge.swapBack() (#1103-1135):
External calls:
- swapTokensForBNB(amountToSwapForBNB) (#1113)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1142-1148)
- (success) = address(marketingAddress).call{value: bnbForMarketing}() (#1124)
- addLiquidity(tokensForLiquidity,bnbForLiquidity) (#1127)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1153-1160)
External calls sending eth:
- (success) = address(marketingAddress).call{value: bnbForMarketing}() (#1124)
- addLiquidity(tokensForLiquidity,bnbForLiquidity) (#1127)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1153-1160)
State variables written after the call(s):
- addLiquidity(tokensForLiquidity,bnbForLiquidity) (#1127)
- _allowances[owner][spender] = amount (#983)
Reentrancy in ChinuDoge.transferFrom(address,address,uint256) (#816-831):
External calls:
- _transfer(sender,recipient,amount) (#821)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1153-1160)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1142-1148)
- (success) = address(marketingAddress).call{value: bnbForMarketing}() (#1124)
- (success,None) = address(marketingAddress).call{value: address(this).balance}() (#1133)
External calls sending eth:
- _transfer(sender,recipient,amount) (#821)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1153-1160)
- (success) = address(marketingAddress).call{value: bnbForMarketing}() (#1124)
- (success,None) = address(marketingAddress).call{value: address(this).balance}() (#1133)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#822-829)
- _allowances[owner][spender] = amount (#983)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in ChinuDoge._transfer(address,address,uint256) (#987-1101):
External calls:
- swapBack() (#1059)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1153-1160)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1142-1148)
- (success) = address(marketingAddress).call{value: bnbForMarketing}() (#1124)
- (success,None) = address(marketingAddress).call{value: address(this).balance}() (#1133)
External calls sending eth:
- swapBack() (#1059)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1153-1160)
- (success) = address(marketingAddress).call{value: bnbForMarketing}() (#1124)
- (success,None) = address(marketingAddress).call{value: address(this).balance}() (#1133)
Event emitted after the call(s):
- Transfer(sender,recipient,tTransferAmount) (#1212)
- _tokenTransfer(from,to,amount) (#1098)
- Transfer(sender,recipient,tTransferAmount) (#1254)
- _tokenTransfer(from,to,amount) (#1098)
- Transfer(sender,recipient,tTransferAmount) (#1233)
- _tokenTransfer(from,to,amount) (#1098)
- Transfer(sender,recipient,tTransferAmount) (#1276)
- _tokenTransfer(from,to,amount) (#1098)
Reentrancy in ChinuDoge.changeRouterVersion(address) (#1506-1530):
External calls:
- _pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1520-1523)
Event emitted after the call(s):
- UpdatedRouter(_router) (#1529)
Reentrancy in ChinuDoge.constructor() (#735-766):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#750-751)
Event emitted after the call(s):
- OwnershipTransferred(_owner,newOwner) (#244)
- transferOwnership(newOwner) (#765)
- Transfer(address(0),newOwner,_tTotal) (#763)
Reentrancy in ChinuDoge.swapBack() (#1103-1135):
External calls:
- swapTokensForBNB(amountToSwapForBNB) (#1113)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1142-1148)
- (success) = address(marketingAddress).call{value: bnbForMarketing}() (#1124)
- addLiquidity(tokensForLiquidity,bnbForLiquidity) (#1127)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1153-1160)
External calls sending eth:
- (success) = address(marketingAddress).call{value: bnbForMarketing}() (#1124)
- addLiquidity(tokensForLiquidity,bnbForLiquidity) (#1127)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1153-1160)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#984)
- addLiquidity(tokensForLiquidity,bnbForLiquidity) (#1127)
- SwapAndLiquify(amountToSwapForBNB,bnbForLiquidity,tokensForLiquidity) (#1128)
Reentrancy in ChinuDoge.transferForeignToken(address,address) (#1535-1545):
External calls:
- _sent = IERC20(_token).transfer(_to,_contractBalance) (#1543)
Event emitted after the call(s):
- TransferForeignToken(_token,_contractBalance) (#1544)
Reentrancy in ChinuDoge.transferFrom(address,address,uint256) (#816-831):
External calls:
- _transfer(sender,recipient,amount) (#821)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1153-1160)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1142-1148)
- (success) = address(marketingAddress).call{value: bnbForMarketing}() (#1124)
- (success,None) = address(marketingAddress).call{value: address(this).balance}() (#1133)
External calls sending eth:
- _transfer(sender,recipient,amount) (#821)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1153-1160)
- (success) = address(marketingAddress).call{value: bnbForMarketing}() (#1124)
- (success,None) = address(marketingAddress).call{value: address(this).balance}() (#1133)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#984)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#822-829)
Apply the check-effects-interactions pattern.
Additional information: link
ChinuDoge._transfer(address,address,uint256) (#987-1101) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(! boughtEarly[from] || earlyBuyPenaltyEnd <= block.timestamp,Snipers can't transfer tokens to sell cheaper until penalty timeframe is over. DM a Mod.) (#1092)
Avoid relying on block.timestamp.
Additional information: link
Address.isContract(address) (#115-126) uses assembly
- INLINE ASM (#122-124)
Address._functionCallWithValue(address,bytes,uint256,string) (#184-207) uses assembly
- INLINE ASM (#199-202)
Do not use evm assembly.
Additional information: link
ChinuDoge.includeInReward(address) (#953-964) has costly operations inside a loop:
- _excluded.pop() (#960)
Use a local variable to hold the loop computation result.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#184-207) is never used and should be removed
Address.functionCall(address,bytes) (#142-147) is never used and should be removed
Address.functionCall(address,bytes,string) (#149-155) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#157-169) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#171-182) is never used and should be removed
Address.isContract(address) (#115-126) is never used and should be removed
Address.sendValue(address,uint256) (#128-140) is never used and should be removed
Context._msgData() (#14-17) is never used and should be removed
SafeMath.mod(uint256,uint256) (#100-102) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#104-111) is never used and should be removed
Remove unused functions.
Additional information: link
ChinuDoge._previousTaxFee (#640) is set pre-construction with a non-constant function or state variable:
- _taxFee
ChinuDoge._previousLiquidityFee (#643) is set pre-construction with a non-constant function or state variable:
- _liquidityFee
ChinuDoge._previousBurnFee (#646) is set pre-construction with a non-constant function or state variable:
- _burnFee
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 version0.8.9 (#7) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
solc-0.8.9 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
Low level call in Address.sendValue(address,uint256) (#128-140):
- (success) = recipient.call{value: amount}() (#135)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#184-207):
- (success,returndata) = target.call{value: weiValue}(data) (#192-194)
Low level call in ChinuDoge.swapBack() (#1103-1135):
- (success) = address(marketingAddress).call{value: bnbForMarketing}() (#1124)
- (success,None) = address(marketingAddress).call{value: address(this).balance}() (#1133)
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() (#318) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#320) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#350) is not in mixedCase
Function IUniswapV2Router01.WETH() (#394) is not in mixedCase
Parameter ChinuDoge.calculateTaxFee(uint256)._amount (#1389) is not in mixedCase
Parameter ChinuDoge.calculateLiquidityFee(uint256)._amount (#1393) is not in mixedCase
Parameter ChinuDoge.calculateBurnFee(uint256)._amount (#1401) is not in mixedCase
Parameter ChinuDoge.setMarketingAddress(address)._marketingAddress (#1469) is not in mixedCase
Parameter ChinuDoge.setLiquidityAddress(address)._liquidityAddress (#1476) is not in mixedCase
Parameter ChinuDoge.setSwapAndLiquifyEnabled(bool)._enabled (#1483) is not in mixedCase
Parameter ChinuDoge.changeRouterVersion(address)._router (#1506) is not in mixedCase
Parameter ChinuDoge.transferForeignToken(address,address)._token (#1535) is not in mixedCase
Parameter ChinuDoge.transferForeignToken(address,address)._to (#1535) is not in mixedCase
Constant ChinuDoge._tTotal (#620) is not in UPPER_CASE_WITH_UNDERSCORES
Constant ChinuDoge._name (#624) is not in UPPER_CASE_WITH_UNDERSCORES
Constant ChinuDoge._symbol (#625) is not in UPPER_CASE_WITH_UNDERSCORES
Constant ChinuDoge._decimals (#626) is not in UPPER_CASE_WITH_UNDERSCORES
Variable ChinuDoge._isExcludedMaxTransactionAmount (#667) is not in mixedCase
Variable ChinuDoge._maxBuyTxAmount (#678) is not in mixedCase
Variable ChinuDoge._maxSellTxAmount (#679) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#15)" inContext (#9-18)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Unable to find website, listings and other project-related information
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 Twitter account
Telegram account has relatively few subscribers
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account