Notch is a community-focused, fairly launched DeFi Token. Notch brings smart innovation projects with great tokenomics and a fantastic community behind the token, and a solid vision of the future with clear goals of what we want to achieve.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
NNToken.addLiquidity(uint256,uint256) (#1641-1656) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1647-1654)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in NNToken._transfer(address,address,uint256) (#1505-1584):
External calls:
- swapAndSendToFee(marketingTokens,_marketingWalletAddress) (#1532)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1630-1636)
- swapAndSendToFee(charityTokens,_charityWalletAddress) (#1535)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1630-1636)
- swapAndLiquify(swapTokens) (#1538)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1647-1654)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1630-1636)
- swapAndSendDividends(sellTokens) (#1541)
- (success) = address(dividendTracker).call{value: dividends}() (#1662)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1630-1636)
External calls sending eth:
- swapAndSendToFee(marketingTokens,_marketingWalletAddress) (#1532)
- address(to).transfer(newBalance) (#1592)
- swapAndSendToFee(charityTokens,_charityWalletAddress) (#1535)
- address(to).transfer(newBalance) (#1592)
- swapAndLiquify(swapTokens) (#1538)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1647-1654)
- swapAndSendDividends(sellTokens) (#1541)
- (success) = address(dividendTracker).call{value: dividends}() (#1662)
State variables written after the call(s):
- super._transfer(from,deadWallet,burnfees) (#1565)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#655)
- _balances[recipient] = _balances[recipient].add(amount) (#656)
- super._transfer(from,address(this),fees) (#1566)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#655)
- _balances[recipient] = _balances[recipient].add(amount) (#656)
- super._transfer(from,to,amount) (#1569)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#655)
- _balances[recipient] = _balances[recipient].add(amount) (#656)
- swapping = false (#1543)
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#1095-1111):
External calls:
- (success) = user.call{gas: 3000,value: _withdrawableDividend}() (#1100)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (#1103)
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.
Context._msgData() (#99-102) is never used and should be removed
DividendPayingToken._transfer(address,address,uint256) (#1151-1157) is never used and should be removed
SafeMath.mod(uint256,uint256) (#303-305) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#319-322) is never used and should be removed
SafeMathInt.abs(int256) (#378-381) is never used and should be removed
SafeMathInt.div(int256,int256) (#349-355) is never used and should be removed
SafeMathInt.mul(int256,int256) (#337-344) is never used and should be removed
Remove unused functions.
Additional information: link
NNToken.stotalFees (#1220) is set pre-construction with a non-constant function or state variable:
- sBNBRewardsFee.add(sliquidityFee).add(smarketingFee).add(scharityFee)
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.6.2 (#3) allows old versions
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 DividendPayingToken._withdrawDividendOfUser(address) (#1095-1111):
- (success) = user.call{gas: 3000,value: _withdrawableDividend}() (#1100)
Low level call in NNToken.swapAndSendDividends(uint256) (#1658-1667):
- (success) = address(dividendTracker).call{value: dividends}() (#1662)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
NNToken.antiWhale(address,address,uint256) (#1263-1273) compares to a boolean constant:
-_excludedFromAntiWhale[from] == false && _excludedFromAntiWhale[to] == false (#1266-1267)
Remove the equality to the boolean constant.
Additional information: link
Reentrancy in NNToken.updateDividendTracker(address) (#1323-1338):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1330)
- newDividendTracker.excludeFromDividends(address(this)) (#1331)
- newDividendTracker.excludeFromDividends(owner()) (#1332)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1333)
State variables written after the call(s):
- dividendTracker = newDividendTracker (#1337)
Apply the check-effects-interactions pattern.
Additional information: link
NNToken._transfer(address,address,uint256).iterations (#1577) is a local variable never initialized
NNToken._transfer(address,address,uint256).claims (#1577) is a local variable never initialized
NNToken._transfer(address,address,uint256).lastProcessedIndex (#1577) 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
NNToken.claim() (#1493-1495) ignores return value by dividendTracker.processAccount(msg.sender,false) (#1494)
NNToken._transfer(address,address,uint256) (#1505-1584) ignores return value by dividendTracker.process(gas) (#1577-1582)
NNToken.addLiquidity(uint256,uint256) (#1641-1656) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1647-1654)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.constructor(string,string)._name (#1052) shadows:
- ERC20._name (#475) (state variable)
DividendPayingToken.constructor(string,string)._symbol (#1052) shadows:
- ERC20._symbol (#476) (state variable)
Rename the local variables that shadow another component.
Additional information: link
NNToken.updateUniswapV2Router(address)._uniswapV2Pair (#1344-1345) lacks a zero-check on :
- uniswapV2Pair = _uniswapV2Pair (#1346)
NNToken.setMarketingandCharityWallet(address,address).marketingwallet (#1369) lacks a zero-check on :
- _marketingWalletAddress = marketingwallet (#1370)
NNToken.setMarketingandCharityWallet(address,address).charitywallet (#1369) lacks a zero-check on :
- _charityWalletAddress = charitywallet (#1371)
Check that the address is not zero.
Additional information: link
DividendPayingToken._withdrawDividendOfUser(address) (#1095-1111) has external calls inside a loop: (success) = user.call{gas: 3000,value: _withdrawableDividend}() (#1100)
Favor pull over push strategy for external calls.
Additional information: link
Variable 'NNToken._transfer(address,address,uint256).lastProcessedIndex (#1577)' in NNToken._transfer(address,address,uint256) (#1505-1584) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1578)
Variable 'NNToken._transfer(address,address,uint256).claims (#1577)' in NNToken._transfer(address,address,uint256) (#1505-1584) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1578)
Variable 'NNToken._transfer(address,address,uint256).iterations (#1577)' in NNToken._transfer(address,address,uint256) (#1505-1584) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1578)
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 NNToken._transfer(address,address,uint256) (#1505-1584):
External calls:
- swapAndSendToFee(marketingTokens,_marketingWalletAddress) (#1532)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1630-1636)
- swapAndSendToFee(charityTokens,_charityWalletAddress) (#1535)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1630-1636)
External calls sending eth:
- swapAndSendToFee(marketingTokens,_marketingWalletAddress) (#1532)
- address(to).transfer(newBalance) (#1592)
- swapAndSendToFee(charityTokens,_charityWalletAddress) (#1535)
- address(to).transfer(newBalance) (#1592)
State variables written after the call(s):
- swapAndSendToFee(charityTokens,_charityWalletAddress) (#1535)
- _allowances[owner][spender] = amount (#721)
Reentrancy in NNToken._transfer(address,address,uint256) (#1505-1584):
External calls:
- swapAndSendToFee(marketingTokens,_marketingWalletAddress) (#1532)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1630-1636)
- swapAndSendToFee(charityTokens,_charityWalletAddress) (#1535)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1630-1636)
- swapAndLiquify(swapTokens) (#1538)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1647-1654)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1630-1636)
External calls sending eth:
- swapAndSendToFee(marketingTokens,_marketingWalletAddress) (#1532)
- address(to).transfer(newBalance) (#1592)
- swapAndSendToFee(charityTokens,_charityWalletAddress) (#1535)
- address(to).transfer(newBalance) (#1592)
- swapAndLiquify(swapTokens) (#1538)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1647-1654)
State variables written after the call(s):
- swapAndLiquify(swapTokens) (#1538)
- _allowances[owner][spender] = amount (#721)
Reentrancy in NNToken._transfer(address,address,uint256) (#1505-1584):
External calls:
- swapAndSendToFee(marketingTokens,_marketingWalletAddress) (#1532)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1630-1636)
- swapAndSendToFee(charityTokens,_charityWalletAddress) (#1535)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1630-1636)
- swapAndLiquify(swapTokens) (#1538)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1647-1654)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1630-1636)
- swapAndSendDividends(sellTokens) (#1541)
- (success) = address(dividendTracker).call{value: dividends}() (#1662)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1630-1636)
External calls sending eth:
- swapAndSendToFee(marketingTokens,_marketingWalletAddress) (#1532)
- address(to).transfer(newBalance) (#1592)
- swapAndSendToFee(charityTokens,_charityWalletAddress) (#1535)
- address(to).transfer(newBalance) (#1592)
- swapAndLiquify(swapTokens) (#1538)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1647-1654)
- swapAndSendDividends(sellTokens) (#1541)
- (success) = address(dividendTracker).call{value: dividends}() (#1662)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (#1541)
- _allowances[owner][spender] = amount (#721)
Reentrancy in NNToken.constructor() (#1275-1317):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1283-1284)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#1287)
- uniswapV2Router = _uniswapV2Router (#1286)
Reentrancy in NNToken.constructor() (#1275-1317):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1283-1284)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1289)
- dividendTracker.excludeFromDividends(pair) (#1389)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#1292)
- dividendTracker.excludeFromDividends(address(this)) (#1293)
- dividendTracker.excludeFromDividends(owner()) (#1294)
- dividendTracker.excludeFromDividends(deadWallet) (#1295)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#1296)
State variables written after the call(s):
- _mint(owner(),100000000000000 * (10 ** 9)) (#1316)
- _balances[account] = _balances[account].add(amount) (#675)
- setExcludedFromAntiWhale(owner(),true) (#1305)
- _excludedFromAntiWhale[account] = excluded (#1357)
- setExcludedFromAntiWhale(address(0),true) (#1306)
- _excludedFromAntiWhale[account] = excluded (#1357)
- setExcludedFromAntiWhale(_marketingWalletAddress,true) (#1307)
- _excludedFromAntiWhale[account] = excluded (#1357)
- setExcludedFromAntiWhale(_charityWalletAddress,true) (#1308)
- _excludedFromAntiWhale[account] = excluded (#1357)
- setExcludedFromAntiWhale(address(this),true) (#1309)
- _excludedFromAntiWhale[account] = excluded (#1357)
- setExcludedFromAntiWhale(deadWallet,true) (#1310)
- _excludedFromAntiWhale[account] = excluded (#1357)
- excludeFromFees(owner(),true) (#1299)
- _isExcludedFromFees[account] = excluded (#1351)
- excludeFromFees(address(this),true) (#1300)
- _isExcludedFromFees[account] = excluded (#1351)
- excludeFromFees(_marketingWalletAddress,true) (#1301)
- _isExcludedFromFees[account] = excluded (#1351)
- excludeFromFees(_charityWalletAddress,true) (#1302)
- _isExcludedFromFees[account] = excluded (#1351)
- _mint(owner(),100000000000000 * (10 ** 9)) (#1316)
- _totalSupply = _totalSupply.add(amount) (#674)
Reentrancy in NNDividendTracker.processAccount(address,bool) (#1866-1876):
External calls:
- amount = _withdrawDividendOfUser(account) (#1867)
- (success) = user.call{gas: 3000,value: _withdrawableDividend}() (#1100)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (#1870)
Reentrancy in NNToken.swapAndLiquify(uint256) (#1595-1616):
External calls:
- swapTokensForEth(half) (#1607)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1630-1636)
- addLiquidity(otherHalf,newBalance) (#1613)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1647-1654)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1613)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1647-1654)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#1613)
- _allowances[owner][spender] = amount (#721)
Reentrancy in NNToken.updateUniswapV2Router(address) (#1340-1347):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (#1344-1345)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#1346)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in NNToken._setAutomatedMarketMakerPair(address,bool) (#1384-1393):
External calls:
- dividendTracker.excludeFromDividends(pair) (#1389)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1392)
Reentrancy in NNToken._transfer(address,address,uint256) (#1505-1584):
External calls:
- swapAndSendToFee(marketingTokens,_marketingWalletAddress) (#1532)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1630-1636)
- swapAndSendToFee(charityTokens,_charityWalletAddress) (#1535)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1630-1636)
External calls sending eth:
- swapAndSendToFee(marketingTokens,_marketingWalletAddress) (#1532)
- address(to).transfer(newBalance) (#1592)
- swapAndSendToFee(charityTokens,_charityWalletAddress) (#1535)
- address(to).transfer(newBalance) (#1592)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#722)
- swapAndSendToFee(charityTokens,_charityWalletAddress) (#1535)
Reentrancy in NNToken._transfer(address,address,uint256) (#1505-1584):
External calls:
- swapAndSendToFee(marketingTokens,_marketingWalletAddress) (#1532)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1630-1636)
- swapAndSendToFee(charityTokens,_charityWalletAddress) (#1535)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1630-1636)
- swapAndLiquify(swapTokens) (#1538)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1647-1654)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1630-1636)
External calls sending eth:
- swapAndSendToFee(marketingTokens,_marketingWalletAddress) (#1532)
- address(to).transfer(newBalance) (#1592)
- swapAndSendToFee(charityTokens,_charityWalletAddress) (#1535)
- address(to).transfer(newBalance) (#1592)
- swapAndLiquify(swapTokens) (#1538)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1647-1654)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#722)
- swapAndLiquify(swapTokens) (#1538)
- SwapAndLiquify(half,newBalance,otherHalf) (#1615)
- swapAndLiquify(swapTokens) (#1538)
Reentrancy in NNToken._transfer(address,address,uint256) (#1505-1584):
External calls:
- swapAndSendToFee(marketingTokens,_marketingWalletAddress) (#1532)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1630-1636)
- swapAndSendToFee(charityTokens,_charityWalletAddress) (#1535)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1630-1636)
- swapAndLiquify(swapTokens) (#1538)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1647-1654)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1630-1636)
- swapAndSendDividends(sellTokens) (#1541)
- (success) = address(dividendTracker).call{value: dividends}() (#1662)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1630-1636)
External calls sending eth:
- swapAndSendToFee(marketingTokens,_marketingWalletAddress) (#1532)
- address(to).transfer(newBalance) (#1592)
- swapAndSendToFee(charityTokens,_charityWalletAddress) (#1535)
- address(to).transfer(newBalance) (#1592)
- swapAndLiquify(swapTokens) (#1538)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1647-1654)
- swapAndSendDividends(sellTokens) (#1541)
- (success) = address(dividendTracker).call{value: dividends}() (#1662)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#722)
- swapAndSendDividends(sellTokens) (#1541)
- SendDividends(tokens,dividends) (#1665)
- swapAndSendDividends(sellTokens) (#1541)
- Transfer(sender,recipient,amount) (#657)
- super._transfer(from,to,amount) (#1569)
- Transfer(sender,recipient,amount) (#657)
- super._transfer(from,address(this),fees) (#1566)
- Transfer(sender,recipient,amount) (#657)
- super._transfer(from,deadWallet,burnfees) (#1565)
Reentrancy in NNToken._transfer(address,address,uint256) (#1505-1584):
External calls:
- swapAndSendToFee(marketingTokens,_marketingWalletAddress) (#1532)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1630-1636)
- swapAndSendToFee(charityTokens,_charityWalletAddress) (#1535)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1630-1636)
- swapAndLiquify(swapTokens) (#1538)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1647-1654)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1630-1636)
- swapAndSendDividends(sellTokens) (#1541)
- (success) = address(dividendTracker).call{value: dividends}() (#1662)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1630-1636)
- dividendTracker.setBalance(address(from),balanceOf(from)) (#1571)
- dividendTracker.setBalance(address(to),balanceOf(to)) (#1572)
- dividendTracker.process(gas) (#1577-1582)
External calls sending eth:
- swapAndSendToFee(marketingTokens,_marketingWalletAddress) (#1532)
- address(to).transfer(newBalance) (#1592)
- swapAndSendToFee(charityTokens,_charityWalletAddress) (#1535)
- address(to).transfer(newBalance) (#1592)
- swapAndLiquify(swapTokens) (#1538)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1647-1654)
- swapAndSendDividends(sellTokens) (#1541)
- (success) = address(dividendTracker).call{value: dividends}() (#1662)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1578)
Reentrancy in NNToken.constructor() (#1275-1317):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1283-1284)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1289)
- dividendTracker.excludeFromDividends(pair) (#1389)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1392)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1289)
Reentrancy in NNToken.constructor() (#1275-1317):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1283-1284)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1289)
- dividendTracker.excludeFromDividends(pair) (#1389)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#1292)
- dividendTracker.excludeFromDividends(address(this)) (#1293)
- dividendTracker.excludeFromDividends(owner()) (#1294)
- dividendTracker.excludeFromDividends(deadWallet) (#1295)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#1296)
Event emitted after the call(s):
- ExcludeFromAntiWhale(account,excluded) (#1358)
- setExcludedFromAntiWhale(deadWallet,true) (#1310)
- ExcludeFromAntiWhale(account,excluded) (#1358)
- setExcludedFromAntiWhale(address(this),true) (#1309)
- ExcludeFromAntiWhale(account,excluded) (#1358)
- setExcludedFromAntiWhale(_charityWalletAddress,true) (#1308)
- ExcludeFromAntiWhale(account,excluded) (#1358)
- setExcludedFromAntiWhale(_marketingWalletAddress,true) (#1307)
- ExcludeFromAntiWhale(account,excluded) (#1358)
- setExcludedFromAntiWhale(address(0),true) (#1306)
- ExcludeFromAntiWhale(account,excluded) (#1358)
- setExcludedFromAntiWhale(owner(),true) (#1305)
- ExcludeFromFees(account,excluded) (#1353)
- excludeFromFees(_charityWalletAddress,true) (#1302)
- ExcludeFromFees(account,excluded) (#1353)
- excludeFromFees(_marketingWalletAddress,true) (#1301)
- ExcludeFromFees(account,excluded) (#1353)
- excludeFromFees(address(this),true) (#1300)
- ExcludeFromFees(account,excluded) (#1353)
- excludeFromFees(owner(),true) (#1299)
- Transfer(address(0),account,amount) (#676)
- _mint(owner(),100000000000000 * (10 ** 9)) (#1316)
Reentrancy in NNDividendTracker.processAccount(address,bool) (#1866-1876):
External calls:
- amount = _withdrawDividendOfUser(account) (#1867)
- (success) = user.call{gas: 3000,value: _withdrawableDividend}() (#1100)
Event emitted after the call(s):
- Claim(account,amount,automatic) (#1871)
Reentrancy in NNToken.processDividendTracker(uint256) (#1488-1491):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (#1489)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (#1490)
Reentrancy in NNToken.swapAndLiquify(uint256) (#1595-1616):
External calls:
- swapTokensForEth(half) (#1607)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1630-1636)
- addLiquidity(otherHalf,newBalance) (#1613)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1647-1654)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1613)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1647-1654)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#722)
- addLiquidity(otherHalf,newBalance) (#1613)
- SwapAndLiquify(half,newBalance,otherHalf) (#1615)
Reentrancy in NNToken.swapAndSendDividends(uint256) (#1658-1667):
External calls:
- swapTokensForEth(tokens) (#1660)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1630-1636)
- (success) = address(dividendTracker).call{value: dividends}() (#1662)
External calls sending eth:
- (success) = address(dividendTracker).call{value: dividends}() (#1662)
Event emitted after the call(s):
- SendDividends(tokens,dividends) (#1665)
Reentrancy in NNToken.updateDividendTracker(address) (#1323-1338):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1330)
- newDividendTracker.excludeFromDividends(address(this)) (#1331)
- newDividendTracker.excludeFromDividends(owner()) (#1332)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1333)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (#1335)
Apply the check-effects-interactions pattern.
Additional information: link
NNDividendTracker.getAccount(address) (#1730-1773) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (#1770-1772)
NNDividendTracker.canAutoClaim(uint256) (#1794-1800) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#1795)
- block.timestamp.sub(lastClaimTime) >= claimWait (#1799)
Avoid relying on block.timestamp.
Additional information: link
Function IUniswapV2Router01.WETH() (#749) is not in mixedCase
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#916) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#917) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#934) is not in mixedCase
Parameter DividendPayingToken.dividendOf(address)._owner (#1117) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (#1124) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (#1131) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (#1141) is not in mixedCase
Constant DividendPayingToken.magnitude (#1032) is not in UPPER_CASE_WITH_UNDERSCORES
Variable NNToken._isBlacklisted (#1209) is not in mixedCase
Variable NNToken._marketingWalletAddress (#1222) is not in mixedCase
Variable NNToken._charityWalletAddress (#1223) is not in mixedCase
Parameter NNDividendTracker.getAccount(address)._account (#1730) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#100)" inContext (#94-103)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in NNToken._transfer(address,address,uint256) (#1505-1584):
External calls:
- swapAndSendToFee(marketingTokens,_marketingWalletAddress) (#1532)
- address(to).transfer(newBalance) (#1592)
- swapAndSendToFee(charityTokens,_charityWalletAddress) (#1535)
- address(to).transfer(newBalance) (#1592)
State variables written after the call(s):
- swapAndSendToFee(charityTokens,_charityWalletAddress) (#1535)
- _allowances[owner][spender] = amount (#721)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#722)
- swapAndSendToFee(charityTokens,_charityWalletAddress) (#1535)
Reentrancy in NNToken._transfer(address,address,uint256) (#1505-1584):
External calls:
- swapAndSendToFee(marketingTokens,_marketingWalletAddress) (#1532)
- address(to).transfer(newBalance) (#1592)
- swapAndSendToFee(charityTokens,_charityWalletAddress) (#1535)
- address(to).transfer(newBalance) (#1592)
External calls sending eth:
- swapAndSendToFee(marketingTokens,_marketingWalletAddress) (#1532)
- address(to).transfer(newBalance) (#1592)
- swapAndSendToFee(charityTokens,_charityWalletAddress) (#1535)
- address(to).transfer(newBalance) (#1592)
- swapAndLiquify(swapTokens) (#1538)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1647-1654)
State variables written after the call(s):
- swapAndLiquify(swapTokens) (#1538)
- _allowances[owner][spender] = amount (#721)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#722)
- swapAndLiquify(swapTokens) (#1538)
- SwapAndLiquify(half,newBalance,otherHalf) (#1615)
- swapAndLiquify(swapTokens) (#1538)
Reentrancy in NNToken._transfer(address,address,uint256) (#1505-1584):
External calls:
- swapAndSendToFee(marketingTokens,_marketingWalletAddress) (#1532)
- address(to).transfer(newBalance) (#1592)
- swapAndSendToFee(charityTokens,_charityWalletAddress) (#1535)
- address(to).transfer(newBalance) (#1592)
External calls sending eth:
- swapAndSendToFee(marketingTokens,_marketingWalletAddress) (#1532)
- address(to).transfer(newBalance) (#1592)
- swapAndSendToFee(charityTokens,_charityWalletAddress) (#1535)
- address(to).transfer(newBalance) (#1592)
- swapAndLiquify(swapTokens) (#1538)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1647-1654)
- swapAndSendDividends(sellTokens) (#1541)
- (success) = address(dividendTracker).call{value: dividends}() (#1662)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (#1541)
- _allowances[owner][spender] = amount (#721)
- super._transfer(from,deadWallet,burnfees) (#1565)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#655)
- _balances[recipient] = _balances[recipient].add(amount) (#656)
- super._transfer(from,address(this),fees) (#1566)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#655)
- _balances[recipient] = _balances[recipient].add(amount) (#656)
- super._transfer(from,to,amount) (#1569)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#655)
- _balances[recipient] = _balances[recipient].add(amount) (#656)
- swapping = false (#1543)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#722)
- swapAndSendDividends(sellTokens) (#1541)
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1578)
- SendDividends(tokens,dividends) (#1665)
- swapAndSendDividends(sellTokens) (#1541)
- Transfer(sender,recipient,amount) (#657)
- super._transfer(from,to,amount) (#1569)
- Transfer(sender,recipient,amount) (#657)
- super._transfer(from,address(this),fees) (#1566)
- Transfer(sender,recipient,amount) (#657)
- super._transfer(from,deadWallet,burnfees) (#1565)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#754) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#755)
Variable NNToken.sBNBRewardsFee (#1211) is too similar to NNToken.tBNBRewardsFee (#1218)
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#1096) is too similar to NNDividendTracker.getAccount(address).withdrawableDividends (#1735)
Prevent variables from having similar names.
Additional information: link
NNToken.constructor() (#1275-1317) uses literals with too many digits:
- _mint(owner(),100000000000000 * (10 ** 9)) (#1316)
NNToken.updateGasForProcessing(uint256) (#1396-1401) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 500000,NN: gasForProcessing must be between 200,000 and 500,000) (#1397)
NNToken.slitherConstructorVariables() (#1195-1668) uses literals with too many digits:
- deadWallet = 0x000000000000000000000000000000000000dEaD (#1205)
NNToken.slitherConstructorVariables() (#1195-1668) uses literals with too many digits:
- swapTokensAtAmount = 2000000 * (10 ** 9) (#1207)
NNToken.slitherConstructorVariables() (#1195-1668) uses literals with too many digits:
- gasForProcessing = 300000 (#1231)
NNDividendTracker.constructor() (#1690-1693) uses literals with too many digits:
- minimumTokenBalanceForDividends = 200000 * (10 ** 9) (#1692)
NNDividendTracker.getAccountAtIndex(uint256) (#1775-1792) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#1786)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SafeMathInt.MAX_INT256 (#332) is never used in SafeMathInt (#330-388)
Remove unused state variables.
Additional information: link
NNToken.deadWallet (#1205) should be constant
NNToken.maxSellAmountRate (#1228) should be constant
NNToken.maxTransferAmountRate (#1226) should be constant
NNToken.sBNBRewardsFee (#1211) should be constant
NNToken.sburnFee (#1215) should be constant
NNToken.scharityFee (#1214) should be constant
NNToken.sliquidityFee (#1212) should be constant
NNToken.smarketingFee (#1213) should be constant
NNToken.tBNBRewardsFee (#1218) should be constant
NNToken.tburnFee (#1217) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#142-145)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#151-155)
get(IterableMapping.Map,address) should be declared external:
- IterableMapping.get(IterableMapping.Map,address) (#413-415)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (#417-422)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (#424-426)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (#430-432)
name() should be declared external:
- ERC20.name() (#497-499)
symbol() should be declared external:
- ERC20.symbol() (#505-507)
decimals() should be declared external:
- ERC20.decimals() (#522-524)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#548-551)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#556-558)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#567-570)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#585-593)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#607-610)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#626-629)
withdrawDividend() should be declared external:
- DividendPayingToken.withdrawDividend() (#1089-1091)
- NNDividendTracker.withdrawDividend() (#1699-1701)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (#1117-1119)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (#1131-1133)
updateDividendTracker(address) should be declared external:
- NNToken.updateDividendTracker(address) (#1323-1338)
updateUniswapV2Router(address) should be declared external:
- NNToken.updateUniswapV2Router(address) (#1340-1347)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- NNToken.excludeMultipleAccountsFromFees(address[],bool) (#1361-1367)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- NNToken.setAutomatedMarketMakerPair(address,bool) (#1374-1378)
updateGasForProcessing(uint256) should be declared external:
- NNToken.updateGasForProcessing(uint256) (#1396-1401)
isExcludedFromFees(address) should be declared external:
- NNToken.isExcludedFromFees(address) (#1442-1444)
withdrawableDividendOf(address) should be declared external:
- NNToken.withdrawableDividendOf(address) (#1450-1452)
dividendTokenBalanceOf(address) should be declared external:
- NNToken.dividendTokenBalanceOf(address) (#1454-1456)
getAccountAtIndex(uint256) should be declared external:
- NNDividendTracker.getAccountAtIndex(uint256) (#1775-1792)
process(uint256) should be declared external:
- NNDividendTracker.process(uint256) (#1819-1864)
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.
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 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 token on CoinGecko
Additional information: link
Unable to find token on CoinMarketCap
Additional information: link
Unable to find token contract audit
Unable to find audit link on the website
Unable to find whitepaper link on the website
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
Young tokens have high risks of price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Last post in Twitter was more than 30 days ago
Unable to find Youtube account
Unable to find Discord account