Hunger Token Token Logo

HUNGER Token

About HUNGER

Listings

Token 2 years
CoinMarketCap 2 years
white paper

Hunger Token - Multi ways of Earning Money by Fighting Hunger

Social

Laser Scorebeta Last Audit: 14 February 2022

report
Token is either risky or in presale. For presale 30+ is a fine score.

HungerToken.__buybackAndBurn(uint128,uint256) (HungerToken.sol#910-932) sends eth to arbitrary user
Dangerous calls:
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: buybackBNB}(0,path,_burnAddress,block.timestamp) (HungerToken.sol#923-930)
HungerToken.__addLiquidity(uint256,uint256) (HungerToken.sol#934-966) sends eth to arbitrary user
Dangerous calls:
- _pancakeRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenQuote,0,0,address(this),block.timestamp) (HungerToken.sol#955-962)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

HungerToken.__roll() (HungerToken.sol#869-883) uses a weak PRNG: "randomNumber = uint256(uint256(keccak256(bytes)(abi.encodePacked(block.difficulty,block.timestamp,_luckyShot.lastRoll))) % 1000) (HungerToken.sol#870-880)"
Do not use block.timestamp, now or blockhash as a source of randomness

Additional information: link

Reentrancy in HungerToken._useContractBNB(uint128,uint128,uint128,uint128,uint256) (HungerToken.sol#410-482):
External calls:
- (success,None) = charityAddress.call{value: charityBNB}(new bytes(0)) (HungerToken.sol#433-435)
- (success,None) = marketingAddress.call{value: marketingBNB}(new bytes(0)) (HungerToken.sol#445-447)
- __buybackAndBurn(buybackRate,amount) (HungerToken.sol#458)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: buybackBNB}(0,path,_burnAddress,block.timestamp) (HungerToken.sol#923-930)
State variables written after the call(s):
- __buybackAndBurn(buybackRate,amount) (HungerToken.sol#458)
- _lockSwap = true (HungerToken.sol#60)
- _lockSwap = false (HungerToken.sol#62)
Reentrancy in HungerToken._useContractBNB(uint128,uint128,uint128,uint128,uint256) (HungerToken.sol#410-482):
External calls:
- (success,None) = charityAddress.call{value: charityBNB}(new bytes(0)) (HungerToken.sol#433-435)
- (success,None) = marketingAddress.call{value: marketingBNB}(new bytes(0)) (HungerToken.sol#445-447)
- __buybackAndBurn(buybackRate,amount) (HungerToken.sol#458)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: buybackBNB}(0,path,_burnAddress,block.timestamp) (HungerToken.sol#923-930)
- __addLiquidity(amountAvailable,liquidtyFee) (HungerToken.sol#479)
- _pancakeRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenQuote,0,0,address(this),block.timestamp) (HungerToken.sol#955-962)
State variables written after the call(s):
- __addLiquidity(amountAvailable,liquidtyFee) (HungerToken.sol#479)
- _lockSwap = true (HungerToken.sol#60)
- _lockSwap = false (HungerToken.sol#62)
Apply the check-effects-interactions pattern.

Additional information: link


Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains


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.

HungerToken.luckyShotConfig(bool,uint16,uint64,uint128) (HungerToken.sol#517-529) contains a tautology or contradiction:
- require(bool,string)(chance <= 65535,Chance must be less than max settable) (HungerToken.sol#523)
Fix the incorrect comparison by changing the value type or the comparison.

Additional information: link

HungerToken.__transfer(address,address,uint256).tokensForSelling (HungerToken.sol#711) is a local variable never initialized
HungerToken.__transfer(address,address,uint256).luckyShotFee (HungerToken.sol#710) is a local variable never initialized
HungerToken.getFeeStatus(address).feesExcludedFrom (HungerToken.sol#573) is a local variable never initialized
HungerToken.__transfer(address,address,uint256).reflectionFee (HungerToken.sol#709) 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

HungerToken.__addLiquidity(uint256,uint256) (HungerToken.sol#934-966) ignores return value by _pancakeRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenQuote,0,0,address(this),block.timestamp) (HungerToken.sol#955-962)
Ensure that all the return values of the function calls are used.

Additional information: link

HungerToken.allowance(address,address).owner (HungerToken.sol#541) shadows:
- Ownable.owner() (ThirdParty.sol#100-102) (function)
HungerToken.__approveAllowance(address,address,uint256).owner (HungerToken.sol#684) shadows:
- Ownable.owner() (ThirdParty.sol#100-102) (function)
Rename the local variables that shadow another component.

Additional information: link

HungerToken.burnTokens(uint8,uint64) (HungerToken.sol#485-507) should emit an event for:
- _tokensForInitialSupport -= amount (HungerToken.sol#503)
Emit an event for critical parameter changes.

Additional information: link

HungerToken._setCharityAddress(address).newAddress (HungerToken.sol#345) lacks a zero-check on :
- charityAddress = address(newAddress) (HungerToken.sol#346)
HungerToken._setMarketingAddress(address).newAddress (HungerToken.sol#349) lacks a zero-check on :
- marketingAddress = address(newAddress) (HungerToken.sol#350)
HungerToken.pancakePairAddress(address).newPair (HungerToken.sol#531) lacks a zero-check on :
- _pancakePair = newPair (HungerToken.sol#532)
Check that the address is not zero.

Additional information: link

Reentrancy in HungerToken._useContractBNB(uint128,uint128,uint128,uint128,uint256) (HungerToken.sol#410-482):
External calls:
- (success,None) = charityAddress.call{value: charityBNB}(new bytes(0)) (HungerToken.sol#433-435)
- (success,None) = marketingAddress.call{value: marketingBNB}(new bytes(0)) (HungerToken.sol#445-447)
- __buybackAndBurn(buybackRate,amount) (HungerToken.sol#458)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: buybackBNB}(0,path,_burnAddress,block.timestamp) (HungerToken.sol#923-930)
State variables written after the call(s):
- _tokensForInitialSupport -= liquidtyFee (HungerToken.sol#469)
Reentrancy in HungerToken.constructor() (HungerToken.sol#113-147):
External calls:
- pancakePair = IPancakeFactory(pancakeRouter.factory()).createPair(address(this),pancakeRouter.WETH()) (HungerToken.sol#119-120)
State variables written after the call(s):
- __approveAllowance(address(this),address(pancakeRouter),~ uint256(0)) (HungerToken.sol#123)
- _allowances[owner][spender] = amount (HungerToken.sol#690)
- _isExcluded[marketingAddress].fromFee = true (HungerToken.sol#125)
- _isExcluded[owner()].fromFee = true (HungerToken.sol#126)
- _isExcluded[_burnAddress].fromReward = true (HungerToken.sol#128)
- _isExcluded[pancakePair].fromReward = true (HungerToken.sol#129)
- _isExcluded[marketingAddress].fromReward = true (HungerToken.sol#130)
- _isExcluded[address(this)].fromReward = true (HungerToken.sol#131)
- _pancakePair = pancakePair (HungerToken.sol#121)
- _projectLayer2 = address(this) (HungerToken.sol#139)
- _tokenBalance[address(this)] = initialSupportTokens (HungerToken.sol#136)
- _tokenBalance[marketingAddress] = _tokenSupply - initialSupportTokens (HungerToken.sol#137)
- _tokensForInitialSupport = initialSupportTokens (HungerToken.sol#134)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in HungerToken.__addLiquidity(uint256,uint256) (HungerToken.sol#934-966):
External calls:
- _pancakeRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenQuote,0,0,address(this),block.timestamp) (HungerToken.sol#955-962)
Event emitted after the call(s):
- AddLiquidity(tokenQuote,bnbAmount,_pancakePair) (HungerToken.sol#964)
Reentrancy in HungerToken.__swapTokens(uint256) (HungerToken.sol#885-908):
External calls:
- _pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(amount,0,path,address(this),block.timestamp) (HungerToken.sol#894-900)
Event emitted after the call(s):
- SwapTokensForBNB(uint128(amount),uint128(address(this).balance - initialBnb)) (HungerToken.sol#903-906)
Reentrancy in HungerToken._useContractBNB(uint128,uint128,uint128,uint128,uint256) (HungerToken.sol#410-482):
External calls:
- (success,None) = charityAddress.call{value: charityBNB}(new bytes(0)) (HungerToken.sol#433-435)
Event emitted after the call(s):
- SendToWallet(Charity,charityAddress,charityBNB) (HungerToken.sol#438)
Reentrancy in HungerToken._useContractBNB(uint128,uint128,uint128,uint128,uint256) (HungerToken.sol#410-482):
External calls:
- (success,None) = charityAddress.call{value: charityBNB}(new bytes(0)) (HungerToken.sol#433-435)
- (success,None) = marketingAddress.call{value: marketingBNB}(new bytes(0)) (HungerToken.sol#445-447)
Event emitted after the call(s):
- SendToWallet(Marketing,marketingAddress,marketingBNB) (HungerToken.sol#450-454)
Reentrancy in HungerToken._useContractBNB(uint128,uint128,uint128,uint128,uint256) (HungerToken.sol#410-482):
External calls:
- (success,None) = charityAddress.call{value: charityBNB}(new bytes(0)) (HungerToken.sol#433-435)
- (success,None) = marketingAddress.call{value: marketingBNB}(new bytes(0)) (HungerToken.sol#445-447)
- __buybackAndBurn(buybackRate,amount) (HungerToken.sol#458)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: buybackBNB}(0,path,_burnAddress,block.timestamp) (HungerToken.sol#923-930)
- __addLiquidity(amountAvailable,liquidtyFee) (HungerToken.sol#479)
- _pancakeRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenQuote,0,0,address(this),block.timestamp) (HungerToken.sol#955-962)
Event emitted after the call(s):
- AddLiquidity(tokenQuote,bnbAmount,_pancakePair) (HungerToken.sol#964)
- __addLiquidity(amountAvailable,liquidtyFee) (HungerToken.sol#479)
Reentrancy in HungerToken.constructor() (HungerToken.sol#113-147):
External calls:
- pancakePair = IPancakeFactory(pancakeRouter.factory()).createPair(address(this),pancakeRouter.WETH()) (HungerToken.sol#119-120)
Event emitted after the call(s):
- Approval(owner,spender,amount) (HungerToken.sol#691)
- __approveAllowance(address(this),address(pancakeRouter),~ uint256(0)) (HungerToken.sol#123)
- Transfer(address(0),address(this),_tokenBalance[address(this)]) (HungerToken.sol#141)
- Transfer(address(0),marketingAddress,_tokenBalance[marketingAddress]) (HungerToken.sol#142-146)
Apply the check-effects-interactions pattern.

Additional information: link

Ownable.unlock() (ThirdParty.sol#138-143) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp > _lockTime,Contract is locked until 7 days) (ThirdParty.sol#140)
Avoid relying on block.timestamp.

Additional information: link

Address.isContract(address) (ThirdParty.sol#18-27) uses assembly
- INLINE ASM (ThirdParty.sol#25)
Address._functionCallWithValue(address,bytes,uint256,string) (ThirdParty.sol#54-71) uses assembly
- INLINE ASM (ThirdParty.sol#63-66)
Do not use evm assembly.

Additional information: link

Ownable.renounceOwnership(bool) (ThirdParty.sol#109-114) compares to a boolean constant:
-require(bool,string)(renounceGuard == true,Please set to true to renounce) (ThirdParty.sol#110)
Remove the equality to the boolean constant.

Additional information: link

Address._functionCallWithValue(address,bytes,uint256,string) (ThirdParty.sol#54-71) is never used and should be removed
Address.functionCall(address,bytes) (ThirdParty.sol#37-39) is never used and should be removed
Address.functionCall(address,bytes,string) (ThirdParty.sol#41-43) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (ThirdParty.sol#45-47) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (ThirdParty.sol#49-52) is never used and should be removed
Address.sendValue(address,uint256) (ThirdParty.sol#29-35) is never used and should be removed
Context._msgData() (ThirdParty.sol#80-83) is never used and should be removed
Remove unused functions.

Additional information: link

Pragma version^0.8.9 (HungerToken.sol#16) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
Pragma version^0.8.9 (ThirdParty.sol#3) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
solc-0.8.9 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 HungerToken._useContractBNB(uint128,uint128,uint128,uint128,uint256) (HungerToken.sol#410-482):
- (success,None) = charityAddress.call{value: charityBNB}(new bytes(0)) (HungerToken.sol#433-435)
- (success,None) = marketingAddress.call{value: marketingBNB}(new bytes(0)) (HungerToken.sol#445-447)
Low level call in Address.sendValue(address,uint256) (ThirdParty.sol#29-35):
- (success) = recipient.call{value: amount}() (ThirdParty.sol#33)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (ThirdParty.sol#54-71):
- (success,returndata) = target.call{value: weiValue}(data) (ThirdParty.sol#57)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

Function HungerToken._addToFeeList(uint8,address) (HungerToken.sol#226-239) is not in mixedCase
Function HungerToken._removeFromFeeLists(address) (HungerToken.sol#244-247) is not in mixedCase
Function HungerToken._addToRewards(address) (HungerToken.sol#249-263) is not in mixedCase
Function HungerToken._removeFromRewards(address) (HungerToken.sol#265-284) is not in mixedCase
Function HungerToken._setContractRates(uint16,uint16,uint16,uint16,uint16,uint16,uint16,uint16) (HungerToken.sol#286-336) is not in mixedCase
Function HungerToken._turnOffAntiWhale() (HungerToken.sol#339-343) is not in mixedCase
Function HungerToken._setCharityAddress(address) (HungerToken.sol#345-347) is not in mixedCase
Function HungerToken._setMarketingAddress(address) (HungerToken.sol#349-351) is not in mixedCase
Function HungerToken._setProjectLayer2Address(address) (HungerToken.sol#353-362) is not in mixedCase
Function HungerToken._setsDefaultRates() (HungerToken.sol#365-374) is not in mixedCase
Function HungerToken._spendAvailableFunds(uint256) (HungerToken.sol#379-396) is not in mixedCase
Function HungerToken._useContractBNB(uint128,uint128,uint128,uint128,uint256) (HungerToken.sol#410-482) is not in mixedCase
Function HungerToken.__approveAllowance(address,address,uint256) (HungerToken.sol#683-692) is not in mixedCase
Function HungerToken.__transfer(address,address,uint256) (HungerToken.sol#694-757) is not in mixedCase
Function HungerToken.__transferAndReflect(address,address,uint256,uint256,uint256,uint256,HungerToken.IsExcluded[2]) (HungerToken.sol#759-835) is not in mixedCase
Function HungerToken.__handleLuckyShot(bool,address) (HungerToken.sol#837-866) is not in mixedCase
Function HungerToken.__roll() (HungerToken.sol#869-883) is not in mixedCase
Function HungerToken.__swapTokens(uint256) (HungerToken.sol#885-908) is not in mixedCase
Function HungerToken.__buybackAndBurn(uint128,uint256) (HungerToken.sol#910-932) is not in mixedCase
Function HungerToken.__addLiquidity(uint256,uint256) (HungerToken.sol#934-966) is not in mixedCase
Function HungerToken.__burn(uint64) (HungerToken.sol#968-975) is not in mixedCase
Function HungerToken.__getReserves() (HungerToken.sol#977-989) is not in mixedCase
Function HungerToken.__getReflectionRate() (HungerToken.sol#991-1000) is not in mixedCase
Function HungerToken.__splitAndDetermineFees(address,address,uint256,HungerToken.IsExcluded[2]) (HungerToken.sol#1002-1031) is not in mixedCase
Function HungerToken.__getRates(address,address,HungerToken.IsExcluded[2]) (HungerToken.sol#1033-1066) is not in mixedCase
Function HungerToken.__verify(address,address) (HungerToken.sol#1078-1081) is not in mixedCase
Modifier HungerToken.LockSwap() (HungerToken.sol#59-63) is not in mixedCase
Function IPancakeERC20.DOMAIN_SEPARATOR() (ThirdParty.sol#180) is not in mixedCase
Function IPancakeERC20.PERMIT_TYPEHASH() (ThirdParty.sol#181) is not in mixedCase
Function IPancakePair.DOMAIN_SEPARATOR() (ThirdParty.sol#208) is not in mixedCase
Function IPancakePair.PERMIT_TYPEHASH() (ThirdParty.sol#209) is not in mixedCase
Function IPancakePair.MINIMUM_LIQUIDITY() (ThirdParty.sol#226) is not in mixedCase
Function IPancakeRouter01.WETH() (ThirdParty.sol#247) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (ThirdParty.sol#81)" inContext (ThirdParty.sol#75-84)
Remove redundant statements if they congest code but offer no value.

Additional information: link

Variable IPancakeRouter01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (ThirdParty.sol#252) is too similar to IPancakeRouter01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (ThirdParty.sol#253)
Prevent variables from having similar names.

Additional information: link

HungerToken.constructor() (HungerToken.sol#113-147) uses literals with too many digits:
- initialSupportTokens = (_tokenSupply * 10000) / 100000 (HungerToken.sol#133)
HungerToken._useContractBNB(uint128,uint128,uint128,uint128,uint256) (HungerToken.sol#410-482) uses literals with too many digits:
- charityBNB = (amount * (charityRate * 1000)) / 100000 (HungerToken.sol#431)
HungerToken._useContractBNB(uint128,uint128,uint128,uint128,uint256) (HungerToken.sol#410-482) uses literals with too many digits:
- marketingBNB = (amount * (marketingRate * 1000)) / 100000 (HungerToken.sol#442-443)
HungerToken._useContractBNB(uint128,uint128,uint128,uint128,uint256) (HungerToken.sol#410-482) uses literals with too many digits:
- liquidtyFee = (amount * (liquidityRate * 1000)) / 100000 (HungerToken.sol#464-465)
HungerToken.__transferAndReflect(address,address,uint256,uint256,uint256,uint256,HungerToken.IsExcluded[2]) (HungerToken.sol#759-835) uses literals with too many digits:
- require(bool,string)(_reflectionBalance[to] / reflectionRate <= ((_tokenSupply - _tokenBalance[_burnAddress]) * antiWhaleRate) / 100000,Receiver Reflection balance exceeds holder limit) (HungerToken.sol#802-808)
HungerToken.__transferAndReflect(address,address,uint256,uint256,uint256,uint256,HungerToken.IsExcluded[2]) (HungerToken.sol#759-835) uses literals with too many digits:
- require(bool,string)(_tokenBalance[to] <= ((_tokenSupply - _tokenBalance[_burnAddress]) * antiWhaleRate) / 100000,Receiver Token balance exceeds holder limit) (HungerToken.sol#814-820)
HungerToken.__buybackAndBurn(uint128,uint256) (HungerToken.sol#910-932) uses literals with too many digits:
- buybackBNB = (amount * (buybackRate * 1000)) / 100000 (HungerToken.sol#914)
HungerToken.__splitAndDetermineFees(address,address,uint256,HungerToken.IsExcluded[2]) (HungerToken.sol#1002-1031) uses literals with too many digits:
- denominator = 100000 (HungerToken.sol#1016)
HungerToken.slitherConstructorVariables() (HungerToken.sol#20-1082) uses literals with too many digits:
- _burnAddress = 0x000000000000000000000000000000000000dEaD (HungerToken.sol#73-74)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

HungerToken._tokenSupply (HungerToken.sol#70) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

Holders:


Average 30d PancakeSwap liquidity 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 30d PancakeSwap volume 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

Contract has 10% buy tax and 10% sell tax.
Taxes are low and contract ownership is renounced.


Twitter account link seems to be invalid


Unable to find Blog account (Reddit or Medium)


Unable to find Discord account


Unable to crawl data from the website


Young tokens have high risks of 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

Price for HUNGER