CobyinuV2.addLiquidity(uint256,uint256) (#760-773) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in CobyinuV2._transfer(address,address,uint256) (#661-700):
External calls:
- swapAndLiquify(contractTokenBalance) (#684)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#742-748)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#684)
- recipient.transfer(amount) (#616)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#687)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#695)
- finalAmount = takeFee(sender,recipient,amount) (#689-690)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#787)
Apply the check-effects-interactions pattern.
Additional information: link
CobyinuV2.rescueAnyBEP20Tokens(address,address,uint256) (#552-554) ignores return value by IERC20(_tokenAddr).transfer(_to,_amount) (#553)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
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.
CobyinuV2.addToBlackList(address[]).i (#755) 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
CobyinuV2.addLiquidity(uint256,uint256) (#760-773) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
Ensure that all the return values of the function calls are used.
Additional information: link
CobyinuV2.allowance(address,address).owner (#498) shadows:
- Ownable.owner() (#153-155) (function)
CobyinuV2._approve(address,address,uint256).owner (#517) shadows:
- Ownable.owner() (#153-155) (function)
Rename the local variables that shadow another component.
Additional information: link
CobyinuV2.setBuyTaxes(uint256,uint256,uint256) (#537-543) should emit an event for:
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyBuyBackFee) (#542)
CobyinuV2.setSellTaxes(uint256,uint256,uint256) (#557-563) should emit an event for:
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellBuyBackFee) (#562)
CobyinuV2.setDistributionSettings(uint256,uint256,uint256) (#565-571) should emit an event for:
- _liquidityShare = newLiquidityShare (#566)
- _BuyBackShare = newBuyBackShare (#568)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_BuyBackShare) (#570)
CobyinuV2.setMaxTxAmount(uint256) (#573-576) should emit an event for:
- _maxTxAmount = maxTxAmount (#575)
CobyinuV2.setWalletLimit(uint256) (#586-588) should emit an event for:
- _walletMax = newLimit (#587)
CobyinuV2.setNumTokensBeforeSwap(uint256) (#590-592) should emit an event for:
- minimumTokensBeforeSwap = newLimit (#591)
Emit an event for critical parameter changes.
Additional information: link
CobyinuV2.setMarketingWalletAddress(address).newAddress (#594) lacks a zero-check on :
- marketingWalletAddress = address(newAddress) (#595)
CobyinuV2.setBuyBackWalletAddress(address).newAddress (#598) lacks a zero-check on :
- BuyBackWalletAddress = address(newAddress) (#599)
Check that the address is not zero.
Additional information: link
Reentrancy in CobyinuV2.changeRouterVersion(address) (#619-636):
External calls:
- newPairAddress = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#627-628)
State variables written after the call(s):
- isMarketPair[address(uniswapPair)] = true (#635)
- isWalletLimitExempt[address(uniswapPair)] = true (#634)
- uniswapPair = newPairAddress (#631)
- uniswapV2Router = _uniswapV2Router (#632)
Reentrancy in CobyinuV2.constructor() (#448-476):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#452-453)
State variables written after the call(s):
- _allowances[address(this)][address(uniswapV2Router)] = _totalSupply (#456)
- _balances[_msgSender()] = _totalSupply (#474)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_BuyBackShare) (#463)
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyBuyBackFee) (#461)
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellBuyBackFee) (#462)
- isExcludedFromFee[owner()] = true (#458)
- isExcludedFromFee[address(this)] = true (#459)
- isMarketPair[address(uniswapPair)] = true (#472)
- isTxLimitExempt[owner()] = true (#469)
- isTxLimitExempt[address(this)] = true (#470)
- isWalletLimitExempt[owner()] = true (#465)
- isWalletLimitExempt[address(uniswapPair)] = true (#466)
- isWalletLimitExempt[address(this)] = true (#467)
- uniswapV2Router = _uniswapV2Router (#455)
Reentrancy in CobyinuV2.swapAndLiquify(uint256) (#709-731):
External calls:
- swapTokensForEth(tokensForSwap) (#714)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#742-748)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#730)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#724)
- recipient.transfer(amount) (#616)
- transferToAddressETH(BuyBackWalletAddress,amountBNBBuyBack) (#727)
- recipient.transfer(amount) (#616)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#730)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#730)
- _allowances[owner][spender] = amount (#521)
Reentrancy in CobyinuV2.transferFrom(address,address,uint256) (#649-653):
External calls:
- _transfer(sender,recipient,amount) (#650)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#742-748)
External calls sending eth:
- _transfer(sender,recipient,amount) (#650)
- recipient.transfer(amount) (#616)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#651)
- _allowances[owner][spender] = amount (#521)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in CobyinuV2._transfer(address,address,uint256) (#661-700):
External calls:
- swapAndLiquify(contractTokenBalance) (#684)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#742-748)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#684)
- recipient.transfer(amount) (#616)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#788)
- finalAmount = takeFee(sender,recipient,amount) (#689-690)
- Transfer(sender,recipient,finalAmount) (#697)
Reentrancy in CobyinuV2.constructor() (#448-476):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#452-453)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_totalSupply) (#475)
Reentrancy in CobyinuV2.swapAndLiquify(uint256) (#709-731):
External calls:
- swapTokensForEth(tokensForSwap) (#714)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#742-748)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#730)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#724)
- recipient.transfer(amount) (#616)
- transferToAddressETH(BuyBackWalletAddress,amountBNBBuyBack) (#727)
- recipient.transfer(amount) (#616)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#730)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#522)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#730)
Reentrancy in CobyinuV2.swapTokensForEth(uint256) (#733-751):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#742-748)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (#750)
Reentrancy in CobyinuV2.transferFrom(address,address,uint256) (#649-653):
External calls:
- _transfer(sender,recipient,amount) (#650)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#742-748)
External calls sending eth:
- _transfer(sender,recipient,amount) (#650)
- recipient.transfer(amount) (#616)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#522)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#651)
Apply the check-effects-interactions pattern.
Additional information: link
Address.isContract(address) (#85-94) uses assembly
- INLINE ASM (#92)
Address._functionCallWithValue(address,bytes,uint256,string) (#121-138) uses assembly
- INLINE ASM (#130-133)
Do not use evm assembly.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#121-138) is never used and should be removed
Address.functionCall(address,bytes) (#104-106) is never used and should be removed
Address.functionCall(address,bytes,string) (#108-110) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#112-114) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#116-119) is never used and should be removed
Address.isContract(address) (#85-94) is never used and should be removed
Address.sendValue(address,uint256) (#96-102) is never used and should be removed
Context._msgData() (#12-15) is never used and should be removed
SafeMath.mod(uint256,uint256) (#73-75) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#77-80) is never used and should be removed
Remove unused functions.
Additional information: link
Low level call in Address.sendValue(address,uint256) (#96-102):
- (success) = recipient.call{value: amount}() (#100)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#121-138):
- (success,returndata) = target.call{value: weiValue}(data) (#124)
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() (#205) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#206) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#222) is not in mixedCase
Function IUniswapV2Router01.WETH() (#241) is not in mixedCase
Parameter CobyinuV2.rescueAnyBEP20Tokens(address,address,uint256)._tokenAddr (#552) is not in mixedCase
Parameter CobyinuV2.rescueAnyBEP20Tokens(address,address,uint256)._to (#552) is not in mixedCase
Parameter CobyinuV2.rescueAnyBEP20Tokens(address,address,uint256)._amount (#552) is not in mixedCase
Parameter CobyinuV2.setSwapAndLiquifyEnabled(bool)._enabled (#602) is not in mixedCase
Variable CobyinuV2.BuyBackWalletAddress (#384) is not in mixedCase
Variable CobyinuV2._balances (#387) is not in mixedCase
Variable CobyinuV2._buyLiquidityFee (#395) is not in mixedCase
Variable CobyinuV2._buyMarketingFee (#396) is not in mixedCase
Variable CobyinuV2._buyBuyBackFee (#397) is not in mixedCase
Variable CobyinuV2._sellLiquidityFee (#398) is not in mixedCase
Variable CobyinuV2._sellMarketingFee (#399) is not in mixedCase
Variable CobyinuV2._sellBuyBackFee (#400) is not in mixedCase
Variable CobyinuV2._liquidityShare (#402) is not in mixedCase
Variable CobyinuV2._marketingShare (#403) is not in mixedCase
Variable CobyinuV2._BuyBackShare (#404) is not in mixedCase
Variable CobyinuV2._totalTaxIfBuying (#406) is not in mixedCase
Variable CobyinuV2._totalTaxIfSelling (#407) is not in mixedCase
Variable CobyinuV2._totalDistributionShares (#408) is not in mixedCase
Variable CobyinuV2._maxTxAmount (#411) is not in mixedCase
Variable CobyinuV2._walletMax (#412) is not in mixedCase
Variable CobyinuV2._isBlacklisted (#647) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#13)" inContext (#6-16)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in CobyinuV2._transfer(address,address,uint256) (#661-700):
External calls:
- swapAndLiquify(contractTokenBalance) (#684)
- recipient.transfer(amount) (#616)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#684)
- recipient.transfer(amount) (#616)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#687)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#695)
- finalAmount = takeFee(sender,recipient,amount) (#689-690)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#787)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#788)
- finalAmount = takeFee(sender,recipient,amount) (#689-690)
- Transfer(sender,recipient,finalAmount) (#697)
Reentrancy in CobyinuV2.swapAndLiquify(uint256) (#709-731):
External calls:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#724)
- recipient.transfer(amount) (#616)
- transferToAddressETH(BuyBackWalletAddress,amountBNBBuyBack) (#727)
- recipient.transfer(amount) (#616)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#724)
- recipient.transfer(amount) (#616)
- transferToAddressETH(BuyBackWalletAddress,amountBNBBuyBack) (#727)
- recipient.transfer(amount) (#616)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#730)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#730)
- _allowances[owner][spender] = amount (#521)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#522)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#730)
Reentrancy in CobyinuV2.transferFrom(address,address,uint256) (#649-653):
External calls:
- _transfer(sender,recipient,amount) (#650)
- recipient.transfer(amount) (#616)
External calls sending eth:
- _transfer(sender,recipient,amount) (#650)
- recipient.transfer(amount) (#616)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#651)
- _allowances[owner][spender] = amount (#521)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#522)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#651)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#246) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#247)
Prevent variables from having similar names.
Additional information: link
CobyinuV2.slitherConstructorVariables() (#374-795) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#385)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Ownable._previousOwner (#143) is never used in CobyinuV2 (#374-795)
Remove unused state variables.
Additional information: link
CobyinuV2._decimals (#381) should be constant
CobyinuV2._name (#379) should be constant
CobyinuV2._symbol (#380) should be constant
CobyinuV2._totalSupply (#410) should be constant
Ownable._previousOwner (#143) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
waiveOwnership() should be declared external:
- Ownable.waiveOwnership() (#162-165)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#167-171)
name() should be declared external:
- CobyinuV2.name() (#478-480)
symbol() should be declared external:
- CobyinuV2.symbol() (#482-484)
decimals() should be declared external:
- CobyinuV2.decimals() (#486-488)
totalSupply() should be declared external:
- CobyinuV2.totalSupply() (#490-492)
allowance(address,address) should be declared external:
- CobyinuV2.allowance(address,address) (#498-500)
increaseAllowance(address,uint256) should be declared external:
- CobyinuV2.increaseAllowance(address,uint256) (#502-505)
decreaseAllowance(address,uint256) should be declared external:
- CobyinuV2.decreaseAllowance(address,uint256) (#507-510)
approve(address,uint256) should be declared external:
- CobyinuV2.approve(address,uint256) (#512-515)
addMarketPair(address) should be declared external:
- CobyinuV2.addMarketPair(address) (#525-527)
setIsExcludedFromFee(address,bool) should be declared external:
- CobyinuV2.setIsExcludedFromFee(address,bool) (#533-535)
clearStuckBNB() should be declared external:
- CobyinuV2.clearStuckBNB() (#546-548)
rescueAnyBEP20Tokens(address,address,uint256) should be declared external:
- CobyinuV2.rescueAnyBEP20Tokens(address,address,uint256) (#552-554)
setSwapAndLiquifyEnabled(bool) should be declared external:
- CobyinuV2.setSwapAndLiquifyEnabled(bool) (#602-605)
setSwapAndLiquifyByLimitOnly(bool) should be declared external:
- CobyinuV2.setSwapAndLiquifyByLimitOnly(bool) (#607-609)
getCirculatingSupply() should be declared external:
- CobyinuV2.getCirculatingSupply() (#611-613)
changeRouterVersion(address) should be declared external:
- CobyinuV2.changeRouterVersion(address) (#619-636)
transfer(address,uint256) should be declared external:
- CobyinuV2.transfer(address,uint256) (#641-644)
transferFrom(address,address,uint256) should be declared external:
- CobyinuV2.transferFrom(address,address,uint256) (#649-653)
Use the external attribute for functions never called from the contract.
Additional information: link
Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.
Contract has 6% buy tax and 7% sell tax.
Taxes are low but contract ownership is not renounced. Token has a high risk of becoming a honeypot.
Average 30d PancakeSwap volume is low.
Number of Binance Smart Chain (BSC) token holders is low.
Token is deployed only at one blockchain
Token has only one trading pair
Unable to find 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