Reentrancy in CitrusChain._transfer(address,address,uint256) (#580-618):
External calls:
- swapAndLiquify(contractTokenBalance) (#602)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#676-683)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#660-666)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#602)
- recipient.transfer(amount) (#562)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#676-683)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#605)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#613)
- finalAmount = takeFee(sender,recipient,amount) (#607-608)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#698)
Apply the check-effects-interactions pattern.
Additional information: link
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Contract ownership is not renounced (belongs to a wallet)
CitrusChain.addLiquidity(uint256,uint256) (#671-684) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#676-683)
Ensure that all the return values of the function calls are used.
Additional information: link
CitrusChain.allowance(address,address).owner (#489) shadows:
- Ownable.owner() (#147-149) (function)
CitrusChain._approve(address,address,uint256).owner (#512) shadows:
- Ownable.owner() (#147-149) (function)
Rename the local variables that shadow another component.
Additional information: link
CitrusChain.setBuyTaxes(uint256,uint256,uint256) (#524-530) should emit an event for:
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyTeamFee) (#529)
CitrusChain.setSellTaxes(uint256,uint256,uint256) (#532-538) should emit an event for:
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellTeamFee) (#537)
CitrusChain.setMaxTxAmount(uint256) (#540-542) should emit an event for:
- _maxTxAmount = maxTxAmount (#541)
CitrusChain.setWalletLimit(uint256) (#548-550) should emit an event for:
- _walletMax = newLimit (#549)
Emit an event for critical parameter changes.
Additional information: link
Reentrancy in CitrusChain.constructor() (#433-467):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#437-438)
State variables written after the call(s):
- _allowances[address(this)][address(uniswapV2Router)] = _totalSupply (#441)
- _balances[_msgSender()] = _totalSupply (#465)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_teamShare) (#450)
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyTeamFee) (#448)
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellTeamFee) (#449)
- isExcludedFromFee[owner()] = true (#443)
- isExcludedFromFee[marketingWalletAddress] = true (#444)
- isExcludedFromFee[teamWalletAddress] = true (#445)
- isExcludedFromFee[address(this)] = true (#446)
- isMarketPair[address(uniswapPair)] = true (#463)
- isTxLimitExempt[owner()] = true (#458)
- isTxLimitExempt[address(this)] = true (#459)
- isTxLimitExempt[marketingWalletAddress] = true (#460)
- isTxLimitExempt[teamWalletAddress] = true (#461)
- isWalletLimitExempt[owner()] = true (#452)
- isWalletLimitExempt[address(uniswapPair)] = true (#453)
- isWalletLimitExempt[address(this)] = true (#454)
- isWalletLimitExempt[marketingWalletAddress] = true (#455)
- isWalletLimitExempt[teamWalletAddress] = true (#456)
- uniswapV2Router = _uniswapV2Router (#440)
Reentrancy in CitrusChain.swapAndLiquify(uint256) (#627-649):
External calls:
- swapTokensForEth(tokensForSwap) (#632)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#660-666)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#648)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#676-683)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#642)
- recipient.transfer(amount) (#562)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#645)
- recipient.transfer(amount) (#562)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#648)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#676-683)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#648)
- _allowances[owner][spender] = amount (#516)
Reentrancy in CitrusChain.transferFrom(address,address,uint256) (#574-578):
External calls:
- _transfer(sender,recipient,amount) (#575)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#676-683)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#660-666)
External calls sending eth:
- _transfer(sender,recipient,amount) (#575)
- recipient.transfer(amount) (#562)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#676-683)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#576)
- _allowances[owner][spender] = amount (#516)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in CitrusChain._transfer(address,address,uint256) (#580-618):
External calls:
- swapAndLiquify(contractTokenBalance) (#602)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#676-683)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#660-666)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#602)
- recipient.transfer(amount) (#562)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#676-683)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#699)
- finalAmount = takeFee(sender,recipient,amount) (#607-608)
- Transfer(sender,recipient,finalAmount) (#615)
Reentrancy in CitrusChain.constructor() (#433-467):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#437-438)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_totalSupply) (#466)
Reentrancy in CitrusChain.swapAndLiquify(uint256) (#627-649):
External calls:
- swapTokensForEth(tokensForSwap) (#632)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#660-666)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#648)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#676-683)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#642)
- recipient.transfer(amount) (#562)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#645)
- recipient.transfer(amount) (#562)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#648)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#676-683)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#517)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#648)
Reentrancy in CitrusChain.swapTokensForEth(uint256) (#651-669):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#660-666)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (#668)
Reentrancy in CitrusChain.transferFrom(address,address,uint256) (#574-578):
External calls:
- _transfer(sender,recipient,amount) (#575)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#676-683)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#660-666)
External calls sending eth:
- _transfer(sender,recipient,amount) (#575)
- recipient.transfer(amount) (#562)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#676-683)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#517)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#576)
Apply the check-effects-interactions pattern.
Additional information: link
Address.isContract(address) (#84-93) uses assembly
- INLINE ASM (#91)
Address._functionCallWithValue(address,bytes,uint256,string) (#120-137) uses assembly
- INLINE ASM (#129-132)
Do not use evm assembly.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#120-137) is never used and should be removed
Address.functionCall(address,bytes) (#103-105) is never used and should be removed
Address.functionCall(address,bytes,string) (#107-109) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#111-113) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#115-118) is never used and should be removed
Address.isContract(address) (#84-93) is never used and should be removed
Address.sendValue(address,uint256) (#95-101) is never used and should be removed
Context._msgData() (#11-14) is never used and should be removed
SafeMath.mod(uint256,uint256) (#72-74) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#76-79) is never used and should be removed
Remove unused functions.
Additional information: link
CitrusChain._totalSupply (#397) is set pre-construction with a non-constant function or state variable:
- 100000000 * 10 ** _decimals
CitrusChain._maxTxAmount (#398) is set pre-construction with a non-constant function or state variable:
- 2000000 * 10 ** _decimals
CitrusChain._walletMax (#399) is set pre-construction with a non-constant function or state variable:
- 4000000 * 10 ** _decimals
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
Low level call in Address.sendValue(address,uint256) (#95-101):
- (success) = recipient.call{value: amount}() (#99)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#120-137):
- (success,returndata) = target.call{value: weiValue}(data) (#123)
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() (#191) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#192) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#208) is not in mixedCase
Function IUniswapV2Router01.WETH() (#227) is not in mixedCase
Parameter CitrusChain.setSwapAndLiquifyEnabled(bool)._enabled (#552) is not in mixedCase
Variable CitrusChain._balances (#373) is not in mixedCase
Variable CitrusChain._buyLiquidityFee (#381) is not in mixedCase
Variable CitrusChain._buyMarketingFee (#382) is not in mixedCase
Variable CitrusChain._buyTeamFee (#383) is not in mixedCase
Variable CitrusChain._sellLiquidityFee (#385) is not in mixedCase
Variable CitrusChain._sellMarketingFee (#386) is not in mixedCase
Variable CitrusChain._sellTeamFee (#387) is not in mixedCase
Variable CitrusChain._liquidityShare (#389) is not in mixedCase
Variable CitrusChain._marketingShare (#390) is not in mixedCase
Variable CitrusChain._teamShare (#391) is not in mixedCase
Variable CitrusChain._totalTaxIfBuying (#393) is not in mixedCase
Variable CitrusChain._totalTaxIfSelling (#394) is not in mixedCase
Variable CitrusChain._totalDistributionShares (#395) is not in mixedCase
Variable CitrusChain._maxTxAmount (#398) is not in mixedCase
Variable CitrusChain._walletMax (#399) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#12)" inContext (#5-15)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in CitrusChain._transfer(address,address,uint256) (#580-618):
External calls:
- swapAndLiquify(contractTokenBalance) (#602)
- recipient.transfer(amount) (#562)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#602)
- recipient.transfer(amount) (#562)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#676-683)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#605)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#613)
- finalAmount = takeFee(sender,recipient,amount) (#607-608)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#698)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#699)
- finalAmount = takeFee(sender,recipient,amount) (#607-608)
- Transfer(sender,recipient,finalAmount) (#615)
Reentrancy in CitrusChain.swapAndLiquify(uint256) (#627-649):
External calls:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#642)
- recipient.transfer(amount) (#562)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#645)
- recipient.transfer(amount) (#562)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#642)
- recipient.transfer(amount) (#562)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#645)
- recipient.transfer(amount) (#562)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#648)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#676-683)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#648)
- _allowances[owner][spender] = amount (#516)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#517)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#648)
Reentrancy in CitrusChain.transferFrom(address,address,uint256) (#574-578):
External calls:
- _transfer(sender,recipient,amount) (#575)
- recipient.transfer(amount) (#562)
External calls sending eth:
- _transfer(sender,recipient,amount) (#575)
- recipient.transfer(amount) (#562)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#676-683)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#576)
- _allowances[owner][spender] = amount (#516)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#517)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#576)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#232) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#233)
Prevent variables from having similar names.
Additional information: link
CitrusChain.slitherConstructorVariables() (#360-706) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#371)
CitrusChain.slitherConstructorVariables() (#360-706) uses literals with too many digits:
- _totalSupply = 100000000 * 10 ** _decimals (#397)
CitrusChain.slitherConstructorVariables() (#360-706) uses literals with too many digits:
- _maxTxAmount = 2000000 * 10 ** _decimals (#398)
CitrusChain.slitherConstructorVariables() (#360-706) uses literals with too many digits:
- _walletMax = 4000000 * 10 ** _decimals (#399)
CitrusChain.slitherConstructorVariables() (#360-706) uses literals with too many digits:
- minimumTokensBeforeSwap = 2000000 * 10 ** 9 (#400)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
CitrusChain._decimals (#367) should be constant
CitrusChain._liquidityShare (#389) should be constant
CitrusChain._marketingShare (#390) should be constant
CitrusChain._name (#365) should be constant
CitrusChain._symbol (#366) should be constant
CitrusChain._teamShare (#391) should be constant
CitrusChain.checkWalletLimit (#408) should be constant
CitrusChain.marketingWalletAddress (#369) should be constant
CitrusChain.minimumTokensBeforeSwap (#400) should be constant
CitrusChain.swapAndLiquifyByLimitOnly (#407) should be constant
CitrusChain.teamWalletAddress (#370) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#154-157)
name() should be declared external:
- CitrusChain.name() (#469-471)
symbol() should be declared external:
- CitrusChain.symbol() (#473-475)
decimals() should be declared external:
- CitrusChain.decimals() (#477-479)
totalSupply() should be declared external:
- CitrusChain.totalSupply() (#481-483)
allowance(address,address) should be declared external:
- CitrusChain.allowance(address,address) (#489-491)
increaseAllowance(address,uint256) should be declared external:
- CitrusChain.increaseAllowance(address,uint256) (#493-496)
decreaseAllowance(address,uint256) should be declared external:
- CitrusChain.decreaseAllowance(address,uint256) (#498-501)
minimumTokensBeforeSwapAmount() should be declared external:
- CitrusChain.minimumTokensBeforeSwapAmount() (#503-505)
approve(address,uint256) should be declared external:
- CitrusChain.approve(address,uint256) (#507-510)
setSwapAndLiquifyEnabled(bool) should be declared external:
- CitrusChain.setSwapAndLiquifyEnabled(bool) (#552-555)
getCirculatingSupply() should be declared external:
- CitrusChain.getCirculatingSupply() (#557-559)
transfer(address,uint256) should be declared external:
- CitrusChain.transfer(address,uint256) (#569-572)
transferFrom(address,address,uint256) should be declared external:
- CitrusChain.transferFrom(address,address,uint256) (#574-578)
Use the external attribute for functions never called from the contract.
Additional information: link
Contract ticker ($CITRUS) contains non-alphanumeric characters.
Not a direct threat, but may indicate unreliable intentions of developer. Non-alphanumeric chars (,.;!#*&") are extremely rare among low risk tokens.
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