GME.sendBNBToMarketing(uint256) (#1041-1044) sends eth to arbitrary user
Dangerous calls:
- _marketingWalletAddress.transfer(address(this).balance) (#1043)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in GME._transfer(address,address,uint256) (#1062-1109):
External calls:
- swapAndLiquify(contractTokenBalance) (#1096)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1160-1167)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1146-1152)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#1096)
- _charityWalletAddress.transfer(address(this).balance) (#1038)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1160-1167)
- _marketingWalletAddress.transfer(address(this).balance) (#1043)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#1108)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#1000)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1193)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1202)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1194)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1213)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#916)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1204)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1214)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#918)
- _tokenTransfer(from,to,amount,takeFee) (#1108)
- _rTotal = _rTotal.sub(rFee) (#955)
- _tokenTransfer(from,to,amount,takeFee) (#1108)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#1002)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1212)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#915)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1203)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#917)
Apply the check-effects-interactions pattern.
Additional information: link
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
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.
GME.swapAndLiquify(uint256) (#1111-1135) performs a multiplication on the result of a division:
-sendBNBToCharity(portionForFees.div(3).mul(2)) (#1131)
Consider ordering multiplication before division.
Additional information: link
GME._transfer(address,address,uint256) (#1062-1109) uses tx.origin for authorization: require(bool,string)(! _isBlackListedBot[tx.origin],You are blacklisted) (#1072)
Do not use tx.origin for authorization.
Additional information: link
GME.addLiquidity(uint256,uint256) (#1155-1168) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1160-1167)
Ensure that all the return values of the function calls are used.
Additional information: link
GME._approve(address,address,uint256).owner (#1054) shadows:
- Ownable.owner() (#423-425) (function)
Rename the local variables that shadow another component.
Additional information: link
GME.setMaxTxPercent(uint256) (#940-944) should emit an event for:
- _maxTxAmount = _tTotal.mul(maxTxPercent).div(10 ** 2) (#941-943)
Emit an event for critical parameter changes.
Additional information: link
GME._setMarketingWallet(address).marketingWalletAddress (#1050) lacks a zero-check on :
- _marketingWalletAddress = marketingWalletAddress (#1051)
Check that the address is not zero.
Additional information: link
Reentrancy in GME.transferFrom(address,address,uint256) (#822-826):
External calls:
- _transfer(sender,recipient,amount) (#823)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1160-1167)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1146-1152)
External calls sending eth:
- _transfer(sender,recipient,amount) (#823)
- _charityWalletAddress.transfer(address(this).balance) (#1038)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1160-1167)
- _marketingWalletAddress.transfer(address(this).balance) (#1043)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#824)
- _allowances[owner][spender] = amount (#1058)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in GME.transferFrom(address,address,uint256) (#822-826):
External calls:
- _transfer(sender,recipient,amount) (#823)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1160-1167)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1146-1152)
External calls sending eth:
- _transfer(sender,recipient,amount) (#823)
- _charityWalletAddress.transfer(address(this).balance) (#1038)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1160-1167)
- _marketingWalletAddress.transfer(address(this).balance) (#1043)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1059)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#824)
Apply the check-effects-interactions pattern.
Additional information: link
Ownable.unlock() (#470-475) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(now > _lockTime,Contract is locked until 7 days) (#472)
Avoid relying on block.timestamp.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#368-389) uses assembly
- INLINE ASM (#381-384)
Do not use evm assembly.
Additional information: link
SafeMath.mod(uint256,uint256,string) (#236-239) is never used and should be removed
Remove unused functions.
Additional information: link
GME._previousLiquidityFee (#720) is set pre-construction with a non-constant function or state variable:
- _liquidityFee
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
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#368-389):
- (success,returndata) = target.call{value: weiValue}(data) (#372)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable GME._maxTxAmount (#730) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#248)" inContext (#242-251)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in GME.transferFrom(address,address,uint256) (#822-826):
External calls:
- _transfer(sender,recipient,amount) (#823)
- _charityWalletAddress.transfer(address(this).balance) (#1038)
- _marketingWalletAddress.transfer(address(this).balance) (#1043)
External calls sending eth:
- _transfer(sender,recipient,amount) (#823)
- _charityWalletAddress.transfer(address(this).balance) (#1038)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1160-1167)
- _marketingWalletAddress.transfer(address(this).balance) (#1043)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#824)
- _allowances[owner][spender] = amount (#1058)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1059)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#824)
Apply the check-effects-interactions pattern.
Additional information: link
Variable GME.reflectionFromToken(uint256,bool).rTransferAmount (#861) is too similar to GME._transferFromExcluded(address,address,uint256).tTransferAmount (#1211)
Prevent variables from having similar names.
Additional information: link
GME.slitherConstructorVariables() (#692-1224) uses literals with too many digits:
- numTokensSellToAddToLiquidity = 30000000 * 10 ** 1 * 10 ** 9 (#731)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
GME.numTokensSellToAddToLiquidity (#731) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
isExcludedFromFee(address) should be declared external:
- GME.isExcludedFromFee(address) (#1032-1034)
Use the external attribute for functions never called from the contract.
Additional information: link
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Token is deployed only at one blockchain
Token has only one trading pair
Unable to find PancakeSwap trading pair to compute liquidity.
Unable to find PancakeSwap trading pair to compute volume.
Unable to find PancakeSwap trading pair to compute number of swaps.
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 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
Token has a considerable age, but average PancakeSwap 30d trading volume is low
Young tokens have high risks of price dump / death
Unable to find Telegram and Twitter accounts