Lone Warrior Token Logo

LW [Lone Warrior] Token

ALERT: honeypot scam

About LW

Listings

Not Found
Token 2 years

Website

Not Found

Description

Not Found

Social

Not Found

Laser Scorebeta Last Audit: 1 June 2022

report
Token seems to be a scam (type: honeypot scam).

GhostToken.swapTokensForTokens(uint256) (#1112-1149) sends eth to arbitrary user
Dangerous calls:
- address(marketAddr).transfer(marketAmount) (#1147)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in GhostToken._transfer(address,address,uint256) (#863-936):
External calls:
- swapTokensForTokens(contractTokenBalance) (#916)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(rewardAmount,0,path_1,address(this),block.timestamp) (#1129-1135)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(BNBAmount,0,path_2,address(this),block.timestamp) (#1137-1143)
- process(distributorGas) (#932)
- (b1) = TOKEN.call(abi.encodeWithSignature(transfer(address,uint256),shareholder,amount)) (#978)
External calls sending eth:
- swapTokensForTokens(contractTokenBalance) (#916)
- address(marketAddr).transfer(marketAmount) (#1147)
- address(teamAddr).transfer(teamAmount) (#1148)
State variables written after the call(s):
- LPFeefenhong = block.timestamp (#933)
Apply the check-effects-interactions pattern.

Additional information: link


Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)

GhostToken.setShare(address) (#986-995) uses a dangerous strict equality:
- IERC20(uniswapV2Pair).balanceOf(shareholder) == 0 (#988)
GhostToken.setShare(address) (#986-995) uses a dangerous strict equality:
- IERC20(uniswapV2Pair).balanceOf(shareholder) == 0 (#991)
Don't use strict equality to determine if an account has enough Ether or tokens.

Additional information: link


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.

GhostToken._takeTransfer(address,address,uint256,uint256) (#1044-1054) performs a multiplication on the result of a division:
-rAmount = tAmount.div(100).mul(currentRate) (#1051)
GhostToken._transferStandard(address,address,uint256) (#1056-1080) performs a multiplication on the result of a division:
-_takeburnFee(sender,tAmount.div(100).mul(_burnFee)) (#1064)
GhostToken._transferStandard(address,address,uint256) (#1056-1080) performs a multiplication on the result of a division:
-_takeLPFee(sender,tAmount.div(100).mul(_LPFee)) (#1069)
GhostToken._transferStandard(address,address,uint256) (#1056-1080) performs a multiplication on the result of a division:
-_balances[recipient] = _balances[recipient].add(tAmount.div(100).mul(recipientRate)) (#1076-1078)
GhostToken._transferStandard(address,address,uint256) (#1056-1080) performs a multiplication on the result of a division:
-Transfer(sender,recipient,tAmount.div(100).mul(recipientRate)) (#1079)
Consider ordering multiplication before division.

Additional information: link

Reentrancy in GhostToken.process(uint256) (#938-969):
External calls:
- distributeDividend(shareholders[currentIndex],amount) (#963)
- (b1) = TOKEN.call(abi.encodeWithSignature(transfer(address,uint256),shareholder,amount)) (#978)
State variables written after the call(s):
- currentIndex ++ (#966)
Apply the check-effects-interactions pattern.

Additional information: link

GhostToken.allowance(address,address).owner (#742) shadows:
- Ownable.owner() (#103-105) (function)
GhostToken._approve(address,address,uint256).owner (#852) shadows:
- Ownable.owner() (#103-105) (function)
Rename the local variables that shadow another component.

Additional information: link

GhostToken.setMaxWalletLimite(uint256) (#970-972) should emit an event for:
- maxWalletLimited = newLimit (#971)
GhostToken.setMaxTx(uint256) (#973-976) should emit an event for:
- maxTx = NewMaxTx (#975)
GhostToken.setSwapTokensAtAmount(uint256) (#1098-1100) should emit an event for:
- swapTokensAtAmount = value (#1099)
Emit an event for critical parameter changes.

Additional information: link

Reentrancy in GhostToken._transfer(address,address,uint256) (#863-936):
External calls:
- swapTokensForTokens(contractTokenBalance) (#916)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(rewardAmount,0,path_1,address(this),block.timestamp) (#1129-1135)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(BNBAmount,0,path_2,address(this),block.timestamp) (#1137-1143)
External calls sending eth:
- swapTokensForTokens(contractTokenBalance) (#916)
- address(marketAddr).transfer(marketAmount) (#1147)
- address(teamAddr).transfer(teamAmount) (#1148)
State variables written after the call(s):
- setShare(fromAddress) (#925)
- _updated[shareholder] = false (#1002)
- _updated[shareholder] = true (#993)
- setShare(toAddress) (#926)
- _updated[shareholder] = false (#1002)
- _updated[shareholder] = true (#993)
- fromAddress = from (#923)
- fromAddress = from (#928)
- setShare(fromAddress) (#925)
- shareholderIndexes[shareholder] = shareholders.length (#997)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#1006)
- setShare(toAddress) (#926)
- shareholderIndexes[shareholder] = shareholders.length (#997)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#1006)
- setShare(fromAddress) (#925)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#1005)
- shareholders.push(shareholder) (#998)
- shareholders.pop() (#1007)
- setShare(toAddress) (#926)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#1005)
- shareholders.push(shareholder) (#998)
- shareholders.pop() (#1007)
- toAddress = to (#924)
- toAddress = to (#929)
Reentrancy in GhostToken.constructor() (#667-711):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#692-693)
State variables written after the call(s):
- TOKEN = 0x55d398326f99059fF775485246999027B3197955 (#705)
- _isExcludedFromFee[owner()] = true (#699)
- _isExcludedFromFee[address(this)] = true (#701)
- isDividendExempt[address(this)] = true (#702)
- isDividendExempt[address(0)] = true (#703)
- isDividendExempt[deadAdress] = true (#704)
- swapTokensAtAmount = 1 * (10 ** 9) (#706)
- uniswapV2Router = _uniswapV2Router (#696)
Reentrancy in GhostToken.transferFrom(address,address,uint256) (#767-782):
External calls:
- _transfer(sender,recipient,amount) (#772)
- (b1) = TOKEN.call(abi.encodeWithSignature(transfer(address,uint256),shareholder,amount)) (#978)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(rewardAmount,0,path_1,address(this),block.timestamp) (#1129-1135)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(BNBAmount,0,path_2,address(this),block.timestamp) (#1137-1143)
External calls sending eth:
- _transfer(sender,recipient,amount) (#772)
- address(marketAddr).transfer(marketAmount) (#1147)
- address(teamAddr).transfer(teamAmount) (#1148)
State variables written after the call(s):
- _approve(sender,msg.sender,_allowances[sender][msg.sender].sub(amount,ERC20: transfer amount exceeds allowance)) (#773-780)
- _allowances[owner][spender] = amount (#859)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in GhostToken.constructor() (#667-711):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#692-693)
Event emitted after the call(s):
- Transfer(address(0),owner(),_totalSupply) (#708)
Reentrancy in GhostToken.transferFrom(address,address,uint256) (#767-782):
External calls:
- _transfer(sender,recipient,amount) (#772)
- (b1) = TOKEN.call(abi.encodeWithSignature(transfer(address,uint256),shareholder,amount)) (#978)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(rewardAmount,0,path_1,address(this),block.timestamp) (#1129-1135)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(BNBAmount,0,path_2,address(this),block.timestamp) (#1137-1143)
External calls sending eth:
- _transfer(sender,recipient,amount) (#772)
- address(marketAddr).transfer(marketAmount) (#1147)
- address(teamAddr).transfer(teamAmount) (#1148)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#860)
- _approve(sender,msg.sender,_allowances[sender][msg.sender].sub(amount,ERC20: transfer amount exceeds allowance)) (#773-780)
Apply the check-effects-interactions pattern.

Additional information: link

GhostToken._transfer(address,address,uint256) (#863-936) uses timestamp for comparisons
Dangerous comparisons:
- tokenBal >= 1000000000000000000 && from != address(this) && LPFeefenhong.add(minPeriod) <= block.timestamp (#930)
Avoid relying on block.timestamp.

Additional information: link

GhostToken.addBot(address) (#1091-1093) is never used and should be removed
Remove unused functions.

Additional information: link

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

Low level call in GhostToken.distributeDividend(address,uint256) (#977-980):
- (b1) = TOKEN.call(abi.encodeWithSignature(transfer(address,uint256),shareholder,amount)) (#978)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

Function SafeMath.DIV(uint256,uint256) (#216-221) is not in mixedCase
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#310) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#312) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#343) is not in mixedCase
Function IUniswapV2Router01.WETH() (#389) is not in mixedCase
Parameter GhostToken.setMaxTx(uint256).NewMaxTx (#973) is not in mixedCase
Function GhostToken._getName(uint256) (#981-984) is not in mixedCase
Parameter GhostToken.transferTokensAvg(address[],uint256)._tos (#1151) is not in mixedCase
Variable GhostToken.TOKEN (#606) is not in mixedCase
Variable GhostToken._name (#609) is not in mixedCase
Variable GhostToken._symbol (#610) is not in mixedCase
Variable GhostToken._decimals (#611) is not in mixedCase
Variable GhostToken._burnFee (#615) is not in mixedCase
Variable GhostToken._LPFee (#621) is not in mixedCase
Variable GhostToken._marketingFee (#624) is not in mixedCase
Variable GhostToken._totalFeeEscapeBurnFee (#626) is not in mixedCase
Variable GhostToken.LPFeefenhong (#634) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Reentrancy in GhostToken._transfer(address,address,uint256) (#863-936):
External calls:
- swapTokensForTokens(contractTokenBalance) (#916)
- address(marketAddr).transfer(marketAmount) (#1147)
- address(teamAddr).transfer(teamAmount) (#1148)
State variables written after the call(s):
- LPFeefenhong = block.timestamp (#933)
- setShare(fromAddress) (#925)
- _updated[shareholder] = false (#1002)
- _updated[shareholder] = true (#993)
- setShare(toAddress) (#926)
- _updated[shareholder] = false (#1002)
- _updated[shareholder] = true (#993)
- process(distributorGas) (#932)
- currentIndex = 0 (#952)
- currentIndex ++ (#957)
- currentIndex ++ (#966)
- fromAddress = from (#923)
- fromAddress = from (#928)
- setShare(fromAddress) (#925)
- shareholderIndexes[shareholder] = shareholders.length (#997)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#1006)
- setShare(toAddress) (#926)
- shareholderIndexes[shareholder] = shareholders.length (#997)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#1006)
- setShare(fromAddress) (#925)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#1005)
- shareholders.push(shareholder) (#998)
- shareholders.pop() (#1007)
- setShare(toAddress) (#926)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#1005)
- shareholders.push(shareholder) (#998)
- shareholders.pop() (#1007)
- toAddress = to (#924)
- toAddress = to (#929)
Reentrancy in GhostToken.transferFrom(address,address,uint256) (#767-782):
External calls:
- _transfer(sender,recipient,amount) (#772)
- address(marketAddr).transfer(marketAmount) (#1147)
- address(teamAddr).transfer(teamAmount) (#1148)
State variables written after the call(s):
- _approve(sender,msg.sender,_allowances[sender][msg.sender].sub(amount,ERC20: transfer amount exceeds allowance)) (#773-780)
- _allowances[owner][spender] = amount (#859)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#860)
- _approve(sender,msg.sender,_allowances[sender][msg.sender].sub(amount,ERC20: transfer amount exceeds allowance)) (#773-780)
Apply the check-effects-interactions pattern.

Additional information: link

Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#394) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#395)
Prevent variables from having similar names.

Additional information: link

GhostToken.slitherConstructorVariables() (#592-1170) uses literals with too many digits:
- deadAdress = 0x000000000000000000000000000000000000dEaD (#601)
GhostToken.slitherConstructorVariables() (#592-1170) uses literals with too many digits:
- distributorGas = 500000 (#632)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

GhostToken.deadAdress (#601) should be constant
GhostToken.distributorGas (#632) should be constant
GhostToken.minPeriod (#633) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#112-115)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#117-121)
name() should be declared external:
- GhostToken.name() (#713-715)
symbol() should be declared external:
- GhostToken.symbol() (#717-719)
decimals() should be declared external:
- GhostToken.decimals() (#721-723)
totalSupply() should be declared external:
- GhostToken.totalSupply() (#725-727)
transfer(address,uint256) should be declared external:
- GhostToken.transfer(address,uint256) (#733-740)
allowance(address,address) should be declared external:
- GhostToken.allowance(address,address) (#742-749)
approve(address,uint256) should be declared external:
- GhostToken.approve(address,uint256) (#751-765)
transferFrom(address,address,uint256) should be declared external:
- GhostToken.transferFrom(address,address,uint256) (#767-782)
increaseAllowance(address,uint256) should be declared external:
- GhostToken.increaseAllowance(address,uint256) (#784-795)
decreaseAllowance(address,uint256) should be declared external:
- GhostToken.decreaseAllowance(address,uint256) (#797-811)
isExcludedFromFee(address) should be declared external:
- GhostToken.isExcludedFromFee(address) (#815-817)
excludeFromFee(address) should be declared external:
- GhostToken.excludeFromFee(address) (#818-820)
includeInFee(address) should be declared external:
- GhostToken.includeInFee(address) (#822-824)
setMaxWalletLimite(uint256) should be declared external:
- GhostToken.setMaxWalletLimite(uint256) (#970-972)
setMaxTx(uint256) should be declared external:
- GhostToken.setMaxTx(uint256) (#973-976)
_getName(uint256) should be declared external:
- GhostToken._getName(uint256) (#981-984)
setBot(address,bool) should be declared external:
- GhostToken.setBot(address,bool) (#1083-1085)
getBot(address) should be declared external:
- GhostToken.getBot(address) (#1087-1089)
transferContracts() should be declared external:
- GhostToken.transferContracts() (#1095-1097)
setSwapTokensAtAmount(uint256) should be declared external:
- GhostToken.setSwapTokensAtAmount(uint256) (#1098-1100)
transferTokensAvg(address[],uint256) should be declared external:
- GhostToken.transferTokensAvg(address[],uint256) (#1151-1160)
testDividend(uint256) should be declared external:
- GhostToken.testDividend(uint256) (#1161-1163)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


Attempt to swap token was unsuccessful. For some reason it is untradeable. If token is not in presale stage and is not traded outside PancakeSwap, then it's a scam

Additional information: link


Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.


Average 30d PancakeSwap volume is low.


Average 30d number of PancakeSwap swaps is low.


Number of Binance Smart Chain (BSC) token holders is low.


Token is deployed only at one blockchain


Token has only one trading pair


Unable to find Telegram and Twitter accounts


Unable to find website, listings and other project-related information


Token is marked as scam (rug pull, honeypot, phishing, etc.)

Additional information: link


Young tokens have high risks of scam / price dump / death


Token has no active CoinGecko listing / rank


Token has no active CoinMarketCap listing / rank

Price for LW