Ghost Network is creating a new generation blockchain-based ecosystem that supports more DApps, NFt, Games and solves real-world problems using blockchain technology.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Reentrancy in GhostNetwork._transfer(address,address,uint256) (#652-706):
External calls:
- swapAndLiquify(contractTokenBalance) (#694)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#737-743)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#694)
- wallet.transfer(amount) (#710)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#705)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#796)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#797)
- _tOwned[address(this)] = _tOwned[address(this)].add(tDev) (#798)
- _tokenTransfer(from,to,amount,takeFee) (#705)
- txCount ++ (#784)
Apply the check-effects-interactions pattern.
Additional information: link
Low level call in Address.sendValue(address,uint256) (#87-91):
- (success) = recipient.call{value: amount}() (#89)
Low level call in Address.functionCallWithValue(address,bytes,uint256,string) (#105-110):
- (success,returndata) = target.call{value: value}(data) (#108)
Low level call in Address.functionStaticCall(address,bytes,string) (#116-120):
- (success,returndata) = target.staticcall(data) (#118)
Low level call in Address.functionDelegateCall(address,bytes,string) (#126-130):
- (success,returndata) = target.delegatecall(data) (#128)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
GhostNetwork.blacklist_Add_Wallets(address[]).i (#556) is a local variable never initialized
GhostNetwork.blacklist_Remove_Wallets(address[]).i (#573) is a local variable never initialized
GhostNetwork.blacklist_Add_Wallets(address[]).gasUsed (#554) is a local variable never initialized
GhostNetwork.blacklist_Remove_Wallets(address[]).gasUsed (#571) 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
GhostNetwork.allowance(address,address).owner (#485) shadows:
- Ownable.owner() (#159-161) (function)
GhostNetwork._approve(address,address,uint256).owner (#644) shadows:
- Ownable.owner() (#159-161) (function)
Rename the local variables that shadow another component.
Additional information: link
GhostNetwork._set_Fees(uint256,uint256) (#522-528) should emit an event for:
- _sellFee = Sell_Fee (#525)
- _taxFee = tax_Fee (#526)
GhostNetwork.set_Number_Of_Transactions_Before_Liquify_Trigger(uint8) (#542-544) should emit an event for:
- swapTrigger = number_of_transactions (#543)
GhostNetwork.set_Max_Transaction_Percent(uint256) (#615-617) should emit an event for:
- _maxTxAmount = _tTotal * maxTxPercent_x100 / 10000 (#616)
GhostNetwork.set_Max_Wallet_Percent(uint256) (#620-622) should emit an event for:
- _maxWalletToken = _tTotal * maxWallPercent_x100 / 20000 (#621)
Emit an event for critical parameter changes.
Additional information: link
GhostNetwork.Wallet_Update_Dev(address).wallet (#530) lacks a zero-check on :
- Wallet_Marketing = wallet (#531)
GhostNetwork.set_New_Pair_Address(address).newPair (#772) lacks a zero-check on :
- uniswapV2Pair = newPair (#773)
Check that the address is not zero.
Additional information: link
Reentrancy in GhostNetwork._transfer(address,address,uint256) (#652-706):
External calls:
- swapAndLiquify(contractTokenBalance) (#694)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#737-743)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#694)
- wallet.transfer(amount) (#710)
State variables written after the call(s):
- _TotalFee = _taxFee (#703)
- _TotalFee = _sellFee (#703)
- _tokenTransfer(from,to,amount,takeFee) (#705)
- _TotalFee = _previousTotalFee (#638)
- _TotalFee = 0 (#632)
- _tokenTransfer(from,to,amount,takeFee) (#705)
- _previousBuyFee = _taxFee (#627)
- _tokenTransfer(from,to,amount,takeFee) (#705)
- _previousSellFee = _sellFee (#628)
- _tokenTransfer(from,to,amount,takeFee) (#705)
- _previousTotalFee = _TotalFee (#629)
- _tokenTransfer(from,to,amount,takeFee) (#705)
- _sellFee = _previousSellFee (#640)
- _sellFee = 0 (#631)
- _tokenTransfer(from,to,amount,takeFee) (#705)
- _taxFee = _previousBuyFee (#639)
- _taxFee = 0 (#630)
Reentrancy in GhostNetwork.constructor() (#442-457):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#449-450)
State variables written after the call(s):
- _isExcludedFromFee[owner()] = true (#452)
- _isExcludedFromFee[address(this)] = true (#453)
- _isExcludedFromFee[Wallet_Marketing] = true (#454)
- uniswapV2Router = _uniswapV2Router (#451)
Reentrancy in GhostNetwork.set_New_Router_and_Make_Pair(address) (#757-761):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_newPCSRouter.factory()).createPair(address(this),_newPCSRouter.WETH()) (#759)
State variables written after the call(s):
- uniswapV2Router = _newPCSRouter (#760)
Reentrancy in GhostNetwork.transferFrom(address,address,uint256) (#498-502):
External calls:
- _transfer(sender,recipient,amount) (#499)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#737-743)
External calls sending eth:
- _transfer(sender,recipient,amount) (#499)
- wallet.transfer(amount) (#710)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,)) (#500)
- _allowances[owner][spender] = amount (#647)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in GhostNetwork._transfer(address,address,uint256) (#652-706):
External calls:
- swapAndLiquify(contractTokenBalance) (#694)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#737-743)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#694)
- wallet.transfer(amount) (#710)
Event emitted after the call(s):
- Transfer(sender,recipient,tTransferAmount) (#799)
- _tokenTransfer(from,to,amount,takeFee) (#705)
Reentrancy in GhostNetwork.constructor() (#442-457):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#449-450)
Event emitted after the call(s):
- Transfer(address(0),owner(),_tTotal) (#456)
Reentrancy in GhostNetwork.transferFrom(address,address,uint256) (#498-502):
External calls:
- _transfer(sender,recipient,amount) (#499)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#737-743)
External calls sending eth:
- _transfer(sender,recipient,amount) (#499)
- wallet.transfer(amount) (#710)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#648)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,)) (#500)
Apply the check-effects-interactions pattern.
Additional information: link
Address.isContract(address) (#81-85) uses assembly
- INLINE ASM (#83)
Address._verifyCallResult(bool,bytes,string) (#132-145) uses assembly
- INLINE ASM (#137-140)
Do not use evm assembly.
Additional information: link
Address._verifyCallResult(bool,bytes,string) (#132-145) is never used and should be removed
Address.functionCall(address,bytes) (#93-95) is never used and should be removed
Address.functionCall(address,bytes,string) (#97-99) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#101-103) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#105-110) is never used and should be removed
Address.functionDelegateCall(address,bytes) (#122-124) is never used and should be removed
Address.functionDelegateCall(address,bytes,string) (#126-130) is never used and should be removed
Address.functionStaticCall(address,bytes) (#112-114) is never used and should be removed
Address.functionStaticCall(address,bytes,string) (#116-120) is never used and should be removed
Address.isContract(address) (#81-85) is never used and should be removed
Address.sendValue(address,uint256) (#87-91) is never used and should be removed
Context._msgData() (#73-76) is never used and should be removed
GhostNetwork.excludeFromFee(address) (#515-517) is never used and should be removed
GhostNetwork.includeInFee(address) (#518-520) is never used and should be removed
SafeMath.div(uint256,uint256) (#47-49) is never used and should be removed
SafeMath.div(uint256,uint256,string) (#58-63) is never used and should be removed
SafeMath.mul(uint256,uint256) (#43-45) is never used and should be removed
Remove unused functions.
Additional information: link
GhostNetwork._previousTotalFee (#400) is set pre-construction with a non-constant function or state variable:
- _TotalFee
GhostNetwork._previousBuyFee (#401) is set pre-construction with a non-constant function or state variable:
- _taxFee
GhostNetwork._previousSellFee (#402) is set pre-construction with a non-constant function or state variable:
- _sellFee
GhostNetwork._maxWalletToken (#411) is set pre-construction with a non-constant function or state variable:
- _tTotal.mul(2).div(100)
GhostNetwork._previousMaxWalletToken (#412) is set pre-construction with a non-constant function or state variable:
- _maxWalletToken
GhostNetwork._maxTxAmount (#415) is set pre-construction with a non-constant function or state variable:
- _tTotal.mul(1).div(100)
GhostNetwork._previousMaxTxAmount (#416) is set pre-construction with a non-constant function or state variable:
- _maxTxAmount
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 version^0.8.11 (#18) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
solc-0.8.11 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
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#207) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#208) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#221) is not in mixedCase
Function IUniswapV2Router01.WETH() (#238) is not in mixedCase
Function GhostNetwork._set_Fees(uint256,uint256) (#522-528) is not in mixedCase
Parameter GhostNetwork._set_Fees(uint256,uint256).tax_Fee (#522) is not in mixedCase
Parameter GhostNetwork._set_Fees(uint256,uint256).Sell_Fee (#522) is not in mixedCase
Function GhostNetwork.Wallet_Update_Dev(address) (#530-533) is not in mixedCase
Function GhostNetwork.set_Swap_And_Liquify_Enabled(bool) (#536-539) is not in mixedCase
Parameter GhostNetwork.set_Swap_And_Liquify_Enabled(bool).true_or_false (#536) is not in mixedCase
Function GhostNetwork.set_Number_Of_Transactions_Before_Liquify_Trigger(uint8) (#542-544) is not in mixedCase
Parameter GhostNetwork.set_Number_Of_Transactions_Before_Liquify_Trigger(uint8).number_of_transactions (#542) is not in mixedCase
Function GhostNetwork.blacklist_Add_Wallets(address[]) (#551-564) is not in mixedCase
Function GhostNetwork.blacklist_Remove_Wallets(address[]) (#568-581) is not in mixedCase
Function GhostNetwork.blacklist_Switch(bool) (#584-586) is not in mixedCase
Parameter GhostNetwork.blacklist_Switch(bool).true_or_false (#584) is not in mixedCase
Function GhostNetwork.set_Transfers_Without_Fees(bool) (#593-595) is not in mixedCase
Parameter GhostNetwork.set_Transfers_Without_Fees(bool).true_or_false (#593) is not in mixedCase
Function GhostNetwork.set_Max_Transaction_Percent(uint256) (#615-617) is not in mixedCase
Parameter GhostNetwork.set_Max_Transaction_Percent(uint256).maxTxPercent_x100 (#615) is not in mixedCase
Function GhostNetwork.set_Max_Wallet_Percent(uint256) (#620-622) is not in mixedCase
Parameter GhostNetwork.set_Max_Wallet_Percent(uint256).maxWallPercent_x100 (#620) is not in mixedCase
Function GhostNetwork.process_Tokens_Now(uint256) (#721-728) is not in mixedCase
Parameter GhostNetwork.process_Tokens_Now(uint256).percent_Of_Tokens_To_Process (#721) is not in mixedCase
Function GhostNetwork.remove_Random_Tokens(address,address,uint256) (#747-752) is not in mixedCase
Parameter GhostNetwork.remove_Random_Tokens(address,address,uint256).random_Token_Address (#747) is not in mixedCase
Parameter GhostNetwork.remove_Random_Tokens(address,address,uint256).send_to_wallet (#747) is not in mixedCase
Parameter GhostNetwork.remove_Random_Tokens(address,address,uint256).number_of_tokens (#747) is not in mixedCase
Function GhostNetwork.set_New_Router_and_Make_Pair(address) (#757-761) is not in mixedCase
Function GhostNetwork.set_New_Router_Address(address) (#765-768) is not in mixedCase
Function GhostNetwork.set_New_Pair_Address(address) (#772-774) is not in mixedCase
Variable GhostNetwork._isExcludedFromFee (#378) is not in mixedCase
Variable GhostNetwork._taxFee (#397) is not in mixedCase
Variable GhostNetwork._maxWalletToken (#411) is not in mixedCase
Variable GhostNetwork._maxTxAmount (#415) is not in mixedCase
Variable GhostNetwork.Wallet_Marketing (#494) is not in mixedCase
Variable GhostNetwork.Wallet_Burn (#495) is not in mixedCase
Variable GhostNetwork.Wallet_renounce (#496) is not in mixedCase
Variable GhostNetwork._TotalFee (#514) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#74)" inContext (#68-77)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in GhostNetwork._transfer(address,address,uint256) (#652-706):
External calls:
- swapAndLiquify(contractTokenBalance) (#694)
- wallet.transfer(amount) (#710)
State variables written after the call(s):
- _TotalFee = _taxFee (#703)
- _TotalFee = _sellFee (#703)
- _tokenTransfer(from,to,amount,takeFee) (#705)
- _TotalFee = _previousTotalFee (#638)
- _TotalFee = 0 (#632)
- _tokenTransfer(from,to,amount,takeFee) (#705)
- _previousBuyFee = _taxFee (#627)
- _tokenTransfer(from,to,amount,takeFee) (#705)
- _previousSellFee = _sellFee (#628)
- _tokenTransfer(from,to,amount,takeFee) (#705)
- _previousTotalFee = _TotalFee (#629)
- _tokenTransfer(from,to,amount,takeFee) (#705)
- _sellFee = _previousSellFee (#640)
- _sellFee = 0 (#631)
- _tokenTransfer(from,to,amount,takeFee) (#705)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#796)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#797)
- _tOwned[address(this)] = _tOwned[address(this)].add(tDev) (#798)
- _tokenTransfer(from,to,amount,takeFee) (#705)
- _taxFee = _previousBuyFee (#639)
- _taxFee = 0 (#630)
- _tokenTransfer(from,to,amount,takeFee) (#705)
- txCount ++ (#784)
Event emitted after the call(s):
- Transfer(sender,recipient,tTransferAmount) (#799)
- _tokenTransfer(from,to,amount,takeFee) (#705)
Reentrancy in GhostNetwork.transferFrom(address,address,uint256) (#498-502):
External calls:
- _transfer(sender,recipient,amount) (#499)
- wallet.transfer(amount) (#710)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,)) (#500)
- _allowances[owner][spender] = amount (#647)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#648)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,)) (#500)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#242) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#243)
Prevent variables from having similar names.
Additional information: link
GhostNetwork.slitherConstructorVariables() (#371-815) uses literals with too many digits:
- Wallet_Burn = address(0x000000000000000000000000000000000000dEaD) (#495)
GhostNetwork.slitherConstructorVariables() (#371-815) uses literals with too many digits:
- Wallet_renounce = address(0x0000000000000000000000000000000000000000) (#496)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
GhostNetwork._tFeeTotal (#390) is never used in GhostNetwork (#371-815)
GhostNetwork._previousMaxWalletToken (#412) is never used in GhostNetwork (#371-815)
GhostNetwork._previousMaxTxAmount (#416) is never used in GhostNetwork (#371-815)
Remove unused state variables.
Additional information: link
GhostNetwork.Wallet_Burn (#495) should be constant
GhostNetwork.Wallet_renounce (#496) should be constant
GhostNetwork._decimals (#388) should be constant
GhostNetwork._name (#386) should be constant
GhostNetwork._symbol (#387) should be constant
GhostNetwork._tFeeTotal (#390) should be constant
GhostNetwork._tTotal (#389) should be constant
GhostNetwork.maxPossibleFee (#513) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#170-173)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#176-180)
name() should be declared external:
- GhostNetwork.name() (#460-462)
symbol() should be declared external:
- GhostNetwork.symbol() (#464-466)
decimals() should be declared external:
- GhostNetwork.decimals() (#468-470)
totalSupply() should be declared external:
- GhostNetwork.totalSupply() (#472-474)
transfer(address,uint256) should be declared external:
- GhostNetwork.transfer(address,uint256) (#480-483)
allowance(address,address) should be declared external:
- GhostNetwork.allowance(address,address) (#485-487)
approve(address,uint256) should be declared external:
- GhostNetwork.approve(address,uint256) (#489-492)
transferFrom(address,address,uint256) should be declared external:
- GhostNetwork.transferFrom(address,address,uint256) (#498-502)
increaseAllowance(address,uint256) should be declared external:
- GhostNetwork.increaseAllowance(address,uint256) (#504-507)
decreaseAllowance(address,uint256) should be declared external:
- GhostNetwork.decreaseAllowance(address,uint256) (#509-512)
Wallet_Update_Dev(address) should be declared external:
- GhostNetwork.Wallet_Update_Dev(address) (#530-533)
set_Swap_And_Liquify_Enabled(bool) should be declared external:
- GhostNetwork.set_Swap_And_Liquify_Enabled(bool) (#536-539)
set_Number_Of_Transactions_Before_Liquify_Trigger(uint8) should be declared external:
- GhostNetwork.set_Number_Of_Transactions_Before_Liquify_Trigger(uint8) (#542-544)
blacklist_Switch(bool) should be declared external:
- GhostNetwork.blacklist_Switch(bool) (#584-586)
process_Tokens_Now(uint256) should be declared external:
- GhostNetwork.process_Tokens_Now(uint256) (#721-728)
set_New_Router_and_Make_Pair(address) should be declared external:
- GhostNetwork.set_New_Router_and_Make_Pair(address) (#757-761)
set_New_Router_Address(address) should be declared external:
- GhostNetwork.set_New_Router_Address(address) (#765-768)
set_New_Pair_Address(address) should be declared external:
- GhostNetwork.set_New_Pair_Address(address) (#772-774)
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 Twitter account
Telegram account has less than 100 subscribers
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account