Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
SQUIDGAMEPUMP.addLiquidity(uint256,uint256) (#841-854) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#846-853)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
SQUIDGAMEPUMP._transfer(address,address,uint256) (#667-784) uses a weak PRNG: "_bBSLimit = _bBSLimitMin + uint256(keccak256(bytes)(abi.encodePacked(block.timestamp,block.difficulty))) % (_bBSLimitMax - _bBSLimitMin + 1) (#728)"
Do not use block.timestamp, now or blockhash as a source of randomness
Additional information: link
Reentrancy in SQUIDGAMEPUMP._transfer(address,address,uint256) (#667-784):
External calls:
- swapTokens(contractTokenBalance) (#696)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#813-819)
- buyBackTokens(_bBSLimit) (#731)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#831-836)
External calls sending eth:
- swapTokens(contractTokenBalance) (#696)
- recipient.transfer(amount) (#1137)
- buyBackTokens(_bBSLimit) (#731)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#831-836)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#783)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#960)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#885)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#876)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#896)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#906)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#877)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#897)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#887)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#908)
- _tokenTransfer(from,to,amount,takeFee) (#783)
- _rTotal = _rTotal.sub(rFee) (#915)
- _tokenTransfer(from,to,amount,takeFee) (#783)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#962)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#895)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#905)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#886)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#907)
- buyBackTokens(_bBSLimit) (#731)
- inSwapAndLiquify = true (#513)
- inSwapAndLiquify = false (#515)
Apply the check-effects-interactions pattern.
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.
SQUIDGAMEPUMP._transfer(address,address,uint256).sellHistory (#683) 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
SQUIDGAMEPUMP.addLiquidity(uint256,uint256) (#841-854) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#846-853)
Ensure that all the return values of the function calls are used.
Additional information: link
SQUIDGAMEPUMP._approve(address,address,uint256).owner (#659) shadows:
- Ownable.owner() (#158-160) (function)
Rename the local variables that shadow another component.
Additional information: link
SQUIDGAMEPUMP.setNumTokensSellToAddToBuyBack(uint256) (#1099-1101) should emit an event for:
- minimumTokensBeforeSwap = _minimumTokensBeforeSwap (#1100)
Emit an event for critical parameter changes.
Additional information: link
SQUIDGAMEPUMP.setMarketingAddress(address)._marketingAddress (#1103) lacks a zero-check on :
- marketingAddress = address(_marketingAddress) (#1104)
Check that the address is not zero.
Additional information: link
Reentrancy in SQUIDGAMEPUMP.transferFrom(address,address,uint256) (#577-581):
External calls:
- _transfer(sender,recipient,amount) (#578)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#831-836)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#813-819)
External calls sending eth:
- _transfer(sender,recipient,amount) (#578)
- recipient.transfer(amount) (#1137)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#831-836)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#579)
- _allowances[owner][spender] = amount (#663)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in SQUIDGAMEPUMP.transferFrom(address,address,uint256) (#577-581):
External calls:
- _transfer(sender,recipient,amount) (#578)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#831-836)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#813-819)
External calls sending eth:
- _transfer(sender,recipient,amount) (#578)
- recipient.transfer(amount) (#1137)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#831-836)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#664)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#579)
Apply the check-effects-interactions pattern.
Additional information: link
SQUIDGAMEPUMP._removeOldSellHistories() (#1016-1038) uses timestamp for comparisons
Dangerous comparisons:
- _sellHistories[j].time >= maxStartTimeForHistories (#1022)
Avoid relying on block.timestamp.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#125-142) uses assembly
- INLINE ASM (#134-137)
Do not use evm assembly.
Additional information: link
SafeMath.mod(uint256,uint256,string) (#80-83) is never used and should be removed
Remove unused functions.
Additional information: link
SQUIDGAMEPUMP._previousLiquidityFee (#454) 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
solc-0.8.4 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._functionCallWithValue(address,bytes,uint256,string) (#125-142):
- (success,returndata) = target.call{value: weiValue}(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
Variable SQUIDGAMEPUMP._isEnabledBuyBackAndBurn (#490) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#12)" inContext (#6-15)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in SQUIDGAMEPUMP.transferFrom(address,address,uint256) (#577-581):
External calls:
- _transfer(sender,recipient,amount) (#578)
- recipient.transfer(amount) (#1137)
External calls sending eth:
- _transfer(sender,recipient,amount) (#578)
- recipient.transfer(amount) (#1137)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#831-836)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#579)
- _allowances[owner][spender] = amount (#663)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#664)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#579)
Apply the check-effects-interactions pattern.
Additional information: link
Variable SQUIDGAMEPUMP._transferFromExcluded(address,address,uint256).rTransferAmount (#894) is too similar to SQUIDGAMEPUMP._transferStandard(address,address,uint256).tTransferAmount (#875)
Prevent variables from having similar names.
Additional information: link
SQUIDGAMEPUMP.slitherConstructorVariables() (#411-1189) uses literals with too many digits:
- minimumTokensBeforeSwap = 200000 * 10 ** 6 * 10 ** 9 (#473)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SQUIDGAMEPUMP.deadAddress (#416) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
transferForeignToken(address,address) should be declared external:
- SQUIDGAMEPUMP.transferForeignToken(address,address) (#1159-1163)
Use the external attribute for functions never called from the contract.
Additional information: link
Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive. Ignore for presale.
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
Young tokens have high risks of price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Unable to find Telegram and Twitter accounts