DogeCola — NFTs — DAPPS — Innovative Reward System — The DogeCola Farming — And more. Real drink on the market coming soon!
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
DogeCola.addLiquidity(uint256,uint256) (#859-872) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#864-871)
DogeCola.swapETHForTokens(uint256) (#842-857) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#849-854)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
DogeCola._transfer(address,address,uint256) (#685-802) uses a weak PRNG: "_bBSLimit = _bBSLimitMin + uint256(keccak256(bytes)(abi.encodePacked(block.timestamp,block.difficulty))) % (_bBSLimitMax - _bBSLimitMin + 1) (#746)"
Do not use block.timestamp, now or blockhash as a source of randomness
Additional information: link
Reentrancy in DogeCola._transfer(address,address,uint256) (#685-802):
External calls:
- swapTokens(contractTokenBalance) (#714)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#831-837)
External calls sending eth:
- swapTokens(contractTokenBalance) (#714)
- recipient.transfer(amount) (#1155)
State variables written after the call(s):
- _removeOldSellHistories() (#741)
- _sellHistories[i].time = _sellHistories[j].time (#1042)
- _sellHistories[i].bnbAmount = _sellHistories[j].bnbAmount (#1043)
- _sellHistories.pop() (#1053)
Reentrancy in DogeCola._transfer(address,address,uint256) (#685-802):
External calls:
- swapTokens(contractTokenBalance) (#714)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#831-837)
- buyBackTokens(_bBSLimit) (#749)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#849-854)
External calls sending eth:
- swapTokens(contractTokenBalance) (#714)
- recipient.transfer(amount) (#1155)
- buyBackTokens(_bBSLimit) (#749)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#849-854)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#801)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#978)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#903)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#894)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#914)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#924)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#895)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#905)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#915)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#926)
- _tokenTransfer(from,to,amount,takeFee) (#801)
- _rTotal = _rTotal.sub(rFee) (#933)
- _tokenTransfer(from,to,amount,takeFee) (#801)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#980)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#923)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#913)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#904)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#925)
- buyBackTokens(_bBSLimit) (#749)
- inSwapAndLiquify = true (#531)
- inSwapAndLiquify = false (#533)
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)
Redundant expression "this (#30)" inContext (#24-33)
Remove redundant statements if they congest code but offer no value.
Additional information: link
DogeCola.slitherConstructorVariables() (#429-1207) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#434)
DogeCola.prepareForPreSale() (#1140-1145) uses literals with too many digits:
- _maxTxAmount = 1000000000 * 10 ** 6 * 10 ** 9 (#1144)
DogeCola.slitherConstructorVariables() (#429-1207) uses literals with too many digits:
- _maxTxAmount = 3000000 * 10 ** 6 * 10 ** 9 (#490)
DogeCola.afterPreSale() (#1147-1152) uses literals with too many digits:
- _maxTxAmount = 3000000 * 10 ** 6 * 10 ** 9 (#1151)
DogeCola.slitherConstructorVariables() (#429-1207) uses literals with too many digits:
- _tTotal = 1000000000 * 10 ** 6 * 10 ** 9 (#445)
DogeCola.slitherConstructorVariables() (#429-1207) uses literals with too many digits:
- minimumTokensBeforeSwap = 200000 * 10 ** 6 * 10 ** 9 (#491)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
DogeCola._symbol (#450) should be constant
DogeCola._isEnabledBuyBackAndBurn (#508) should be constant
DogeCola._tTotal (#445) should be constant
DogeCola._decimals (#451) should be constant
DogeCola._name (#449) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
Low level call in Address.sendValue(address,uint256) (#117-123):
- (success) = recipient.call{value: amount}() (#121)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#143-160):
- (success,returndata) = target.call{value: weiValue}(data) (#146)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
DogeCola._transfer(address,address,uint256).sellHistory (#701) 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
DogeCola.addLiquidity(uint256,uint256) (#859-872) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#864-871)
Ensure that all the return values of the function calls are used.
Additional information: link
DogeCola._approve(address,address,uint256).owner (#677) shadows:
- Ownable.owner() (#176-178) (function)
DogeCola.allowance(address,address).owner (#586) shadows:
- Ownable.owner() (#176-178) (function)
Rename the local variables that shadow another component.
Additional information: link
DogeCola.setNumTokensSellToAddToBuyBack(uint256) (#1117-1119) should emit an event for:
- minimumTokensBeforeSwap = _minimumTokensBeforeSwap (#1118)
DogeCola.setBuyBackSellLimit(uint256) (#1105-1107) should emit an event for:
- buyBackSellLimit = buyBackSellSetLimit (#1106)
DogeCola.setSellFee(uint256,uint256) (#1096-1099) should emit an event for:
- _sellTaxFee = sellTaxFee (#1097)
- _sellLiquidityFee = sellLiquidityFee (#1098)
DogeCola.setLiquidityFeePercent(uint256) (#1101-1103) should emit an event for:
- _liquidityFee = liquidityFee (#1102)
DogeCola.SetSwapMinutes(uint256) (#1083-1085) should emit an event for:
- _intervalMinutesForSwap = newMinutes * 60 (#1084)
DogeCola.setMaxTxAmount(uint256) (#1109-1111) should emit an event for:
- _maxTxAmount = maxTxAmount (#1110)
DogeCola.SetBuyBackMaxTimeForHistories(uint256) (#1058-1060) should emit an event for:
- _buyBackMaxTimeForHistories = newMinutes * 60 (#1059)
DogeCola.setTaxFeePercent(uint256) (#1087-1089) should emit an event for:
- _taxFee = taxFee (#1088)
DogeCola.setBuyFee(uint256,uint256) (#1091-1094) should emit an event for:
- _buyTaxFee = buyTaxFee (#1092)
- _buyLiquidityFee = buyLiquidityFee (#1093)
DogeCola.SetBuyBackRangeRate(uint256) (#1074-1077) should emit an event for:
- _buyBackRangeRate = newPercent (#1076)
DogeCola.setMarketingDivisor(uint256) (#1113-1115) should emit an event for:
- marketingDivisor = divisor (#1114)
DogeCola.SetBuyBackTimeInterval(uint256) (#1070-1072) should emit an event for:
- _buyBackTimeInterval = newMinutes * 60 (#1071)
DogeCola.SetBuyBackDivisor(uint256) (#1062-1064) should emit an event for:
- _buyBackDivisor = newDivisor (#1063)
Emit an event for critical parameter changes.
Additional information: link
DogeCola.setMarketingAddress(address)._marketingAddress (#1121) lacks a zero-check on :
- marketingAddress = address(_marketingAddress) (#1122)
Check that the address is not zero.
Additional information: link
Reentrancy in DogeCola.changeRouterVersion(address) (#1158-1171):
External calls:
- _pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1164-1165)
State variables written after the call(s):
- uniswapV2Pair = _pair (#1167)
- uniswapV2Router = _uniswapV2Router (#1170)
Reentrancy in DogeCola.transferFrom(address,address,uint256) (#595-599):
External calls:
- _transfer(sender,recipient,amount) (#596)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#849-854)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#831-837)
External calls sending eth:
- _transfer(sender,recipient,amount) (#596)
- recipient.transfer(amount) (#1155)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#849-854)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#597)
- _allowances[owner][spender] = amount (#681)
Reentrancy in DogeCola._transfer(address,address,uint256) (#685-802):
External calls:
- swapTokens(contractTokenBalance) (#714)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#831-837)
- buyBackTokens(_bBSLimit) (#749)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#849-854)
External calls sending eth:
- swapTokens(contractTokenBalance) (#714)
- recipient.transfer(amount) (#1155)
- buyBackTokens(_bBSLimit) (#749)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#849-854)
State variables written after the call(s):
- removeAllFee() (#765)
- _liquidityFee = 0 (#1002)
- _liquidityFee = _buyLiquidityFee (#767)
- removeAllFee() (#771)
- _liquidityFee = 0 (#1002)
- _liquidityFee = _sellLiquidityFee (#773)
- removeAllFee() (#778)
- _liquidityFee = 0 (#1002)
- _liquidityFee = _addressFees[from]._liquidityFee (#780)
- _liquidityFee = _addressFees[from]._sellLiquidityFee (#785)
- removeAllFee() (#792)
- _liquidityFee = 0 (#1002)
- _liquidityFee = _addressFees[to]._buyLiquidityFee (#795)
- _tokenTransfer(from,to,amount,takeFee) (#801)
- _liquidityFee = _previousLiquidityFee (#1007)
- _liquidityFee = 0 (#1002)
- removeAllFee() (#765)
- _previousLiquidityFee = _liquidityFee (#999)
- removeAllFee() (#771)
- _previousLiquidityFee = _liquidityFee (#999)
- removeAllFee() (#778)
- _previousLiquidityFee = _liquidityFee (#999)
- removeAllFee() (#792)
- _previousLiquidityFee = _liquidityFee (#999)
- _tokenTransfer(from,to,amount,takeFee) (#801)
- _previousLiquidityFee = _liquidityFee (#999)
- removeAllFee() (#765)
- _previousTaxFee = _taxFee (#998)
- removeAllFee() (#771)
- _previousTaxFee = _taxFee (#998)
- removeAllFee() (#778)
- _previousTaxFee = _taxFee (#998)
- removeAllFee() (#792)
- _previousTaxFee = _taxFee (#998)
- _tokenTransfer(from,to,amount,takeFee) (#801)
- _previousTaxFee = _taxFee (#998)
- _tokenTransfer(from,to,amount,takeFee) (#801)
- _tFeeTotal = _tFeeTotal.add(tFee) (#934)
- removeAllFee() (#765)
- _taxFee = 0 (#1001)
- _taxFee = _buyTaxFee (#766)
- removeAllFee() (#771)
- _taxFee = 0 (#1001)
- _taxFee = _sellTaxFee (#772)
- removeAllFee() (#778)
- _taxFee = 0 (#1001)
- _taxFee = _addressFees[from]._taxFee (#779)
- _taxFee = _addressFees[from]._sellTaxFee (#784)
- removeAllFee() (#792)
- _taxFee = 0 (#1001)
- _taxFee = _addressFees[to]._buyTaxFee (#794)
- _tokenTransfer(from,to,amount,takeFee) (#801)
- _taxFee = _previousTaxFee (#1006)
- _taxFee = 0 (#1001)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in DogeCola.swapTokensForEth(uint256) (#822-840):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#831-837)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (#839)
Reentrancy in DogeCola.transferFrom(address,address,uint256) (#595-599):
External calls:
- _transfer(sender,recipient,amount) (#596)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#849-854)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#831-837)
External calls sending eth:
- _transfer(sender,recipient,amount) (#596)
- recipient.transfer(amount) (#1155)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#849-854)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#682)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#597)
Reentrancy in DogeCola._transfer(address,address,uint256) (#685-802):
External calls:
- swapTokens(contractTokenBalance) (#714)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#831-837)
- buyBackTokens(_bBSLimit) (#749)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#849-854)
External calls sending eth:
- swapTokens(contractTokenBalance) (#714)
- recipient.transfer(amount) (#1155)
- buyBackTokens(_bBSLimit) (#749)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#849-854)
Event emitted after the call(s):
- SwapETHForTokens(amount,path) (#856)
- buyBackTokens(_bBSLimit) (#749)
- Transfer(sender,recipient,tTransferAmount) (#898)
- _tokenTransfer(from,to,amount,takeFee) (#801)
- Transfer(sender,recipient,tTransferAmount) (#918)
- _tokenTransfer(from,to,amount,takeFee) (#801)
- Transfer(sender,recipient,tTransferAmount) (#908)
- _tokenTransfer(from,to,amount,takeFee) (#801)
- Transfer(sender,recipient,tTransferAmount) (#929)
- _tokenTransfer(from,to,amount,takeFee) (#801)
Reentrancy in DogeCola.swapETHForTokens(uint256) (#842-857):
External calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#849-854)
Event emitted after the call(s):
- SwapETHForTokens(amount,path) (#856)
Apply the check-effects-interactions pattern.
Additional information: link
DogeCola._removeOldSellHistories() (#1034-1056) uses timestamp for comparisons
Dangerous comparisons:
- _sellHistories[j].time >= maxStartTimeForHistories (#1040)
Ownable.unlock() (#211-216) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp > _lockTime,Contract is locked until 7 days) (#213)
DogeCola.buyBackTokens(uint256) (#816-820) uses timestamp for comparisons
Dangerous comparisons:
- amount > 0 (#817)
DogeCola._transfer(address,address,uint256) (#685-802) uses timestamp for comparisons
Dangerous comparisons:
- overMinimumTokenBalance && _startTimeForSwap + _intervalMinutesForSwap <= block.timestamp (#711)
- _sellHistories[i].time >= startTime (#731)
- balance > _bBSLimit (#748)
Avoid relying on block.timestamp.
Additional information: link
Address.isContract(address) (#106-115) uses assembly
- INLINE ASM (#113)
Address._functionCallWithValue(address,bytes,uint256,string) (#143-160) uses assembly
- INLINE ASM (#152-155)
Do not use evm assembly.
Additional information: link
Address.sendValue(address,uint256) (#117-123) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#134-136) is never used and should be removed
DogeCola.addLiquidity(uint256,uint256) (#859-872) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#98-101) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#138-141) is never used and should be removed
Context._msgData() (#29-32) is never used and should be removed
SafeMath.mod(uint256,uint256) (#94-96) is never used and should be removed
Address._functionCallWithValue(address,bytes,uint256,string) (#143-160) is never used and should be removed
Address.isContract(address) (#106-115) is never used and should be removed
Address.functionCall(address,bytes,string) (#130-132) is never used and should be removed
Address.functionCall(address,bytes) (#126-128) is never used and should be removed
Remove unused functions.
Additional information: link
DogeCola._rTotal (#446) is set pre-construction with a non-constant function or state variable:
- (MAX - (MAX % _tTotal))
DogeCola._previousLiquidityFee (#472) is set pre-construction with a non-constant function or state variable:
- _liquidityFee
DogeCola._previousTaxFee (#469) is set pre-construction with a non-constant function or state variable:
- _taxFee
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
Variable DogeCola._buyBackTimeInterval (#498) is not in mixedCase
Parameter DogeCola.setAutoBuyBackEnabled(bool)._enabled (#1135) is not in mixedCase
Parameter DogeCola.setBuyBackEnabled(bool)._enabled (#1130) is not in mixedCase
Variable DogeCola._taxFee (#468) is not in mixedCase
Parameter DogeCola.calculateLiquidityFee(uint256)._amount (#989) is not in mixedCase
Parameter DogeCola.setSellAddressFee(address,bool,uint256,uint256)._enable (#1200) is not in mixedCase
Parameter DogeCola.calculateTaxFee(uint256)._amount (#983) is not in mixedCase
Variable DogeCola._intervalMinutesForSwap (#481) is not in mixedCase
Parameter DogeCola.setSwapAndLiquifyEnabled(bool)._enabled (#1125) is not in mixedCase
Variable DogeCola._sellLiquidityFee (#478) is not in mixedCase
Variable DogeCola._isEnabledBuyBackAndBurn (#508) is not in mixedCase
Parameter DogeCola.setBuyAddressFee(address,bool,uint256,uint256)._addressTaxFee (#1194) is not in mixedCase
Parameter DogeCola.setNumTokensSellToAddToBuyBack(uint256)._minimumTokensBeforeSwap (#1117) is not in mixedCase
Parameter DogeCola.transferForeignToken(address,address)._token (#1177) is not in mixedCase
Function DogeCola.GetSwapMinutes() (#1079-1081) is not in mixedCase
Parameter DogeCola.setMarketingAddress(address)._marketingAddress (#1121) is not in mixedCase
Parameter DogeCola.setBuyAddressFee(address,bool,uint256,uint256)._enable (#1194) is not in mixedCase
Function DogeCola.GetBuyBackTimeInterval() (#1066-1068) is not in mixedCase
Function DogeCola.SetSwapMinutes(uint256) (#1083-1085) is not in mixedCase
Function DogeCola.SetBuyBackDivisor(uint256) (#1062-1064) is not in mixedCase
Parameter DogeCola.setBuyAddressFee(address,bool,uint256,uint256)._addressLiquidityFee (#1194) is not in mixedCase
Variable DogeCola._buyLiquidityFee (#475) is not in mixedCase
Variable DogeCola._sellHistories (#495) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#257) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#273) is not in mixedCase
Variable DogeCola._startTimeForSwap (#480) is not in mixedCase
Variable DogeCola._buyBackMaxTimeForHistories (#499) is not in mixedCase
Function DogeCola.SetBuyBackTimeInterval(uint256) (#1070-1072) is not in mixedCase
Parameter DogeCola.setSellAddressFee(address,bool,uint256,uint256)._address (#1200) is not in mixedCase
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#256) is not in mixedCase
Parameter DogeCola.setAddressFee(address,bool,uint256,uint256)._addressLiquidityFee (#1188) is not in mixedCase
Parameter DogeCola.setSellAddressFee(address,bool,uint256,uint256)._addressTaxFee (#1200) is not in mixedCase
Parameter DogeCola.changeRouterVersion(address)._router (#1158) is not in mixedCase
Parameter DogeCola.setAddressFee(address,bool,uint256,uint256)._address (#1188) is not in mixedCase
Parameter DogeCola.setBuyAddressFee(address,bool,uint256,uint256)._address (#1194) is not in mixedCase
Parameter DogeCola.setAddressFee(address,bool,uint256,uint256)._addressTaxFee (#1188) is not in mixedCase
Variable DogeCola._buyTaxFee (#474) is not in mixedCase
Parameter DogeCola.transferForeignToken(address,address)._to (#1177) is not in mixedCase
Parameter DogeCola.setSellAddressFee(address,bool,uint256,uint256)._addressLiquidityFee (#1200) is not in mixedCase
Variable DogeCola._maxTxAmount (#490) is not in mixedCase
Variable DogeCola._sellTaxFee (#477) is not in mixedCase
Variable DogeCola._addressFees (#486) is not in mixedCase
Function DogeCola.SetBuyBackMaxTimeForHistories(uint256) (#1058-1060) is not in mixedCase
Variable DogeCola._buyBackDivisor (#497) is not in mixedCase
Variable DogeCola._buyBackRangeRate (#483) is not in mixedCase
Function IUniswapV2Router01.WETH() (#294) is not in mixedCase
Variable DogeCola._isAutoBuyBack (#496) is not in mixedCase
Variable DogeCola._liquidityFee (#471) is not in mixedCase
Parameter DogeCola.setAddressFee(address,bool,uint256,uint256)._enable (#1188) is not in mixedCase
Function DogeCola.Sweep() (#1183-1186) is not in mixedCase
Function DogeCola.SetBuyBackRangeRate(uint256) (#1074-1077) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Reentrancy in DogeCola._transfer(address,address,uint256) (#685-802):
External calls:
- swapTokens(contractTokenBalance) (#714)
- recipient.transfer(amount) (#1155)
External calls sending eth:
- swapTokens(contractTokenBalance) (#714)
- recipient.transfer(amount) (#1155)
- buyBackTokens(_bBSLimit) (#749)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#849-854)
State variables written after the call(s):
- removeAllFee() (#765)
- _liquidityFee = 0 (#1002)
- _liquidityFee = _buyLiquidityFee (#767)
- removeAllFee() (#771)
- _liquidityFee = 0 (#1002)
- _liquidityFee = _sellLiquidityFee (#773)
- removeAllFee() (#778)
- _liquidityFee = 0 (#1002)
- _liquidityFee = _addressFees[from]._liquidityFee (#780)
- _liquidityFee = _addressFees[from]._sellLiquidityFee (#785)
- removeAllFee() (#792)
- _liquidityFee = 0 (#1002)
- _liquidityFee = _addressFees[to]._buyLiquidityFee (#795)
- _tokenTransfer(from,to,amount,takeFee) (#801)
- _liquidityFee = _previousLiquidityFee (#1007)
- _liquidityFee = 0 (#1002)
- removeAllFee() (#765)
- _previousLiquidityFee = _liquidityFee (#999)
- removeAllFee() (#771)
- _previousLiquidityFee = _liquidityFee (#999)
- removeAllFee() (#778)
- _previousLiquidityFee = _liquidityFee (#999)
- removeAllFee() (#792)
- _previousLiquidityFee = _liquidityFee (#999)
- _tokenTransfer(from,to,amount,takeFee) (#801)
- _previousLiquidityFee = _liquidityFee (#999)
- removeAllFee() (#765)
- _previousTaxFee = _taxFee (#998)
- removeAllFee() (#771)
- _previousTaxFee = _taxFee (#998)
- removeAllFee() (#778)
- _previousTaxFee = _taxFee (#998)
- removeAllFee() (#792)
- _previousTaxFee = _taxFee (#998)
- _tokenTransfer(from,to,amount,takeFee) (#801)
- _previousTaxFee = _taxFee (#998)
- _tokenTransfer(from,to,amount,takeFee) (#801)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#978)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#903)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#894)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#914)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#924)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#895)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#905)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#915)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#926)
- _tokenTransfer(from,to,amount,takeFee) (#801)
- _rTotal = _rTotal.sub(rFee) (#933)
- _tokenTransfer(from,to,amount,takeFee) (#801)
- _tFeeTotal = _tFeeTotal.add(tFee) (#934)
- _tokenTransfer(from,to,amount,takeFee) (#801)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#980)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#923)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#913)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#904)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#925)
- removeAllFee() (#765)
- _taxFee = 0 (#1001)
- _taxFee = _buyTaxFee (#766)
- removeAllFee() (#771)
- _taxFee = 0 (#1001)
- _taxFee = _sellTaxFee (#772)
- removeAllFee() (#778)
- _taxFee = 0 (#1001)
- _taxFee = _addressFees[from]._taxFee (#779)
- _taxFee = _addressFees[from]._sellTaxFee (#784)
- removeAllFee() (#792)
- _taxFee = 0 (#1001)
- _taxFee = _addressFees[to]._buyTaxFee (#794)
- _tokenTransfer(from,to,amount,takeFee) (#801)
- _taxFee = _previousTaxFee (#1006)
- _taxFee = 0 (#1001)
- buyBackTokens(_bBSLimit) (#749)
- inSwapAndLiquify = true (#531)
- inSwapAndLiquify = false (#533)
Event emitted after the call(s):
- SwapETHForTokens(amount,path) (#856)
- buyBackTokens(_bBSLimit) (#749)
- Transfer(sender,recipient,tTransferAmount) (#898)
- _tokenTransfer(from,to,amount,takeFee) (#801)
- Transfer(sender,recipient,tTransferAmount) (#918)
- _tokenTransfer(from,to,amount,takeFee) (#801)
- Transfer(sender,recipient,tTransferAmount) (#908)
- _tokenTransfer(from,to,amount,takeFee) (#801)
- Transfer(sender,recipient,tTransferAmount) (#929)
- _tokenTransfer(from,to,amount,takeFee) (#801)
Reentrancy in DogeCola.transferFrom(address,address,uint256) (#595-599):
External calls:
- _transfer(sender,recipient,amount) (#596)
- recipient.transfer(amount) (#1155)
External calls sending eth:
- _transfer(sender,recipient,amount) (#596)
- recipient.transfer(amount) (#1155)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#849-854)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#597)
- _allowances[owner][spender] = amount (#681)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#682)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#597)
Reentrancy in DogeCola._transfer(address,address,uint256) (#685-802):
External calls:
- swapTokens(contractTokenBalance) (#714)
- recipient.transfer(amount) (#1155)
State variables written after the call(s):
- _removeOldSellHistories() (#741)
- _sellHistories[i].time = _sellHistories[j].time (#1042)
- _sellHistories[i].bnbAmount = _sellHistories[j].bnbAmount (#1043)
- _sellHistories.pop() (#1053)
Apply the check-effects-interactions pattern.
Additional information: link
Variable DogeCola._getValues(uint256).rTransferAmount (#939) is too similar to DogeCola._transferToExcluded(address,address,uint256).tTransferAmount (#902)
Variable DogeCola._transferStandard(address,address,uint256).rTransferAmount (#893) is too similar to DogeCola._transferBothExcluded(address,address,uint256).tTransferAmount (#922)
Variable DogeCola.reflectionFromToken(uint256,bool).rTransferAmount (#643) is too similar to DogeCola._transferFromExcluded(address,address,uint256).tTransferAmount (#912)
Variable DogeCola._transferFromExcluded(address,address,uint256).rTransferAmount (#912) is too similar to DogeCola._transferFromExcluded(address,address,uint256).tTransferAmount (#912)
Variable DogeCola._getValues(uint256).rTransferAmount (#939) is too similar to DogeCola._getValues(uint256).tTransferAmount (#938)
Variable DogeCola.reflectionFromToken(uint256,bool).rTransferAmount (#643) is too similar to DogeCola._transferStandard(address,address,uint256).tTransferAmount (#893)
Variable DogeCola._transferStandard(address,address,uint256).rTransferAmount (#893) is too similar to DogeCola._getValues(uint256).tTransferAmount (#938)
Variable DogeCola._transferFromExcluded(address,address,uint256).rTransferAmount (#912) is too similar to DogeCola._getTValues(uint256).tTransferAmount (#946)
Variable DogeCola._transferStandard(address,address,uint256).rTransferAmount (#893) is too similar to DogeCola._transferStandard(address,address,uint256).tTransferAmount (#893)
Variable DogeCola._getValues(uint256).rTransferAmount (#939) is too similar to DogeCola._getTValues(uint256).tTransferAmount (#946)
Variable DogeCola.reflectionFromToken(uint256,bool).rTransferAmount (#643) is too similar to DogeCola._getValues(uint256).tTransferAmount (#938)
Variable DogeCola._transferStandard(address,address,uint256).rTransferAmount (#893) is too similar to DogeCola._transferToExcluded(address,address,uint256).tTransferAmount (#902)
Variable DogeCola._transferToExcluded(address,address,uint256).rTransferAmount (#902) is too similar to DogeCola._getValues(uint256).tTransferAmount (#938)
Variable DogeCola._transferBothExcluded(address,address,uint256).rTransferAmount (#922) is too similar to DogeCola._getTValues(uint256).tTransferAmount (#946)
Variable DogeCola._transferFromExcluded(address,address,uint256).rTransferAmount (#912) is too similar to DogeCola._transferBothExcluded(address,address,uint256).tTransferAmount (#922)
Variable DogeCola._transferBothExcluded(address,address,uint256).rTransferAmount (#922) is too similar to DogeCola._getValues(uint256).tTransferAmount (#938)
Variable DogeCola._transferFromExcluded(address,address,uint256).rTransferAmount (#912) is too similar to DogeCola._getValues(uint256).tTransferAmount (#938)
Variable DogeCola._transferToExcluded(address,address,uint256).rTransferAmount (#902) is too similar to DogeCola._transferStandard(address,address,uint256).tTransferAmount (#893)
Variable DogeCola._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#954) is too similar to DogeCola._transferToExcluded(address,address,uint256).tTransferAmount (#902)
Variable DogeCola._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#954) is too similar to DogeCola._transferFromExcluded(address,address,uint256).tTransferAmount (#912)
Variable DogeCola.reflectionFromToken(uint256,bool).rTransferAmount (#643) is too similar to DogeCola._getTValues(uint256).tTransferAmount (#946)
Variable DogeCola._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#954) is too similar to DogeCola._getValues(uint256).tTransferAmount (#938)
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#299) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#300)
Variable DogeCola._getValues(uint256).rTransferAmount (#939) is too similar to DogeCola._transferFromExcluded(address,address,uint256).tTransferAmount (#912)
Variable DogeCola._transferFromExcluded(address,address,uint256).rTransferAmount (#912) is too similar to DogeCola._transferToExcluded(address,address,uint256).tTransferAmount (#902)
Variable DogeCola._transferToExcluded(address,address,uint256).rTransferAmount (#902) is too similar to DogeCola._transferToExcluded(address,address,uint256).tTransferAmount (#902)
Variable DogeCola._transferStandard(address,address,uint256).rTransferAmount (#893) is too similar to DogeCola._getTValues(uint256).tTransferAmount (#946)
Variable DogeCola._transferToExcluded(address,address,uint256).rTransferAmount (#902) is too similar to DogeCola._transferBothExcluded(address,address,uint256).tTransferAmount (#922)
Variable DogeCola._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#954) is too similar to DogeCola._transferBothExcluded(address,address,uint256).tTransferAmount (#922)
Variable DogeCola._transferBothExcluded(address,address,uint256).rTransferAmount (#922) is too similar to DogeCola._transferBothExcluded(address,address,uint256).tTransferAmount (#922)
Variable DogeCola.reflectionFromToken(uint256,bool).rTransferAmount (#643) is too similar to DogeCola._transferToExcluded(address,address,uint256).tTransferAmount (#902)
Variable DogeCola._getValues(uint256).rTransferAmount (#939) is too similar to DogeCola._transferBothExcluded(address,address,uint256).tTransferAmount (#922)
Variable DogeCola.reflectionFromToken(uint256,bool).rTransferAmount (#643) is too similar to DogeCola._transferBothExcluded(address,address,uint256).tTransferAmount (#922)
Variable DogeCola._transferStandard(address,address,uint256).rTransferAmount (#893) is too similar to DogeCola._transferFromExcluded(address,address,uint256).tTransferAmount (#912)
Variable DogeCola._getValues(uint256).rTransferAmount (#939) is too similar to DogeCola._transferStandard(address,address,uint256).tTransferAmount (#893)
Variable DogeCola._transferToExcluded(address,address,uint256).rTransferAmount (#902) is too similar to DogeCola._transferFromExcluded(address,address,uint256).tTransferAmount (#912)
Variable DogeCola._transferToExcluded(address,address,uint256).rTransferAmount (#902) is too similar to DogeCola._getTValues(uint256).tTransferAmount (#946)
Variable DogeCola._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#954) is too similar to DogeCola._getTValues(uint256).tTransferAmount (#946)
Variable DogeCola._transferBothExcluded(address,address,uint256).rTransferAmount (#922) is too similar to DogeCola._transferFromExcluded(address,address,uint256).tTransferAmount (#912)
Variable DogeCola._transferFromExcluded(address,address,uint256).rTransferAmount (#912) is too similar to DogeCola._transferStandard(address,address,uint256).tTransferAmount (#893)
Variable DogeCola._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#954) is too similar to DogeCola._transferStandard(address,address,uint256).tTransferAmount (#893)
Variable DogeCola._transferBothExcluded(address,address,uint256).rTransferAmount (#922) is too similar to DogeCola._transferToExcluded(address,address,uint256).tTransferAmount (#902)
Variable DogeCola._transferBothExcluded(address,address,uint256).rTransferAmount (#922) is too similar to DogeCola._transferStandard(address,address,uint256).tTransferAmount (#893)
Prevent variables from having similar names.
Additional information: link
transferFrom(address,address,uint256) should be declared external:
- DogeCola.transferFrom(address,address,uint256) (#595-599)
buyBackSellLimitAmount() should be declared external:
- DogeCola.buyBackSellLimitAmount() (#623-625)
minimumTokensBeforeSwapAmount() should be declared external:
- DogeCola.minimumTokensBeforeSwapAmount() (#619-621)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#185-188)
deliver(uint256) should be declared external:
- DogeCola.deliver(uint256) (#627-634)
includeInFee(address) should be declared external:
- DogeCola.includeInFee(address) (#1018-1020)
reflectionFromToken(uint256,bool) should be declared external:
- DogeCola.reflectionFromToken(uint256,bool) (#637-646)
GetSwapMinutes() should be declared external:
- DogeCola.GetSwapMinutes() (#1079-1081)
changeRouterVersion(address) should be declared external:
- DogeCola.changeRouterVersion(address) (#1158-1171)
symbol() should be declared external:
- DogeCola.symbol() (#564-566)
decimals() should be declared external:
- DogeCola.decimals() (#568-570)
getTime() should be declared external:
- Ownable.getTime() (#200-202)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#190-194)
setBuyBackEnabled(bool) should be declared external:
- DogeCola.setBuyBackEnabled(bool) (#1130-1133)
name() should be declared external:
- DogeCola.name() (#560-562)
increaseAllowance(address,uint256) should be declared external:
- DogeCola.increaseAllowance(address,uint256) (#601-604)
allowance(address,address) should be declared external:
- DogeCola.allowance(address,address) (#586-588)
GetBuyBackTimeInterval() should be declared external:
- DogeCola.GetBuyBackTimeInterval() (#1066-1068)
isExcludedFromFee(address) should be declared external:
- DogeCola.isExcludedFromFee(address) (#1010-1012)
unlock() should be declared external:
- Ownable.unlock() (#211-216)
totalSupply() should be declared external:
- DogeCola.totalSupply() (#572-574)
decreaseAllowance(address,uint256) should be declared external:
- DogeCola.decreaseAllowance(address,uint256) (#606-609)
transfer(address,uint256) should be declared external:
- DogeCola.transfer(address,uint256) (#581-584)
isExcludedFromReward(address) should be declared external:
- DogeCola.isExcludedFromReward(address) (#611-613)
setAutoBuyBackEnabled(bool) should be declared external:
- DogeCola.setAutoBuyBackEnabled(bool) (#1135-1138)
lock(uint256) should be declared external:
- Ownable.lock(uint256) (#204-209)
transferForeignToken(address,address) should be declared external:
- DogeCola.transferForeignToken(address,address) (#1177-1181)
totalFees() should be declared external:
- DogeCola.totalFees() (#615-617)
getUnlockTime() should be declared external:
- Ownable.getUnlockTime() (#196-198)
excludeFromReward(address) should be declared external:
- DogeCola.excludeFromReward(address) (#654-662)
excludeFromFee(address) should be declared external:
- DogeCola.excludeFromFee(address) (#1014-1016)
approve(address,uint256) should be declared external:
- DogeCola.approve(address,uint256) (#590-593)
Use the external attribute for functions never called from the contract.
Additional information: link
DogeCola.includeInReward(address) (#664-675) has costly operations inside a loop:
- _excluded.pop() (#671)
Use a local variable to hold the loop computation result.
Additional information: link
Attempt to swap token was unsuccessful. For some reason it is untradeable. If token is not in presale stage and is not traded outside PancakeSwap, then it's a scam
Additional information: link
Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.
Average 30d number of PancakeSwap swaps is less than 1. Token is either dead or inactive.
Token is deployed only at one blockchain
Unable to find token contract audit
Unable to find audit link on the website
Token is marked as scam (rug pull, honeypot, phishing, etc.)
Additional information: link
Token has no active CoinMarketCap listing / rank
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account