Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
YOLOCoin.addLiquidity(uint256,uint256) (#1404-1418) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liqWalletAddress,block.timestamp) (#1409-1416)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in YOLOCoin._transfer(address,address,uint256) (#1275-1349):
External calls:
- swapAndLiquify(contractTokenBalance) (#1312)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liqWalletAddress,block.timestamp) (#1409-1416)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1395-1401)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#1312)
- recipient.transfer(amount) (#1492)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liqWalletAddress,block.timestamp) (#1409-1416)
State variables written after the call(s):
- _liquidityFee = _buyLiquidityFee (#1337)
- _liquidityFee = _sellLiquidityFee (#1344)
- _tokenTransfer(from,to,amount,takeFee) (#1348)
- _liquidityFee = 0 (#1260)
- _marketingFee = _buyMarketingFee (#1336)
- _marketingFee = _sellMarketingFee (#1343)
- _tokenTransfer(from,to,amount,takeFee) (#1348)
- _marketingFee = 0 (#1259)
- _tokenTransfer(from,to,amount,takeFee) (#1348)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#1226)
- _rOwned[address(this)] = _rOwned[address(this)].add(rdev) (#1234)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1438)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1448)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1075)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1460)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1439)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1461)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1450)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1077)
- _tokenTransfer(from,to,amount,takeFee) (#1348)
- _rTotal = _rTotal.sub(rFee) (#1179)
- _tokenTransfer(from,to,amount,takeFee) (#1348)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#1228)
- _tOwned[address(this)] = _tOwned[address(this)].add(tdev) (#1236)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1074)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1459)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1449)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1076)
Apply the check-effects-interactions pattern.
Additional information: link
YOLOCoin.withdrawalToken(address,uint256,address) (#1479-1483) ignores return value by token.transfer(to,_amount) (#1481)
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.
YOLOCoin.transfer(address,uint256) (#970-975) uses tx.origin for authorization: require(bool,string)(! _isBlackListedBot[tx.origin],You have no power here!) (#972)
YOLOCoin.transferFrom(address,address,uint256) (#986-993) uses tx.origin for authorization: require(bool,string)(! _isBlackListedBot[tx.origin],You have no power here!) (#989)
Do not use tx.origin for authorization.
Additional information: link
YOLOCoin.addLiquidity(uint256,uint256) (#1404-1418) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liqWalletAddress,block.timestamp) (#1409-1416)
Ensure that all the return values of the function calls are used.
Additional information: link
YOLOCoin.allowance(address,address).owner (#977) shadows:
- Ownable.owner() (#138-140) (function)
YOLOCoin._approve(address,address,uint256).owner (#1267) shadows:
- Ownable.owner() (#138-140) (function)
Rename the local variables that shadow another component.
Additional information: link
YOLOCoin.setBuyTaxFeePercent(uint256) (#1092-1095) should emit an event for:
- _buyTaxFee = taxFee (#1093)
YOLOCoin.setBuyMarketingFeePercent(uint256) (#1097-1100) should emit an event for:
- _buyMarketingFee = marketingFee (#1098)
YOLOCoin.setBuyLiquidityFeePercent(uint256) (#1102-1105) should emit an event for:
- _buyLiquidityFee = liquidityFee (#1103)
YOLOCoin.setSellTaxFeePercent(uint256) (#1107-1110) should emit an event for:
- _sellTaxFee = taxFee (#1108)
YOLOCoin.setSellMarketingFeePercent(uint256) (#1112-1115) should emit an event for:
- _sellMarketingFee = marketingFee (#1113)
YOLOCoin.setSellLiquidityFeePercent(uint256) (#1117-1120) should emit an event for:
- _sellLiquidityFee = liquidityFee (#1118)
YOLOCoin.setMaxTxPercent(uint256) (#1122-1126) should emit an event for:
- _maxTxAmount = _tTotal.mul(maxTxPercent).div(10 ** 2) (#1123-1125)
Emit an event for critical parameter changes.
Additional information: link
YOLOCoin.withdrawalBNB(uint256,address).to (#1485) lacks a zero-check on :
- address(to).transfer(_amount) (#1487)
Check that the address is not zero.
Additional information: link
Reentrancy in YOLOCoin._setRouter(address) (#1161-1169):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1165)
State variables written after the call(s):
- setIsPair(uniswapV2Pair,true) (#1167)
- _isPair[_address] = value (#1469)
- uniswapV2Router = _uniswapV2Router (#1166)
Reentrancy in YOLOCoin._transfer(address,address,uint256) (#1275-1349):
External calls:
- swapAndLiquify(contractTokenBalance) (#1312)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liqWalletAddress,block.timestamp) (#1409-1416)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1395-1401)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#1312)
- recipient.transfer(amount) (#1492)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liqWalletAddress,block.timestamp) (#1409-1416)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#1348)
- _tFeeTotal = _tFeeTotal.add(tFee) (#1180)
- _taxFee = _buyTaxFee (#1335)
- _taxFee = _sellTaxFee (#1342)
- _tokenTransfer(from,to,amount,takeFee) (#1348)
- _taxFee = 0 (#1258)
Reentrancy in YOLOCoin.constructor() (#932-947):
External calls:
- _setRouter(0x10ED43C718714eb63d5aA57B78B54704E256024E) (#936)
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1165)
State variables written after the call(s):
- _isExcludedFromFee[owner()] = true (#941)
- _isExcludedFromFee[_marketingWallet] = true (#942)
- _isExcludedFromFee[_liqWalletAddress] = true (#943)
- _isExcludedFromFee[address(this)] = true (#944)
- _liqWalletAddress = 0xcE95cE99F14f15832Cf8A6E230Ed029EA58A102D (#938)
- _marketingWallet = address(0xAd5DDB230254065A2559d7e44339319391A7E0b8) (#937)
Reentrancy in YOLOCoin.swapAndLiquify(uint256) (#1351-1384):
External calls:
- swapTokensForEth(half) (#1368)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1395-1401)
- addLiquidity(otherHalf,newBalance) (#1374)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liqWalletAddress,block.timestamp) (#1409-1416)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1374)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liqWalletAddress,block.timestamp) (#1409-1416)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#1374)
- _allowances[owner][spender] = amount (#1271)
Reentrancy in YOLOCoin.swapAndLiquify(uint256) (#1351-1384):
External calls:
- swapTokensForEth(half) (#1368)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1395-1401)
- addLiquidity(otherHalf,newBalance) (#1374)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liqWalletAddress,block.timestamp) (#1409-1416)
- swapTokensForEth(tokensForMarketing) (#1379)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1395-1401)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1374)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liqWalletAddress,block.timestamp) (#1409-1416)
State variables written after the call(s):
- swapTokensForEth(tokensForMarketing) (#1379)
- _allowances[owner][spender] = amount (#1271)
Reentrancy in YOLOCoin.transferFrom(address,address,uint256) (#986-993):
External calls:
- _transfer(sender,recipient,amount) (#990)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liqWalletAddress,block.timestamp) (#1409-1416)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1395-1401)
External calls sending eth:
- _transfer(sender,recipient,amount) (#990)
- recipient.transfer(amount) (#1492)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liqWalletAddress,block.timestamp) (#1409-1416)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#991)
- _allowances[owner][spender] = amount (#1271)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in YOLOCoin._setRouter(address) (#1161-1169):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1165)
Event emitted after the call(s):
- RouterSet(_router) (#1168)
- SetIsPair(_address,value) (#1470)
- setIsPair(uniswapV2Pair,true) (#1167)
Reentrancy in YOLOCoin._transfer(address,address,uint256) (#1275-1349):
External calls:
- swapAndLiquify(contractTokenBalance) (#1312)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liqWalletAddress,block.timestamp) (#1409-1416)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1395-1401)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#1312)
- recipient.transfer(amount) (#1492)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liqWalletAddress,block.timestamp) (#1409-1416)
Event emitted after the call(s):
- Transfer(sender,recipient,tTransferAmount) (#1443)
- _tokenTransfer(from,to,amount,takeFee) (#1348)
- Transfer(sender,recipient,tTransferAmount) (#1454)
- _tokenTransfer(from,to,amount,takeFee) (#1348)
- Transfer(sender,recipient,tTransferAmount) (#1465)
- _tokenTransfer(from,to,amount,takeFee) (#1348)
- Transfer(sender,recipient,tTransferAmount) (#1081)
- _tokenTransfer(from,to,amount,takeFee) (#1348)
Reentrancy in YOLOCoin.addLiquidity(uint256,uint256) (#1404-1418):
External calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liqWalletAddress,block.timestamp) (#1409-1416)
Event emitted after the call(s):
- Transfer(address(this),uniswapV2Pair,tokenAmount) (#1417)
Reentrancy in YOLOCoin.constructor() (#932-947):
External calls:
- _setRouter(0x10ED43C718714eb63d5aA57B78B54704E256024E) (#936)
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1165)
Event emitted after the call(s):
- Transfer(address(0),owner(),_tTotal) (#946)
Reentrancy in YOLOCoin.swapAndLiquify(uint256) (#1351-1384):
External calls:
- swapTokensForEth(half) (#1368)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1395-1401)
- addLiquidity(otherHalf,newBalance) (#1374)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liqWalletAddress,block.timestamp) (#1409-1416)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1374)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liqWalletAddress,block.timestamp) (#1409-1416)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1272)
- addLiquidity(otherHalf,newBalance) (#1374)
- SwapAndLiquify(half,newBalance,otherHalf) (#1376)
- Transfer(address(this),uniswapV2Pair,tokenAmount) (#1417)
- addLiquidity(otherHalf,newBalance) (#1374)
Reentrancy in YOLOCoin.swapAndLiquify(uint256) (#1351-1384):
External calls:
- swapTokensForEth(half) (#1368)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1395-1401)
- addLiquidity(otherHalf,newBalance) (#1374)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liqWalletAddress,block.timestamp) (#1409-1416)
- swapTokensForEth(tokensForMarketing) (#1379)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1395-1401)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1374)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liqWalletAddress,block.timestamp) (#1409-1416)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1272)
- swapTokensForEth(tokensForMarketing) (#1379)
Reentrancy in YOLOCoin.transferFrom(address,address,uint256) (#986-993):
External calls:
- _transfer(sender,recipient,amount) (#990)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liqWalletAddress,block.timestamp) (#1409-1416)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1395-1401)
External calls sending eth:
- _transfer(sender,recipient,amount) (#990)
- recipient.transfer(amount) (#1492)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liqWalletAddress,block.timestamp) (#1409-1416)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1272)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#991)
Reentrancy in YOLOCoin.withdrawalToken(address,uint256,address) (#1479-1483):
External calls:
- token.transfer(to,_amount) (#1481)
Event emitted after the call(s):
- WithdrawalToken(_tokenAddr,_amount,to) (#1482)
Apply the check-effects-interactions pattern.
Additional information: link
Address.isContract(address) (#198-208) uses assembly
- INLINE ASM (#204-206)
Address.verifyCallResult(bool,bytes,string) (#367-387) uses assembly
- INLINE ASM (#379-382)
Do not use evm assembly.
Additional information: link
YOLOCoin.removeBotFromBlackList(address) (#1003-1013) has costly operations inside a loop:
- _blackListedBots.pop() (#1009)
YOLOCoin.includeInReward(address) (#1059-1070) has costly operations inside a loop:
- _excluded.pop() (#1066)
Use a local variable to hold the loop computation result.
Additional information: link
Address.functionCall(address,bytes) (#251-253) is never used and should be removed
Address.functionCall(address,bytes,string) (#261-267) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#280-286) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#294-305) is never used and should be removed
Address.functionDelegateCall(address,bytes) (#340-342) is never used and should be removed
Address.functionDelegateCall(address,bytes,string) (#350-359) is never used and should be removed
Address.functionStaticCall(address,bytes) (#313-315) is never used and should be removed
Address.functionStaticCall(address,bytes,string) (#323-332) is never used and should be removed
Address.sendValue(address,uint256) (#226-231) is never used and should be removed
Address.verifyCallResult(bool,bytes,string) (#367-387) is never used and should be removed
Context._msgData() (#106-108) is never used and should be removed
SafeMath.div(uint256,uint256,string) (#573-582) is never used and should be removed
SafeMath.mod(uint256,uint256) (#533-535) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#599-608) is never used and should be removed
SafeMath.tryAdd(uint256,uint256) (#404-410) is never used and should be removed
SafeMath.tryDiv(uint256,uint256) (#446-451) is never used and should be removed
SafeMath.tryMod(uint256,uint256) (#458-463) is never used and should be removed
SafeMath.tryMul(uint256,uint256) (#429-439) is never used and should be removed
SafeMath.trySub(uint256,uint256) (#417-422) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version0.8.10 (#11) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
solc-0.8.10 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) (#226-231):
- (success) = recipient.call{value: amount}() (#229)
Low level call in Address.functionCallWithValue(address,bytes,uint256,string) (#294-305):
- (success,returndata) = target.call{value: value}(data) (#303)
Low level call in Address.functionStaticCall(address,bytes,string) (#323-332):
- (success,returndata) = target.staticcall(data) (#330)
Low level call in Address.functionDelegateCall(address,bytes,string) (#350-359):
- (success,returndata) = target.delegatecall(data) (#357)
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() (#642) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#643) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#660) is not in mixedCase
Function IUniswapV2Router01.WETH() (#680) is not in mixedCase
Event YOLOCoinsetMarketingWalletAddress(address) (#921) is not in CapWords
Parameter YOLOCoin.setSwapAndLiquifyEnabled(bool)._enabled (#1128) is not in mixedCase
Parameter YOLOCoin.setSwapEnabled(bool)._enabled (#1133) is not in mixedCase
Parameter YOLOCoin.setMarketingWallet(address)._address (#1138) is not in mixedCase
Parameter YOLOCoin.setLiqWalletAddress(address)._address (#1144) is not in mixedCase
Parameter YOLOCoin.setNumTokensSellToAddToLiquidity(uint256)._amount (#1150) is not in mixedCase
Parameter YOLOCoin.setContractFeesEnabled(bool)._bool (#1156) is not in mixedCase
Parameter YOLOCoin.setRouter(address)._router (#1171) is not in mixedCase
Parameter YOLOCoin.calculateTaxFee(uint256)._amount (#1239) is not in mixedCase
Parameter YOLOCoin.calculateMarketingFee(uint256)._amount (#1245) is not in mixedCase
Parameter YOLOCoin.calculateLiquidityFee(uint256)._amount (#1251) is not in mixedCase
Parameter YOLOCoin.setIsPair(address,bool)._address (#1468) is not in mixedCase
Parameter YOLOCoin.setIsBanned(address,bool)._address (#1473) is not in mixedCase
Parameter YOLOCoin.withdrawalToken(address,uint256,address)._tokenAddr (#1479) is not in mixedCase
Parameter YOLOCoin.withdrawalToken(address,uint256,address)._amount (#1479) is not in mixedCase
Parameter YOLOCoin.withdrawalBNB(uint256,address)._amount (#1485) is not in mixedCase
Variable YOLOCoin._isPair (#852) is not in mixedCase
Variable YOLOCoin._isBanned (#855) is not in mixedCase
Constant YOLOCoin._tTotal (#858) is not in UPPER_CASE_WITH_UNDERSCORES
Constant YOLOCoin._name (#862) is not in UPPER_CASE_WITH_UNDERSCORES
Constant YOLOCoin._symbol (#863) is not in UPPER_CASE_WITH_UNDERSCORES
Constant YOLOCoin._decimals (#864) is not in UPPER_CASE_WITH_UNDERSCORES
Variable YOLOCoin._marketingWallet (#867) is not in mixedCase
Variable YOLOCoin._liqWalletAddress (#868) is not in mixedCase
Variable YOLOCoin._buyTaxFee (#871) is not in mixedCase
Variable YOLOCoin._buyMarketingFee (#872) is not in mixedCase
Variable YOLOCoin._buyLiquidityFee (#873) is not in mixedCase
Variable YOLOCoin._sellTaxFee (#876) is not in mixedCase
Variable YOLOCoin._sellMarketingFee (#877) is not in mixedCase
Variable YOLOCoin._sellLiquidityFee (#878) is not in mixedCase
Variable YOLOCoin._contractFeesEnabled (#885) is not in mixedCase
Variable YOLOCoin._maxTxAmount (#894) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Reentrancy in YOLOCoin._transfer(address,address,uint256) (#1275-1349):
External calls:
- swapAndLiquify(contractTokenBalance) (#1312)
- recipient.transfer(amount) (#1492)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#1312)
- recipient.transfer(amount) (#1492)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liqWalletAddress,block.timestamp) (#1409-1416)
State variables written after the call(s):
- _liquidityFee = _buyLiquidityFee (#1337)
- _liquidityFee = _sellLiquidityFee (#1344)
- _tokenTransfer(from,to,amount,takeFee) (#1348)
- _liquidityFee = 0 (#1260)
- _marketingFee = _buyMarketingFee (#1336)
- _marketingFee = _sellMarketingFee (#1343)
- _tokenTransfer(from,to,amount,takeFee) (#1348)
- _marketingFee = 0 (#1259)
- _tokenTransfer(from,to,amount,takeFee) (#1348)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#1226)
- _rOwned[address(this)] = _rOwned[address(this)].add(rdev) (#1234)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1438)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1448)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1075)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1460)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1439)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1461)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1450)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1077)
- _tokenTransfer(from,to,amount,takeFee) (#1348)
- _rTotal = _rTotal.sub(rFee) (#1179)
- _tokenTransfer(from,to,amount,takeFee) (#1348)
- _tFeeTotal = _tFeeTotal.add(tFee) (#1180)
- _tokenTransfer(from,to,amount,takeFee) (#1348)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#1228)
- _tOwned[address(this)] = _tOwned[address(this)].add(tdev) (#1236)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1074)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1459)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1449)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1076)
- _taxFee = _buyTaxFee (#1335)
- _taxFee = _sellTaxFee (#1342)
- _tokenTransfer(from,to,amount,takeFee) (#1348)
- _taxFee = 0 (#1258)
Event emitted after the call(s):
- Transfer(sender,recipient,tTransferAmount) (#1443)
- _tokenTransfer(from,to,amount,takeFee) (#1348)
- Transfer(sender,recipient,tTransferAmount) (#1454)
- _tokenTransfer(from,to,amount,takeFee) (#1348)
- Transfer(sender,recipient,tTransferAmount) (#1465)
- _tokenTransfer(from,to,amount,takeFee) (#1348)
- Transfer(sender,recipient,tTransferAmount) (#1081)
- _tokenTransfer(from,to,amount,takeFee) (#1348)
Reentrancy in YOLOCoin.transferFrom(address,address,uint256) (#986-993):
External calls:
- _transfer(sender,recipient,amount) (#990)
- recipient.transfer(amount) (#1492)
External calls sending eth:
- _transfer(sender,recipient,amount) (#990)
- recipient.transfer(amount) (#1492)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liqWalletAddress,block.timestamp) (#1409-1416)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#991)
- _allowances[owner][spender] = amount (#1271)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1272)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#991)
Reentrancy in YOLOCoin.withdrawalBNB(uint256,address) (#1485-1489):
External calls:
- address(to).transfer(_amount) (#1487)
Event emitted after the call(s):
- WithdrawalBNB(_amount,to) (#1488)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#685) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#686)
Variable YOLOCoin._transferToExcluded(address,address,uint256).rTransferAmount (#1447) is too similar to YOLOCoin._getValues(uint256).tTransferAmount (#1184)
Variable YOLOCoin._getRValues(uint256,uint256,uint256,uint256,uint256).rTransferAmount (#1202) is too similar to YOLOCoin._transferStandard(address,address,uint256).tTransferAmount (#1437)
Variable YOLOCoin._transferStandard(address,address,uint256).rTransferAmount (#1437) is too similar to YOLOCoin._transferStandard(address,address,uint256).tTransferAmount (#1437)
Variable YOLOCoin._getRValues(uint256,uint256,uint256,uint256,uint256).rTransferAmount (#1202) is too similar to YOLOCoin._getValues(uint256).tTransferAmount (#1184)
Variable YOLOCoin._transferStandard(address,address,uint256).rTransferAmount (#1437) is too similar to YOLOCoin._getValues(uint256).tTransferAmount (#1184)
Variable YOLOCoin._getValues(uint256).rTransferAmount (#1185) is too similar to YOLOCoin._getValues(uint256).tTransferAmount (#1184)
Variable YOLOCoin._transferFromExcluded(address,address,uint256).rTransferAmount (#1458) is too similar to YOLOCoin._transferFromExcluded(address,address,uint256).tTransferAmount (#1458)
Variable YOLOCoin._transferFromExcluded(address,address,uint256).rTransferAmount (#1458) is too similar to YOLOCoin._transferToExcluded(address,address,uint256).tTransferAmount (#1447)
Variable YOLOCoin._transferToExcluded(address,address,uint256).rTransferAmount (#1447) is too similar to YOLOCoin._transferToExcluded(address,address,uint256).tTransferAmount (#1447)
Variable YOLOCoin._getRValues(uint256,uint256,uint256,uint256,uint256).rTransferAmount (#1202) is too similar to YOLOCoin._transferFromExcluded(address,address,uint256).tTransferAmount (#1458)
Variable YOLOCoin._transferStandard(address,address,uint256).rTransferAmount (#1437) is too similar to YOLOCoin._transferFromExcluded(address,address,uint256).tTransferAmount (#1458)
Variable YOLOCoin._transferFromExcluded(address,address,uint256).rTransferAmount (#1458) is too similar to YOLOCoin._transferStandard(address,address,uint256).tTransferAmount (#1437)
Variable YOLOCoin._getRValues(uint256,uint256,uint256,uint256,uint256).rTransferAmount (#1202) is too similar to YOLOCoin._transferToExcluded(address,address,uint256).tTransferAmount (#1447)
Variable YOLOCoin._transferStandard(address,address,uint256).rTransferAmount (#1437) is too similar to YOLOCoin._transferToExcluded(address,address,uint256).tTransferAmount (#1447)
Variable YOLOCoin._transferFromExcluded(address,address,uint256).rTransferAmount (#1458) is too similar to YOLOCoin._getValues(uint256).tTransferAmount (#1184)
Variable YOLOCoin._transferBothExcluded(address,address,uint256).rTransferAmount (#1073) is too similar to YOLOCoin._transferFromExcluded(address,address,uint256).tTransferAmount (#1458)
Variable YOLOCoin._transferStandard(address,address,uint256).rTransferAmount (#1437) is too similar to YOLOCoin._getTValues(uint256).tTransferAmount (#1193)
Variable YOLOCoin.reflectionFromToken(uint256,bool).rTransferAmount (#1039) is too similar to YOLOCoin._transferStandard(address,address,uint256).tTransferAmount (#1437)
Variable YOLOCoin.reflectionFromToken(uint256,bool).rTransferAmount (#1039) is too similar to YOLOCoin._transferBothExcluded(address,address,uint256).tTransferAmount (#1073)
Variable YOLOCoin._transferFromExcluded(address,address,uint256).rTransferAmount (#1458) is too similar to YOLOCoin._transferBothExcluded(address,address,uint256).tTransferAmount (#1073)
Variable YOLOCoin._getRValues(uint256,uint256,uint256,uint256,uint256).rTransferAmount (#1202) is too similar to YOLOCoin._transferBothExcluded(address,address,uint256).tTransferAmount (#1073)
Variable YOLOCoin._transferToExcluded(address,address,uint256).rTransferAmount (#1447) is too similar to YOLOCoin._transferStandard(address,address,uint256).tTransferAmount (#1437)
Variable YOLOCoin._getValues(uint256).rTransferAmount (#1185) is too similar to YOLOCoin._transferStandard(address,address,uint256).tTransferAmount (#1437)
Variable YOLOCoin._transferBothExcluded(address,address,uint256).rTransferAmount (#1073) is too similar to YOLOCoin._transferStandard(address,address,uint256).tTransferAmount (#1437)
Variable YOLOCoin._getValues(uint256).rTransferAmount (#1185) is too similar to YOLOCoin._transferBothExcluded(address,address,uint256).tTransferAmount (#1073)
Variable YOLOCoin._transferToExcluded(address,address,uint256).rTransferAmount (#1447) is too similar to YOLOCoin._transferBothExcluded(address,address,uint256).tTransferAmount (#1073)
Variable YOLOCoin._transferBothExcluded(address,address,uint256).rTransferAmount (#1073) is too similar to YOLOCoin._transferBothExcluded(address,address,uint256).tTransferAmount (#1073)
Variable YOLOCoin.reflectionFromToken(uint256,bool).rTransferAmount (#1039) is too similar to YOLOCoin._transferToExcluded(address,address,uint256).tTransferAmount (#1447)
Variable YOLOCoin._transferStandard(address,address,uint256).rTransferAmount (#1437) is too similar to YOLOCoin._transferBothExcluded(address,address,uint256).tTransferAmount (#1073)
Variable YOLOCoin.reflectionFromToken(uint256,bool).rTransferAmount (#1039) is too similar to YOLOCoin._getTValues(uint256).tTransferAmount (#1193)
Variable YOLOCoin._transferFromExcluded(address,address,uint256).rTransferAmount (#1458) is too similar to YOLOCoin._getTValues(uint256).tTransferAmount (#1193)
Variable YOLOCoin._getRValues(uint256,uint256,uint256,uint256,uint256).rTransferAmount (#1202) is too similar to YOLOCoin._getTValues(uint256).tTransferAmount (#1193)
Variable YOLOCoin.reflectionFromToken(uint256,bool).rTransferAmount (#1039) is too similar to YOLOCoin._transferFromExcluded(address,address,uint256).tTransferAmount (#1458)
Variable YOLOCoin._getValues(uint256).rTransferAmount (#1185) is too similar to YOLOCoin._transferToExcluded(address,address,uint256).tTransferAmount (#1447)
Variable YOLOCoin._transferToExcluded(address,address,uint256).rTransferAmount (#1447) is too similar to YOLOCoin._getTValues(uint256).tTransferAmount (#1193)
Variable YOLOCoin.reflectionFromToken(uint256,bool).rTransferAmount (#1039) is too similar to YOLOCoin._getValues(uint256).tTransferAmount (#1184)
Variable YOLOCoin._transferBothExcluded(address,address,uint256).rTransferAmount (#1073) is too similar to YOLOCoin._transferToExcluded(address,address,uint256).tTransferAmount (#1447)
Variable YOLOCoin._getValues(uint256).rTransferAmount (#1185) is too similar to YOLOCoin._getTValues(uint256).tTransferAmount (#1193)
Variable YOLOCoin._transferToExcluded(address,address,uint256).rTransferAmount (#1447) is too similar to YOLOCoin._transferFromExcluded(address,address,uint256).tTransferAmount (#1458)
Variable YOLOCoin._transferBothExcluded(address,address,uint256).rTransferAmount (#1073) is too similar to YOLOCoin._getTValues(uint256).tTransferAmount (#1193)
Variable YOLOCoin._transferBothExcluded(address,address,uint256).rTransferAmount (#1073) is too similar to YOLOCoin._getValues(uint256).tTransferAmount (#1184)
Variable YOLOCoin._getValues(uint256).rTransferAmount (#1185) is too similar to YOLOCoin._transferFromExcluded(address,address,uint256).tTransferAmount (#1458)
Prevent variables from having similar names.
Additional information: link
YOLOCoin.slitherConstructorVariables() (#839-1495) uses literals with too many digits:
- numTokensSellToAddToLiquidity = 100000000 * 10 ** 18 (#895)
YOLOCoin.slitherConstructorConstantVariables() (#839-1495) uses literals with too many digits:
- _tTotal = 100000000000 * 10 ** 18 (#858)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#157-159)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#165-168)
isBot(address) should be declared external:
- YOLOCoin.isBot(address) (#901-903)
excludeFromReward(address) should be declared external:
- YOLOCoin.excludeFromReward(address) (#1050-1057)
Use the external attribute for functions never called from the contract.
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 Telegram and Twitter accounts