$HUMANITY is a deflationary medical charity token founded by 2 graduate healthcare students. Its goal is to provide assistance to individuals with their medical expenses as well as fund various humanitarian projects abroad. The project will follow the donor recipients in real life to display to the community the direct impact that their contribution is making.
Token.nonTaxedAddresses (#702) is never initialized. It is used in:
- Token._transfer(address,address,uint256) (#800-830)
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
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Contract ownership is not renounced (belongs to a wallet)
Token.addLiquidity(uint256,uint256) (#850-863) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#855-862)
Ensure that all the return values of the function calls are used.
Additional information: link
Token.allowance(address,address).owner (#751) shadows:
- Ownable.owner() (#362-364) (function)
Token._approve(address,address,uint256).owner (#777) shadows:
- Ownable.owner() (#362-364) (function)
Rename the local variables that shadow another component.
Additional information: link
Token.setTaxFraction(uint16) (#791-793) should emit an event for:
- TAX_FRACTION = _TAX_FRACTION (#792)
Token.setLpFraction(uint16) (#796-798) should emit an event for:
- LP_FRACTION = _LP_FRACTION (#797)
Emit an event for critical parameter changes.
Additional information: link
Token.setTaxReceiveAddress(address)._taxReceiveAddress (#890) lacks a zero-check on :
- taxReceiveAddress = _taxReceiveAddress (#891)
Check that the address is not zero.
Additional information: link
Reentrancy in Token.constructor() (#713-727):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#722-723)
State variables written after the call(s):
- uniswapV2Router = _uniswapV2Router (#726)
Reentrancy in Token.swapAndLiquify() (#866-888):
External calls:
- swapTokensForBnb(half) (#879)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#841-847)
- addLiquidity(otherHalf,newBalance) (#885)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#855-862)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#885)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#855-862)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#885)
- _allowances[owner][spender] = amount (#781)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Token.swapAndLiquify() (#866-888):
External calls:
- swapTokensForBnb(half) (#879)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#841-847)
- addLiquidity(otherHalf,newBalance) (#885)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#855-862)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#885)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#855-862)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#782)
- addLiquidity(otherHalf,newBalance) (#885)
- SwapAndLiquify(half,newBalance,otherHalf) (#887)
Apply the check-effects-interactions pattern.
Additional information: link
Address.isContract(address) (#27-36) uses assembly
- INLINE ASM (#34)
Address._verifyCallResult(bool,bytes,string) (#148-165) uses assembly
- INLINE ASM (#157-160)
Do not use evm assembly.
Additional information: link
Token._transfer(address,address,uint256) (#800-830) compares to a boolean constant:
-nonTaxedAddresses[sender] == true || TAX_FRACTION == 0 || isTaxEnabled == false (#804)
Remove the equality to the boolean constant.
Additional information: link
Address._verifyCallResult(bool,bytes,string) (#148-165) is never used and should be removed
Address.functionCall(address,bytes) (#80-82) is never used and should be removed
Address.functionCall(address,bytes,string) (#90-92) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#105-107) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#115-122) is never used and should be removed
Address.functionStaticCall(address,bytes) (#130-132) is never used and should be removed
Address.functionStaticCall(address,bytes,string) (#140-146) is never used and should be removed
Address.isContract(address) (#27-36) is never used and should be removed
Address.sendValue(address,uint256) (#54-60) is never used and should be removed
Context._msgData() (#339-342) is never used and should be removed
SafeMath.mod(uint256,uint256) (#302-304) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#318-321) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version^0.7.0 (#3) allows old versions
solc-0.7.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 Address.sendValue(address,uint256) (#54-60):
- (success) = recipient.call{value: amount}() (#58)
Low level call in Address.functionCallWithValue(address,bytes,uint256,string) (#115-122):
- (success,returndata) = target.call{value: value}(data) (#120)
Low level call in Address.functionStaticCall(address,bytes,string) (#140-146):
- (success,returndata) = target.staticcall(data) (#144)
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() (#505) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#506) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#523) is not in mixedCase
Function IUniswapV2Router01.WETH() (#545) is not in mixedCase
Parameter Token.setTaxFraction(uint16)._TAX_FRACTION (#791) is not in mixedCase
Parameter Token.setLpFraction(uint16)._LP_FRACTION (#796) is not in mixedCase
Parameter Token.setTaxReceiveAddress(address)._taxReceiveAddress (#890) is not in mixedCase
Variable Token.TAX_FRACTION (#697) is not in mixedCase
Variable Token.LP_FRACTION (#698) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#340)" inContext (#334-343)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#550) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#551)
Prevent variables from having similar names.
Additional information: link
Token.slitherConstructorVariables() (#685-897) uses literals with too many digits:
- _totalSupply = 100000000e18 (#695)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Token._decimals (#694) should be constant
Token._name (#692) should be constant
Token._symbol (#693) should be constant
Token._totalSupply (#695) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#381-384)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#390-394)
name() should be declared external:
- Token.name() (#730-732)
symbol() should be declared external:
- Token.symbol() (#734-736)
decimals() should be declared external:
- Token.decimals() (#738-740)
totalSupply() should be declared external:
- Token.totalSupply() (#742-744)
allowance(address,address) should be declared external:
- Token.allowance(address,address) (#751-753)
approve(address,uint256) should be declared external:
- Token.approve(address,uint256) (#755-758)
transferFrom(address,address,uint256) should be declared external:
- Token.transferFrom(address,address,uint256) (#760-764)
increaseAllowance(address,uint256) should be declared external:
- Token.increaseAllowance(address,uint256) (#766-769)
decreaseAllowance(address,uint256) should be declared external:
- Token.decreaseAllowance(address,uint256) (#771-774)
Use the external attribute for functions never called from the contract.
Additional information: link
Average 30d number of PancakeSwap swaps is less than 1. Token is either dead or inactive.
Contract has 10% buy tax and 10% sell tax.
Taxes are low but contract ownership is not renounced. Token has a high risk of becoming a honeypot.
Average 30d PancakeSwap liquidity is low.
Average 30d PancakeSwap volume is low.
Number of Binance Smart Chain (BSC) token holders is low.
Average PancakeSwap trading volume, liqudity, number of swaps are low. Token seems to be inactive.
Token is deployed only at one blockchain
Token has only one trading pair
Unable to find website, listings and other project-related information
Token has a considerable age, but we're still unable to find its website
Token is marked as scam (rug pull, honeypot, phishing, etc.)
Additional information: link
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Token has a considerable age, but social accounts / website are missing or have few users
Young tokens have high risks of price dump / death
Telegram account link seems to be invalid
Twitter account link seems to be invalid
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account