Crypto Clans is a blockchain-based online strategy game
The game is based on the theme of strategic warfare.
By operating your own village, players can gradually strengthen their forces, and then thousands of players can fight. After the village reaches a certain level, it can also form tribes with other villages to fight between tribes.
In the game, each player can build his own tribe. In order to compete for resources and land, players can build and upgrade training camps, barracks, city walls and other buildings for their villages to strengthen their army and protect their villages. , At the same time, you can invade other tribes, plunder more resources, and make your army stronger.
Reentrancy in CryptoClansToken._transfer(address,address,uint256) (#874-944):
External calls:
- swapAndCharge(tokenBalance,action) (#925)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1001-1008)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,real_out.mul(99).div(100),path,address(this),block.timestamp) (#978-984)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (#960)
External calls sending eth:
- swapAndCharge(tokenBalance,action) (#925)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1001-1008)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (#960)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee,action) (#943)
- _balances[burnAddress] = _balances[burnAddress].add(burnAmount) (#1015)
- _balances[sender] = _balances[sender].sub(amount) (#1055)
- _balances[recipient] = _balances[recipient].add(tTransferAmount) (#1056)
- _balances[gamePoolAddress] = _balances[gamePoolAddress].add(game) (#1020)
- _balances[address(this)] = _balances[address(this)].add(lqAndTe) (#1025)
- _balances[burnAddress] = _balances[burnAddress].add(burnAmount_scope_0) (#1031)
- _balances[gamePoolAddress] = _balances[gamePoolAddress].add(game_scope_1) (#1036)
- _balances[address(this)] = _balances[address(this)].add(lqAndTe_scope_2) (#1041)
- _tokenTransfer(from,to,amount,takeFee,action) (#943)
- _buyBNBFee = _previousBuyBNBFee (#850)
- _buyBNBFee = 0 (#829)
- _tokenTransfer(from,to,amount,takeFee,action) (#943)
- _liquidityBuyFee = _previousLiquidityBuyFee (#851)
- _liquidityBuyFee = 0 (#830)
- _tokenTransfer(from,to,amount,takeFee,action) (#943)
- _liquiditySellFee = _previousLiquiditySellFee (#856)
- _liquiditySellFee = 0 (#840)
- _tokenTransfer(from,to,amount,takeFee,action) (#943)
- _sellBNBFee = _previousSellBNBFee (#855)
- _sellBNBFee = 0 (#839)
- lastSwapTime = block.timestamp (#926)
Reentrancy in CryptoClansToken.transferFrom(address,address,uint256) (#713-723):
External calls:
- _transfer(sender,recipient,amount) (#720)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1001-1008)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,real_out.mul(99).div(100),path,address(this),block.timestamp) (#978-984)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (#960)
External calls sending eth:
- _transfer(sender,recipient,amount) (#720)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1001-1008)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (#960)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,BEP20: transfer amount exceeds allowance)) (#721)
- _allowances[owner][spender] = amount (#870)
Apply the check-effects-interactions pattern.
Additional information: link
CryptoClansToken.swapAndCharge(uint256,uint8) (#946-963) performs a multiplication on the result of a division:
-liquidBalance = tokenBalance.mul(_liquiditySellFee).div(_liquiditySellFee + _sellBNBFee).div(2) (#951)
-bnbForLiquid = newBalance.mul(liquidBalance).div(tokenBalance) (#957)
Consider ordering multiplication before division.
Additional information: link
CryptoClansToken.addLiquidity(uint256,uint256) (#996-1009) ignores return value by pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1001-1008)
Ensure that all the return values of the function calls are used.
Additional information: link
CryptoClansToken.allowance(address,address).owner (#704) shadows:
- Ownable.owner() (#250-252) (function)
CryptoClansToken._approve(address,address,uint256).owner (#866) shadows:
- Ownable.owner() (#250-252) (function)
Rename the local variables that shadow another component.
Additional information: link
CryptoClansToken.constructor(address,address)._bnbPoolAddress (#646) lacks a zero-check on :
- bnbPoolAddress = _bnbPoolAddress (#655)
CryptoClansToken.constructor(address,address)._gamePoolAddress (#646) lacks a zero-check on :
- gamePoolAddress = _gamePoolAddress (#656)
Check that the address is not zero.
Additional information: link
Reentrancy in CryptoClansToken._transfer(address,address,uint256) (#874-944):
External calls:
- swapAndCharge(tokenBalance,action) (#925)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1001-1008)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,real_out.mul(99).div(100),path,address(this),block.timestamp) (#978-984)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (#960)
External calls sending eth:
- swapAndCharge(tokenBalance,action) (#925)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1001-1008)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (#960)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee,action) (#943)
- _buyBurnFee = _previousBuyBurnFee (#852)
- _buyBurnFee = 0 (#831)
- _tokenTransfer(from,to,amount,takeFee,action) (#943)
- _buyGameFee = _previousBuyGameFee (#853)
- _buyGameFee = 0 (#832)
- _tokenTransfer(from,to,amount,takeFee,action) (#943)
- _previousBuyBNBFee = _buyBNBFee (#824)
- _tokenTransfer(from,to,amount,takeFee,action) (#943)
- _previousBuyBurnFee = _buyBurnFee (#826)
- _tokenTransfer(from,to,amount,takeFee,action) (#943)
- _previousBuyGameFee = _buyGameFee (#827)
- _tokenTransfer(from,to,amount,takeFee,action) (#943)
- _previousLiquidityBuyFee = _liquidityBuyFee (#825)
- _tokenTransfer(from,to,amount,takeFee,action) (#943)
- _previousLiquiditySellFee = _liquiditySellFee (#835)
- _tokenTransfer(from,to,amount,takeFee,action) (#943)
- _previousSellBNBFee = _sellBNBFee (#834)
- _tokenTransfer(from,to,amount,takeFee,action) (#943)
- _previousSellBurnFee = _sellBurnFee (#836)
- _tokenTransfer(from,to,amount,takeFee,action) (#943)
- _previousSellGameFee = _sellGameFee (#837)
- _tokenTransfer(from,to,amount,takeFee,action) (#943)
- _sellBurnFee = _previousSellBurnFee (#857)
- _sellBurnFee = 0 (#841)
- _tokenTransfer(from,to,amount,takeFee,action) (#943)
- _sellGameFee = _previousSellGameFee (#858)
- _sellGameFee = 0 (#842)
Reentrancy in CryptoClansToken.constructor(address,address) (#646-673):
External calls:
- pancakeswapV2Pair = IPancakeswapV2Factory(_pancakeswapV2Router.factory()).createPair(address(this),_pancakeswapV2Router.WETH()) (#662-663)
State variables written after the call(s):
- _balances[_msgSender()] = _tTotal (#671)
- _isExcludedFromFee[_msgSender()] = true (#669)
- _isExcludedFromFee[address(this)] = true (#670)
- pancakeswapV2Router = _pancakeswapV2Router (#666)
Reentrancy in CryptoClansToken.swapAndCharge(uint256,uint8) (#946-963):
External calls:
- swapTokensForBnb(tokenBalance) (#954)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,real_out.mul(99).div(100),path,address(this),block.timestamp) (#978-984)
- addLiquidity(liquidBalance,bnbForLiquid) (#958)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1001-1008)
External calls sending eth:
- addLiquidity(liquidBalance,bnbForLiquid) (#958)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1001-1008)
State variables written after the call(s):
- addLiquidity(liquidBalance,bnbForLiquid) (#958)
- _allowances[owner][spender] = amount (#870)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in CryptoClansToken._transfer(address,address,uint256) (#874-944):
External calls:
- swapAndCharge(tokenBalance,action) (#925)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1001-1008)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,real_out.mul(99).div(100),path,address(this),block.timestamp) (#978-984)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (#960)
External calls sending eth:
- swapAndCharge(tokenBalance,action) (#925)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1001-1008)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (#960)
Event emitted after the call(s):
- Transfer(sender,burnAddress,burnAmount) (#1016)
- _tokenTransfer(from,to,amount,takeFee,action) (#943)
- Transfer(sender,recipient,tTransferAmount) (#1057)
- _tokenTransfer(from,to,amount,takeFee,action) (#943)
- Transfer(sender,gamePoolAddress,game) (#1021)
- _tokenTransfer(from,to,amount,takeFee,action) (#943)
- Transfer(sender,address(this),lqAndTe) (#1026)
- _tokenTransfer(from,to,amount,takeFee,action) (#943)
- Transfer(sender,burnAddress,burnAmount_scope_0) (#1032)
- _tokenTransfer(from,to,amount,takeFee,action) (#943)
- Transfer(sender,gamePoolAddress,game_scope_1) (#1037)
- _tokenTransfer(from,to,amount,takeFee,action) (#943)
- Transfer(sender,address(this),lqAndTe_scope_2) (#1042)
- _tokenTransfer(from,to,amount,takeFee,action) (#943)
Reentrancy in CryptoClansToken.constructor(address,address) (#646-673):
External calls:
- pancakeswapV2Pair = IPancakeswapV2Factory(_pancakeswapV2Router.factory()).createPair(address(this),_pancakeswapV2Router.WETH()) (#662-663)
Event emitted after the call(s):
- Transfer(address(0),owner(),_tTotal) (#672)
Reentrancy in CryptoClansToken.swapAndCharge(uint256,uint8) (#946-963):
External calls:
- swapTokensForBnb(tokenBalance) (#954)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,real_out.mul(99).div(100),path,address(this),block.timestamp) (#978-984)
- addLiquidity(liquidBalance,bnbForLiquid) (#958)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1001-1008)
External calls sending eth:
- addLiquidity(liquidBalance,bnbForLiquid) (#958)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1001-1008)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#871)
- addLiquidity(liquidBalance,bnbForLiquid) (#958)
Reentrancy in CryptoClansToken.swapAndCharge(uint256,uint8) (#946-963):
External calls:
- swapTokensForBnb(tokenBalance) (#954)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,real_out.mul(99).div(100),path,address(this),block.timestamp) (#978-984)
- addLiquidity(liquidBalance,bnbForLiquid) (#958)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1001-1008)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (#960)
External calls sending eth:
- addLiquidity(liquidBalance,bnbForLiquid) (#958)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1001-1008)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (#960)
Event emitted after the call(s):
- SwapAndCharged(tokenBalance,liquidBalance,address(this).balance,bnbForLiquid) (#962)
Reentrancy in CryptoClansToken.transferFrom(address,address,uint256) (#713-723):
External calls:
- _transfer(sender,recipient,amount) (#720)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1001-1008)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,real_out.mul(99).div(100),path,address(this),block.timestamp) (#978-984)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (#960)
External calls sending eth:
- _transfer(sender,recipient,amount) (#720)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1001-1008)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (#960)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#871)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,BEP20: transfer amount exceeds allowance)) (#721)
Apply the check-effects-interactions pattern.
Additional information: link
Ownable.unlock() (#281-286) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp > _lockTime,Contract is locked until 0 days) (#283)
CryptoClansToken._transfer(address,address,uint256) (#874-944) uses timestamp for comparisons
Dangerous comparisons:
- overMinTokenBalance && ! inSwapAndLiquify && from != pancakeswapV2Pair && swapAndLiquifyEnabled && block.timestamp >= lastSwapTime + swapCoolDownTime (#918-922)
Avoid relying on block.timestamp.
Additional information: link
Context._msgData() (#229-233) is never used and should be removed
SafeMath.div(uint256,uint256,string) (#185-190) is never used and should be removed
SafeMath.mod(uint256,uint256) (#145-147) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#207-212) is never used and should be removed
SafeMath.tryAdd(uint256,uint256) (#16-22) is never used and should be removed
SafeMath.tryDiv(uint256,uint256) (#58-63) is never used and should be removed
SafeMath.tryMod(uint256,uint256) (#70-75) is never used and should be removed
SafeMath.tryMul(uint256,uint256) (#41-51) is never used and should be removed
SafeMath.trySub(uint256,uint256) (#29-34) is never used and should be removed
Remove unused functions.
Additional information: link
CryptoClansToken._previousBuyBNBFee (#584) is set pre-construction with a non-constant function or state variable:
- _buyBNBFee
CryptoClansToken._previousBuyGameFee (#587) is set pre-construction with a non-constant function or state variable:
- _buyGameFee
CryptoClansToken._previousLiquidityBuyFee (#590) is set pre-construction with a non-constant function or state variable:
- _liquidityBuyFee
CryptoClansToken._previousBuyBurnFee (#593) is set pre-construction with a non-constant function or state variable:
- _buyBurnFee
CryptoClansToken._previousSellBNBFee (#597) is set pre-construction with a non-constant function or state variable:
- _sellBNBFee
CryptoClansToken._previousSellGameFee (#600) is set pre-construction with a non-constant function or state variable:
- _sellGameFee
CryptoClansToken._previousLiquiditySellFee (#603) is set pre-construction with a non-constant function or state variable:
- _liquiditySellFee
CryptoClansToken._previousSellBurnFee (#606) is set pre-construction with a non-constant function or state variable:
- _sellBurnFee
Remove any initialization of state variables via non-constant state variables or function calls. If variables must be set upon contract deployment, locate initialization in the constructor instead.
Additional information: link
Pragma version0.8.0 (#3) allows old versions
solc-0.8.0 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 CryptoClansToken.swapAndCharge(uint256,uint8) (#946-963):
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (#960)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IPancakeswapV2Router01.WETH() (#292) is not in mixedCase
Parameter CryptoClansToken.setSwapAndLiquifyEnabled(bool)._enabled (#800) is not in mixedCase
Constant CryptoClansToken._tTotal (#578) is not in UPPER_CASE_WITH_UNDERSCORES
Constant CryptoClansToken._name (#579) is not in UPPER_CASE_WITH_UNDERSCORES
Constant CryptoClansToken._symbol (#580) is not in UPPER_CASE_WITH_UNDERSCORES
Constant CryptoClansToken._decimals (#581) is not in UPPER_CASE_WITH_UNDERSCORES
Variable CryptoClansToken._buyBNBFee (#583) is not in mixedCase
Variable CryptoClansToken._buyGameFee (#586) is not in mixedCase
Variable CryptoClansToken._liquidityBuyFee (#589) is not in mixedCase
Variable CryptoClansToken._buyBurnFee (#592) is not in mixedCase
Variable CryptoClansToken._sellBNBFee (#596) is not in mixedCase
Variable CryptoClansToken._sellGameFee (#599) is not in mixedCase
Variable CryptoClansToken._liquiditySellFee (#602) is not in mixedCase
Variable CryptoClansToken._sellBurnFee (#605) is not in mixedCase
Constant CryptoClansToken.burnAddress (#610) is not in UPPER_CASE_WITH_UNDERSCORES
Variable CryptoClansToken._maxTxAmount (#616) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#230)" inContext (#224-234)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable IPancakeswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#297) is too similar to IPancakeswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#298)
Prevent variables from having similar names.
Additional information: link
CryptoClansToken.slitherConstructorConstantVariables() (#567-1063) uses literals with too many digits:
- _tTotal = 1000000000 * 10 ** 18 (#578)
CryptoClansToken.slitherConstructorConstantVariables() (#567-1063) uses literals with too many digits:
- burnAddress = 0x000000000000000000000000000000000000dEaD (#610)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#259-262)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#264-268)
geUnlockTime() should be declared external:
- Ownable.geUnlockTime() (#270-272)
lock(uint256) should be declared external:
- Ownable.lock(uint256) (#274-279)
unlock() should be declared external:
- Ownable.unlock() (#281-286)
transfer(address,uint256) should be declared external:
- CryptoClansToken.transfer(address,uint256) (#699-702)
allowance(address,address) should be declared external:
- CryptoClansToken.allowance(address,address) (#704-706)
approve(address,uint256) should be declared external:
- CryptoClansToken.approve(address,uint256) (#708-711)
transferFrom(address,address,uint256) should be declared external:
- CryptoClansToken.transferFrom(address,address,uint256) (#713-723)
increaseAllowance(address,uint256) should be declared external:
- CryptoClansToken.increaseAllowance(address,uint256) (#725-728)
decreaseAllowance(address,uint256) should be declared external:
- CryptoClansToken.decreaseAllowance(address,uint256) (#730-733)
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.
Average 30d PancakeSwap volume 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.
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Token is deployed only at one blockchain
Token has only one trading pair
Contract has 6% buy tax and 10% sell tax.
Taxes are low and contract ownership is renounced.
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Unable to verify token contract address on the website
Unable to find audit link on the website
Unable to find whitepaper link on the website
Unable to find token on CoinHunt
Additional information: link
Token is marked as scam (rug pull, honeypot, phishing, etc.)
Additional information: link
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of price dump / death
Token has relatively low CoinGecko rank
Token has relatively low CoinMarketCap rank
Twitter account link seems to be invalid
Unable to find Youtube account