Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Reentrancy in CatFanToken._transfer(address,address,uint256) (#811-848):
External calls:
- swapAndLiquify() (#832)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#897-904)
- (success) = recipient.call{value: amount}() (#296)
- address(_marketingWallet).sendValue(ethAmount - ethFromLiquidity) (#907)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#882-888)
- swapAndSendToFee(sellTokens) (#834)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#882-888)
External calls sending eth:
- swapAndLiquify() (#832)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#897-904)
- (success) = recipient.call{value: amount}() (#296)
- swapAndSendToFee(sellTokens) (#834)
- address(_marketingWallet).transfer(ethToSend) (#855)
State variables written after the call(s):
- _tOwned[from] -= amount (#838)
- transferAmount = _getValues(amount,from) (#843)
- _tOwned[address(this)] += marketingFee + liquidityFee (#793)
- _tOwned[to] += transferAmount (#846)
- swapping = false (#835)
Apply the check-effects-interactions pattern.
Additional information: link
CatFanToken.allowance(address,address).owner (#733) shadows:
- Ownable.owner() (#411-413) (function)
CatFanToken._approve(address,address,uint256).owner (#803) shadows:
- Ownable.owner() (#411-413) (function)
Rename the local variables that shadow another component.
Additional information: link
CatFanToken.setMarketingFeePercent(uint256) (#774-776) should emit an event for:
- _marketingFee = marketingFee (#775)
CatFanToken.setLiquidityFeePercent(uint256) (#778-780) should emit an event for:
- _liquidityFee = liquidityFee (#779)
CatFanToken.setMaxBuySellPercent(uint256) (#782-784) should emit an event for:
- _maxTxAmount = _tTotal * maxTxPercent / 10 ** 2 (#783)
Emit an event for critical parameter changes.
Additional information: link
CatFanToken.setMarketingWallet(address).marketingWallet (#770) lacks a zero-check on :
- _marketingWallet = marketingWallet (#771)
Check that the address is not zero.
Additional information: link
Reentrancy in CatFanToken._transfer(address,address,uint256) (#811-848):
External calls:
- swapAndLiquify() (#832)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#897-904)
- (success) = recipient.call{value: amount}() (#296)
- address(_marketingWallet).sendValue(ethAmount - ethFromLiquidity) (#907)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#882-888)
- swapAndSendToFee(sellTokens) (#834)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#882-888)
External calls sending eth:
- swapAndLiquify() (#832)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#897-904)
- (success) = recipient.call{value: amount}() (#296)
- swapAndSendToFee(sellTokens) (#834)
- address(_marketingWallet).transfer(ethToSend) (#855)
State variables written after the call(s):
- swapAndSendToFee(sellTokens) (#834)
- _allowances[owner][spender] = amount (#807)
Reentrancy in CatFanToken.constructor() (#690-706):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#695)
State variables written after the call(s):
- _isExcludedFromFee[owner()] = true (#701)
- _isExcludedFromFee[address(this)] = true (#702)
- _isExcludedFromFee[_marketingWallet] = true (#703)
- uniswapV2Pair = _uniswapV2Pair (#698)
- uniswapV2Router = _uniswapV2Router (#697)
Reentrancy in CatFanToken.swapAndLiquify() (#858-870):
External calls:
- newBalance = swapTokensForEth(half) (#863)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#882-888)
- addLiquidity(otherHalf,newBalance) (#867)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#897-904)
- (success) = recipient.call{value: amount}() (#296)
- address(_marketingWallet).sendValue(ethAmount - ethFromLiquidity) (#907)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#867)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#897-904)
- (success) = recipient.call{value: amount}() (#296)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#867)
- _allowances[owner][spender] = amount (#807)
Reentrancy in CatFanToken.transferFrom(address,address,uint256) (#742-746):
External calls:
- _transfer(sender,recipient,amount) (#743)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#897-904)
- (success) = recipient.call{value: amount}() (#296)
- address(_marketingWallet).sendValue(ethAmount - ethFromLiquidity) (#907)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#882-888)
External calls sending eth:
- _transfer(sender,recipient,amount) (#743)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#897-904)
- address(_marketingWallet).transfer(ethToSend) (#855)
- (success) = recipient.call{value: amount}() (#296)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()] - amount) (#744)
- _allowances[owner][spender] = amount (#807)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in CatFanToken._transfer(address,address,uint256) (#811-848):
External calls:
- swapAndLiquify() (#832)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#897-904)
- (success) = recipient.call{value: amount}() (#296)
- address(_marketingWallet).sendValue(ethAmount - ethFromLiquidity) (#907)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#882-888)
- swapAndSendToFee(sellTokens) (#834)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#882-888)
External calls sending eth:
- swapAndLiquify() (#832)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#897-904)
- (success) = recipient.call{value: amount}() (#296)
- swapAndSendToFee(sellTokens) (#834)
- address(_marketingWallet).transfer(ethToSend) (#855)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#808)
- swapAndSendToFee(sellTokens) (#834)
- Transfer(from,address(this),marketingFee + liquidityFee) (#794)
- transferAmount = _getValues(amount,from) (#843)
- Transfer(from,to,transferAmount) (#847)
Reentrancy in CatFanToken.constructor() (#690-706):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#695)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_tTotal) (#705)
Reentrancy in CatFanToken.swapAndLiquify() (#858-870):
External calls:
- newBalance = swapTokensForEth(half) (#863)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#882-888)
- addLiquidity(otherHalf,newBalance) (#867)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#897-904)
- (success) = recipient.call{value: amount}() (#296)
- address(_marketingWallet).sendValue(ethAmount - ethFromLiquidity) (#907)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#867)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#897-904)
- (success) = recipient.call{value: amount}() (#296)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#808)
- addLiquidity(otherHalf,newBalance) (#867)
- SwapAndLiquify(half,newBalance,otherHalf) (#868)
Reentrancy in CatFanToken.transferFrom(address,address,uint256) (#742-746):
External calls:
- _transfer(sender,recipient,amount) (#743)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#897-904)
- (success) = recipient.call{value: amount}() (#296)
- address(_marketingWallet).sendValue(ethAmount - ethFromLiquidity) (#907)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#882-888)
External calls sending eth:
- _transfer(sender,recipient,amount) (#743)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#897-904)
- address(_marketingWallet).transfer(ethToSend) (#855)
- (success) = recipient.call{value: amount}() (#296)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#808)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()] - amount) (#744)
Apply the check-effects-interactions pattern.
Additional information: link
CatFanToken._transfer(address,address,uint256) (#811-848) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(_lastBuy[to] + _buyCooldown < block.timestamp,Must wait til after coooldown to buy) (#825)
CatFanToken.addLiquidity(uint256,uint256) (#892-908) uses timestamp for comparisons
Dangerous comparisons:
- ethAmount - ethFromLiquidity > 0 (#906)
Avoid relying on block.timestamp.
Additional information: link
Address.isContract(address) (#265-274) uses assembly
- INLINE ASM (#272)
Address._functionCallWithValue(address,bytes,uint256,string) (#358-379) uses assembly
- INLINE ASM (#371-374)
Do not use evm assembly.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#358-379) is never used and should be removed
Address.functionCall(address,bytes) (#318-320) is never used and should be removed
Address.functionCall(address,bytes,string) (#328-330) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#343-345) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#353-356) is never used and should be removed
Address.isContract(address) (#265-274) is never used and should be removed
Context._msgData() (#237-240) is never used and should be removed
SafeMath.add(uint256,uint256) (#100-105) is never used and should be removed
SafeMath.div(uint256,uint256) (#174-176) is never used and should be removed
SafeMath.div(uint256,uint256,string) (#190-196) is never used and should be removed
SafeMath.mod(uint256,uint256) (#210-212) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#226-229) is never used and should be removed
SafeMath.mul(uint256,uint256) (#148-160) is never used and should be removed
SafeMath.sub(uint256,uint256) (#117-119) is never used and should be removed
SafeMath.sub(uint256,uint256,string) (#131-136) is never used and should be removed
Remove unused functions.
Additional information: link
Low level call in Address.sendValue(address,uint256) (#292-298):
- (success) = recipient.call{value: amount}() (#296)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#358-379):
- (success,returndata) = target.call{value: weiValue}(data) (#362)
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() (#482) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#483) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#500) is not in mixedCase
Function IUniswapV2Router01.WETH() (#522) is not in mixedCase
Variable CatFanToken._isBlacklisted (#670) is not in mixedCase
Variable CatFanToken._maxTxAmount (#673) is not in mixedCase
Constant CatFanToken._name (#675) is not in UPPER_CASE_WITH_UNDERSCORES
Constant CatFanToken._symbol (#676) is not in UPPER_CASE_WITH_UNDERSCORES
Constant CatFanToken._decimals (#677) is not in UPPER_CASE_WITH_UNDERSCORES
Variable CatFanToken._marketingFee (#679) is not in mixedCase
Variable CatFanToken._liquidityFee (#680) is not in mixedCase
Variable CatFanToken._marketingWallet (#681) is not in mixedCase
Variable CatFanToken._buyCooldown (#683) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#238)" inContext (#232-241)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in CatFanToken._transfer(address,address,uint256) (#811-848):
External calls:
- swapAndSendToFee(sellTokens) (#834)
- address(_marketingWallet).transfer(ethToSend) (#855)
External calls sending eth:
- swapAndLiquify() (#832)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#897-904)
- (success) = recipient.call{value: amount}() (#296)
- swapAndSendToFee(sellTokens) (#834)
- address(_marketingWallet).transfer(ethToSend) (#855)
State variables written after the call(s):
- _tOwned[from] -= amount (#838)
- transferAmount = _getValues(amount,from) (#843)
- _tOwned[address(this)] += marketingFee + liquidityFee (#793)
- _tOwned[to] += transferAmount (#846)
- swapping = false (#835)
Event emitted after the call(s):
- Transfer(from,address(this),marketingFee + liquidityFee) (#794)
- transferAmount = _getValues(amount,from) (#843)
- Transfer(from,to,transferAmount) (#847)
Reentrancy in CatFanToken.transferFrom(address,address,uint256) (#742-746):
External calls:
- _transfer(sender,recipient,amount) (#743)
- address(_marketingWallet).transfer(ethToSend) (#855)
External calls sending eth:
- _transfer(sender,recipient,amount) (#743)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#897-904)
- address(_marketingWallet).transfer(ethToSend) (#855)
- (success) = recipient.call{value: amount}() (#296)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()] - amount) (#744)
- _allowances[owner][spender] = amount (#807)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#808)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()] - amount) (#744)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#527) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#528)
Prevent variables from having similar names.
Additional information: link
Address.sendValue(address,uint256) (#292-298) uses literals with too many digits:
- recipient = address(0x000000000000000000000000000000000000dEaD) (#294)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
CatFanToken._buyCooldown (#683) should be constant
CatFanToken._tTotal (#672) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#430-433)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#439-443)
name() should be declared external:
- CatFanToken.name() (#708-710)
symbol() should be declared external:
- CatFanToken.symbol() (#712-714)
decimals() should be declared external:
- CatFanToken.decimals() (#716-718)
totalSupply() should be declared external:
- CatFanToken.totalSupply() (#720-722)
transfer(address,uint256) should be declared external:
- CatFanToken.transfer(address,uint256) (#728-731)
allowance(address,address) should be declared external:
- CatFanToken.allowance(address,address) (#733-735)
approve(address,uint256) should be declared external:
- CatFanToken.approve(address,uint256) (#737-740)
transferFrom(address,address,uint256) should be declared external:
- CatFanToken.transferFrom(address,address,uint256) (#742-746)
increaseAllowance(address,uint256) should be declared external:
- CatFanToken.increaseAllowance(address,uint256) (#748-751)
decreaseAllowance(address,uint256) should be declared external:
- CatFanToken.decreaseAllowance(address,uint256) (#753-756)
excludeFromFee(address) should be declared external:
- CatFanToken.excludeFromFee(address) (#758-760)
includeInFee(address) should be declared external:
- CatFanToken.includeInFee(address) (#762-764)
isExcludedFromFee(address) should be declared external:
- CatFanToken.isExcludedFromFee(address) (#799-801)
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