MetaSnooker is a gaming token that enables users to play against other players online. The MetaSnooker token doubles up as a reward token to help encourage userbase retention and compounding profits. Future cosmetic game assets would include NFT cues, avatars, tables and rooms. The MetaSnooker game currently exists as an online P2E PVP with plans to move into the Metaverse where users can play, socialize and earn!
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
MetaSnooker.swapETHForTokens(uint256) (#1403-1418) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1410-1415)
MetaSnooker.addLiquidity(uint256,uint256) (#1464-1479) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1470-1477)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in MetaSnooker._transfer(address,address,uint256) (#1301-1400):
External calls:
- swapAndLiquify(swapTokens) (#1354)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1470-1477)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1454-1460)
- swapAndSendDividends(sellTokens) (#1357)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1410-1415)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1454-1460)
- (success) = address(dividendTracker).call{value: dividends}() (#1489)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1354)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1470-1477)
- swapAndSendDividends(sellTokens) (#1357)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1410-1415)
- marketingWallet.transfer(marketing) (#1487)
- (success) = address(dividendTracker).call{value: dividends}() (#1489)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (#1380)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#755)
- _balances[recipient] = _balances[recipient].add(amount) (#756)
- super._transfer(from,to,amount) (#1383)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#755)
- _balances[recipient] = _balances[recipient].add(amount) (#756)
- swapping = false (#1359)
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#1572-1588):
External calls:
- (success) = user.call{gas: 3000,value: _withdrawableDividend}() (#1577)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (#1580)
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.
MetaSnooker._transfer(address,address,uint256) (#1301-1400) performs a multiplication on the result of a division:
-fees = amount.mul(totalFees).div(100) (#1371)
-fees = fees.mul(sellFeeIncreaseFactor).div(100) (#1375)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in MetaSnooker.updateDividendTracker(address) (#1139-1157):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1146)
- newDividendTracker.excludeFromDividends(0x000000000000000000000000000000000000dEaD) (#1147)
- newDividendTracker.excludeFromDividends(uniswapV2Pair) (#1148)
- newDividendTracker.excludeFromDividends(address(this)) (#1151)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1152)
State variables written after the call(s):
- dividendTracker = newDividendTracker (#1156)
Apply the check-effects-interactions pattern.
Additional information: link
MetaSnooker._transfer(address,address,uint256).claims (#1391) is a local variable never initialized
MetaSnooker._transfer(address,address,uint256).lastProcessedIndex (#1391) is a local variable never initialized
MetaSnooker._transfer(address,address,uint256).iterations (#1391) 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
MetaSnooker.claim() (#1287-1289) ignores return value by dividendTracker.processAccount(msg.sender,false) (#1288)
MetaSnooker._transfer(address,address,uint256) (#1301-1400) ignores return value by dividendTracker.process(gas) (#1391-1396)
MetaSnooker.addLiquidity(uint256,uint256) (#1464-1479) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1470-1477)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.constructor(string,string)._name (#1529) shadows:
- ERC20._name (#577) (state variable)
DividendPayingToken.constructor(string,string)._symbol (#1529) shadows:
- ERC20._symbol (#578) (state variable)
Rename the local variables that shadow another component.
Additional information: link
MetaSnooker.setMaxSellTransactionAmount(uint256) (#1210-1214) should emit an event for:
- maxSellTransactionAmount = value * (10 ** 18) (#1212)
Emit an event for critical parameter changes.
Additional information: link
DividendPayingToken._withdrawDividendOfUser(address) (#1572-1588) has external calls inside a loop: (success) = user.call{gas: 3000,value: _withdrawableDividend}() (#1577)
Favor pull over push strategy for external calls.
Additional information: link
Variable 'MetaSnooker._transfer(address,address,uint256).claims (#1391)' in MetaSnooker._transfer(address,address,uint256) (#1301-1400) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1392)
Variable 'MetaSnooker._transfer(address,address,uint256).iterations (#1391)' in MetaSnooker._transfer(address,address,uint256) (#1301-1400) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1392)
Variable 'MetaSnooker._transfer(address,address,uint256).lastProcessedIndex (#1391)' in MetaSnooker._transfer(address,address,uint256) (#1301-1400) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1392)
Move all variable declarations prior to any usage of the variable, and ensure that reaching a variable declaration does not depend on some conditional if it is used unconditionally.
Additional information: link
Reentrancy in MetaSnooker._transfer(address,address,uint256) (#1301-1400):
External calls:
- swapAndLiquify(swapTokens) (#1354)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1470-1477)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1454-1460)
- swapAndSendDividends(sellTokens) (#1357)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1410-1415)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1454-1460)
- (success) = address(dividendTracker).call{value: dividends}() (#1489)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1354)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1470-1477)
- swapAndSendDividends(sellTokens) (#1357)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1410-1415)
- marketingWallet.transfer(marketing) (#1487)
- (success) = address(dividendTracker).call{value: dividends}() (#1489)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (#1357)
- _allowances[owner][spender] = amount (#821)
Reentrancy in MetaSnooker.constructor() (#1084-1133):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1104-1105)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#1108)
- uniswapV2Router = _uniswapV2Router (#1107)
Reentrancy in MetaSnooker.constructor() (#1084-1133):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1104-1105)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1110)
- dividendTracker.excludeFromDividends(pair) (#1204)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#1115)
- dividendTracker.excludeFromDividends(address(this)) (#1116)
- dividendTracker.excludeFromDividends(0x000000000000000000000000000000000000dEaD) (#1117)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#1119)
State variables written after the call(s):
- _mint(owner(),1000000000 * (10 ** 18)) (#1132)
- _balances[account] = _balances[account].add(amount) (#775)
- excludeFromFees(liquidityWallet,true) (#1122)
- _isExcludedFromFees[account] = excluded (#1167)
- excludeFromFees(address(this),true) (#1124)
- _isExcludedFromFees[account] = excluded (#1167)
- _isExcludedFromFees[owner()] = true (#1125)
- _mint(owner(),1000000000 * (10 ** 18)) (#1132)
- _totalSupply = _totalSupply.add(amount) (#774)
Reentrancy in MetaDividendTracker.processAccount(address,bool) (#1870-1880):
External calls:
- amount = _withdrawDividendOfUser(account) (#1871)
- (success) = user.call{gas: 3000,value: _withdrawableDividend}() (#1577)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (#1874)
Reentrancy in MetaSnooker.swapAndLiquify(uint256) (#1420-1441):
External calls:
- swapTokensForEth(half) (#1432)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1454-1460)
- addLiquidity(otherHalf,newBalance) (#1438)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1470-1477)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1438)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1470-1477)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#1438)
- _allowances[owner][spender] = amount (#821)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in MetaSnooker._setAutomatedMarketMakerPair(address,bool) (#1199-1208):
External calls:
- dividendTracker.excludeFromDividends(pair) (#1204)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1207)
Reentrancy in MetaSnooker._transfer(address,address,uint256) (#1301-1400):
External calls:
- swapAndLiquify(swapTokens) (#1354)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1470-1477)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1454-1460)
- swapAndSendDividends(sellTokens) (#1357)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1410-1415)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1454-1460)
- (success) = address(dividendTracker).call{value: dividends}() (#1489)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1354)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1470-1477)
- swapAndSendDividends(sellTokens) (#1357)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1410-1415)
- marketingWallet.transfer(marketing) (#1487)
- (success) = address(dividendTracker).call{value: dividends}() (#1489)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#822)
- swapAndSendDividends(sellTokens) (#1357)
- SendDividends(tokens,dividends,buyBack,marketing) (#1492)
- swapAndSendDividends(sellTokens) (#1357)
- SwapETHForTokens(amount,path) (#1417)
- swapAndSendDividends(sellTokens) (#1357)
- Transfer(sender,recipient,amount) (#757)
- super._transfer(from,address(this),fees) (#1380)
- Transfer(sender,recipient,amount) (#757)
- super._transfer(from,to,amount) (#1383)
Reentrancy in MetaSnooker._transfer(address,address,uint256) (#1301-1400):
External calls:
- swapAndLiquify(swapTokens) (#1354)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1470-1477)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1454-1460)
- swapAndSendDividends(sellTokens) (#1357)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1410-1415)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1454-1460)
- (success) = address(dividendTracker).call{value: dividends}() (#1489)
- dividendTracker.setBalance(address(from),balanceOf(from)) (#1385)
- dividendTracker.setBalance(address(to),balanceOf(to)) (#1386)
- dividendTracker.process(gas) (#1391-1396)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1354)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1470-1477)
- swapAndSendDividends(sellTokens) (#1357)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1410-1415)
- marketingWallet.transfer(marketing) (#1487)
- (success) = address(dividendTracker).call{value: dividends}() (#1489)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1392)
Reentrancy in MetaSnooker.constructor() (#1084-1133):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1104-1105)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1110)
- dividendTracker.excludeFromDividends(pair) (#1204)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1207)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1110)
Reentrancy in MetaSnooker.constructor() (#1084-1133):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1104-1105)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1110)
- dividendTracker.excludeFromDividends(pair) (#1204)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#1115)
- dividendTracker.excludeFromDividends(address(this)) (#1116)
- dividendTracker.excludeFromDividends(0x000000000000000000000000000000000000dEaD) (#1117)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#1119)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#1169)
- excludeFromFees(liquidityWallet,true) (#1122)
- ExcludeFromFees(account,excluded) (#1169)
- excludeFromFees(address(this),true) (#1124)
- Transfer(address(0),account,amount) (#776)
- _mint(owner(),1000000000 * (10 ** 18)) (#1132)
Reentrancy in MetaDividendTracker.processAccount(address,bool) (#1870-1880):
External calls:
- amount = _withdrawDividendOfUser(account) (#1871)
- (success) = user.call{gas: 3000,value: _withdrawableDividend}() (#1577)
Event emitted after the call(s):
- Claim(account,amount,automatic) (#1875)
Reentrancy in MetaSnooker.processDividendTracker(uint256) (#1282-1285):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (#1283)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (#1284)
Reentrancy in MetaSnooker.swapAndLiquify(uint256) (#1420-1441):
External calls:
- swapTokensForEth(half) (#1432)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1454-1460)
- addLiquidity(otherHalf,newBalance) (#1438)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1470-1477)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1438)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1470-1477)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#822)
- addLiquidity(otherHalf,newBalance) (#1438)
- SwapAndLiquify(half,newBalance,otherHalf) (#1440)
Reentrancy in MetaSnooker.swapAndSendDividends(uint256) (#1481-1494):
External calls:
- swapTokensForEth(tokens) (#1482)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1454-1460)
- swapETHForTokens(buyBack) (#1488)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1410-1415)
External calls sending eth:
- marketingWallet.transfer(marketing) (#1487)
- swapETHForTokens(buyBack) (#1488)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1410-1415)
Event emitted after the call(s):
- SwapETHForTokens(amount,path) (#1417)
- swapETHForTokens(buyBack) (#1488)
Reentrancy in MetaSnooker.swapAndSendDividends(uint256) (#1481-1494):
External calls:
- swapTokensForEth(tokens) (#1482)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1454-1460)
- swapETHForTokens(buyBack) (#1488)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1410-1415)
- (success) = address(dividendTracker).call{value: dividends}() (#1489)
External calls sending eth:
- marketingWallet.transfer(marketing) (#1487)
- swapETHForTokens(buyBack) (#1488)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1410-1415)
- (success) = address(dividendTracker).call{value: dividends}() (#1489)
Event emitted after the call(s):
- SendDividends(tokens,dividends,buyBack,marketing) (#1492)
Reentrancy in MetaSnooker.swapETHForTokens(uint256) (#1403-1418):
External calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1410-1415)
Event emitted after the call(s):
- SwapETHForTokens(amount,path) (#1417)
Reentrancy in MetaSnooker.updateDividendTracker(address) (#1139-1157):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1146)
- newDividendTracker.excludeFromDividends(0x000000000000000000000000000000000000dEaD) (#1147)
- newDividendTracker.excludeFromDividends(uniswapV2Pair) (#1148)
- newDividendTracker.excludeFromDividends(address(this)) (#1151)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1152)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (#1154)
Apply the check-effects-interactions pattern.
Additional information: link
MetaSnooker._transfer(address,address,uint256) (#1301-1400) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(cooldown[to] < block.timestamp,Cooldown has not been reached.) (#1329)
MetaDividendTracker.getAccount(address) (#1734-1777) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (#1774-1776)
MetaDividendTracker.canAutoClaim(uint256) (#1798-1804) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#1799)
- block.timestamp.sub(lastClaimTime) >= claimWait (#1803)
Avoid relying on block.timestamp.
Additional information: link
Context._msgData() (#216-219) is never used and should be removed
DividendPayingToken._transfer(address,address,uint256) (#1628-1634) is never used and should be removed
SafeMath.mod(uint256,uint256) (#128-130) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#144-147) is never used and should be removed
SafeMathInt.abs(int256) (#902-905) is never used and should be removed
SafeMathInt.div(int256,int256) (#873-879) is never used and should be removed
SafeMathInt.mul(int256,int256) (#861-868) is never used and should be removed
Remove unused functions.
Additional information: link
Low level call in MetaSnooker.swapAndSendDividends(uint256) (#1481-1494):
- (success) = address(dividendTracker).call{value: dividends}() (#1489)
Low level call in DividendPayingToken._withdrawDividendOfUser(address) (#1572-1588):
- (success) = user.call{gas: 3000,value: _withdrawableDividend}() (#1577)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#289) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#290) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#307) is not in mixedCase
Function IUniswapV2Router01.WETH() (#343) is not in mixedCase
Parameter MetaSnooker.setSwapAndLiquifyEnabled(bool)._enabled (#1495) is not in mixedCase
Variable MetaSnooker.BNBRewardsFee (#987) is not in mixedCase
Parameter DividendPayingToken.dividendOf(address)._owner (#1594) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (#1601) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (#1608) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (#1618) is not in mixedCase
Constant DividendPayingToken.magnitude (#1509) is not in UPPER_CASE_WITH_UNDERSCORES
Parameter MetaDividendTracker.changeLimit(uint256)._minimumTokenBalanceForDividends (#1695) is not in mixedCase
Parameter MetaDividendTracker.getAccount(address)._account (#1734) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#217)" inContext (#211-220)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in MetaSnooker._transfer(address,address,uint256) (#1301-1400):
External calls:
- swapAndSendDividends(sellTokens) (#1357)
- marketingWallet.transfer(marketing) (#1487)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1354)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1470-1477)
- swapAndSendDividends(sellTokens) (#1357)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1410-1415)
- marketingWallet.transfer(marketing) (#1487)
- (success) = address(dividendTracker).call{value: dividends}() (#1489)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (#1380)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#755)
- _balances[recipient] = _balances[recipient].add(amount) (#756)
- super._transfer(from,to,amount) (#1383)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#755)
- _balances[recipient] = _balances[recipient].add(amount) (#756)
- swapping = false (#1359)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1392)
- Transfer(sender,recipient,amount) (#757)
- super._transfer(from,address(this),fees) (#1380)
- Transfer(sender,recipient,amount) (#757)
- super._transfer(from,to,amount) (#1383)
Reentrancy in MetaSnooker.swapAndSendDividends(uint256) (#1481-1494):
External calls:
- marketingWallet.transfer(marketing) (#1487)
External calls sending eth:
- marketingWallet.transfer(marketing) (#1487)
- swapETHForTokens(buyBack) (#1488)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1410-1415)
Event emitted after the call(s):
- SwapETHForTokens(amount,path) (#1417)
- swapETHForTokens(buyBack) (#1488)
Reentrancy in MetaSnooker.swapAndSendDividends(uint256) (#1481-1494):
External calls:
- marketingWallet.transfer(marketing) (#1487)
External calls sending eth:
- marketingWallet.transfer(marketing) (#1487)
- swapETHForTokens(buyBack) (#1488)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1410-1415)
- (success) = address(dividendTracker).call{value: dividends}() (#1489)
Event emitted after the call(s):
- SendDividends(tokens,dividends,buyBack,marketing) (#1492)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#348) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#349)
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#1573) is too similar to MetaDividendTracker.getAccount(address).withdrawableDividends (#1739)
Prevent variables from having similar names.
Additional information: link
MetaSnooker.constructor() (#1084-1133) uses literals with too many digits:
- dividendTracker.excludeFromDividends(0x000000000000000000000000000000000000dEaD) (#1117)
MetaSnooker.constructor() (#1084-1133) uses literals with too many digits:
- _mint(owner(),1000000000 * (10 ** 18)) (#1132)
MetaSnooker.updateDividendTracker(address) (#1139-1157) uses literals with too many digits:
- newDividendTracker.excludeFromDividends(0x000000000000000000000000000000000000dEaD) (#1147)
MetaSnooker.setMaxSellTransactionAmount(uint256) (#1210-1214) uses literals with too many digits:
- require(bool,string)(value >= (1000000 * (10 ** 18)),MetaSnooker : Max Sell transaction must be more then 1% of the supply) (#1211)
MetaSnooker.updateGasForProcessing(uint256) (#1225-1230) uses literals with too many digits:
- require(bool)(newValue >= 200000 && newValue <= 500000) (#1226)
MetaSnooker.slitherConstructorVariables() (#967-1499) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#980)
MetaSnooker.slitherConstructorVariables() (#967-1499) uses literals with too many digits:
- maxSellTransactionAmount = 100000 * (10 ** 18) (#983)
MetaSnooker.slitherConstructorVariables() (#967-1499) uses literals with too many digits:
- gasForProcessing = 300000 (#1000)
MetaDividendTracker.getAccountAtIndex(uint256) (#1779-1796) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#1790)
MetaDividendTracker.slitherConstructorVariables() (#1671-1882) uses literals with too many digits:
- dev = 0x0000000000000000000000000000000000000000 (#1678)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SafeMathInt.MAX_INT256 (#856) is never used in SafeMathInt (#854-912)
Remove unused state variables.
Additional information: link
MetaDividendTracker.dev (#1678) should be constant
MetaSnooker.marketingWallet (#991) should be constant
MetaSnooker.swapTokensAtAmount (#984) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
get(IterableMapping.Map,address) should be declared external:
- IterableMapping.get(IterableMapping.Map,address) (#159-161)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (#163-168)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (#170-172)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (#176-178)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#258-261)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#267-271)
name() should be declared external:
- ERC20.name() (#597-599)
symbol() should be declared external:
- ERC20.symbol() (#605-607)
decimals() should be declared external:
- ERC20.decimals() (#622-624)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#648-651)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#656-658)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#667-670)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#685-693)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#707-710)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#726-729)
updateDividendTracker(address) should be declared external:
- MetaSnooker.updateDividendTracker(address) (#1139-1157)
updateUniswapV2Router(address) should be declared external:
- MetaSnooker.updateUniswapV2Router(address) (#1159-1163)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- MetaSnooker.excludeMultipleAccountsFromFees(address[],bool) (#1172-1178)
setCooldownEnabled(bool) should be declared external:
- MetaSnooker.setCooldownEnabled(bool) (#1180-1184)
setCooldownTime(uint256) should be declared external:
- MetaSnooker.setCooldownTime(uint256) (#1186-1190)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- MetaSnooker.setAutomatedMarketMakerPair(address,bool) (#1193-1197)
setMaxSellTransactionAmount(uint256) should be declared external:
- MetaSnooker.setMaxSellTransactionAmount(uint256) (#1210-1214)
updateLiquidityWallet(address) should be declared external:
- MetaSnooker.updateLiquidityWallet(address) (#1218-1223)
updateGasForProcessing(uint256) should be declared external:
- MetaSnooker.updateGasForProcessing(uint256) (#1225-1230)
withdrawableDividendOf(address) should be declared external:
- MetaSnooker.withdrawableDividendOf(address) (#1248-1250)
dividendTokenBalanceOf(address) should be declared external:
- MetaSnooker.dividendTokenBalanceOf(address) (#1252-1254)
setSwapAndLiquifyEnabled(bool) should be declared external:
- MetaSnooker.setSwapAndLiquifyEnabled(bool) (#1495-1498)
withdrawDividend() should be declared external:
- DividendPayingToken.withdrawDividend() (#1566-1568)
- MetaDividendTracker.withdrawDividend() (#1703-1705)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (#1594-1596)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (#1608-1610)
getAccountAtIndex(uint256) should be declared external:
- MetaDividendTracker.getAccountAtIndex(uint256) (#1779-1796)
process(uint256) should be declared external:
- MetaDividendTracker.process(uint256) (#1823-1868)
Use the external attribute for functions never called from the contract.
Additional information: link
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.
Contract has 10% buy tax and 12% sell tax.
Taxes are high (over 10%) but contract ownership is renounced.
Swap operations require suspiciously high gas. Contract logic is complex and may disguise some form of scam.
Number of Binance Smart Chain (BSC) token holders is low.
Token is deployed only at one blockchain
Token has only one trading pair
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Token has relatively low CoinMarketCap rank
Unable to find Youtube account
Unable to find Discord account