NyanCake Token Logo

NYAN [NyanCake] Token

About NYAN

Listings

Not Found
Token 10 months

Website

Not Found

Description

Not Found

Social

Not Found

Laser Scorebeta Last Audit: 27 January 2022

report
Token seems to be anonymous. As long as we are unable to find website score is limited.


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

NyanCake.addLiquidity(uint256,uint256) (#1714-1729) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1720-1727)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in NyanCake._transfer(address,address,uint256) (#1559-1639):
External calls:
- swapAndSendToFee(marketingTokens) (#1595)
- IERC20(CAKE).transfer(_marketingWalletAddress,newBalance) (#1647)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1705-1711)
- swapAndLiquify(swapTokens) (#1598)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1720-1727)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1685-1691)
- swapAndSendDividends(sellTokens) (#1601)
- success = IERC20(CAKE).transfer(address(dividendTracker),dividends) (#1734)
- dividendTracker.distributeCAKEDividends(dividends) (#1737)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1705-1711)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1598)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1720-1727)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (#1621)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#1019)
- _balances[recipient] = _balances[recipient].add(amount) (#1020)
- super._transfer(from,to,amount) (#1624)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#1019)
- _balances[recipient] = _balances[recipient].add(amount) (#1020)
- swapping = false (#1603)
Apply the check-effects-interactions pattern.

Additional information: link

NyanCake.swapAndSendToFee(uint256) (#1641-1648) ignores return value by IERC20(CAKE).transfer(_marketingWalletAddress,newBalance) (#1647)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.

Additional information: link


Combination 2: Unchecked transfer + 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.


Combination 3: Reentrancy vulnerabilities + Unchecked transfer vulnerability. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.


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.

Redundant expression "this (#44)" inContext (#38-47)
Remove redundant statements if they congest code but offer no value.

Additional information: link

NyanCake.claim() (#1546-1548) ignores return value by dividendTracker.processAccount(msg.sender,false) (#1547)
NyanCake._transfer(address,address,uint256) (#1559-1639) ignores return value by dividendTracker.process(gas) (#1632-1637)
NyanCake.addLiquidity(uint256,uint256) (#1714-1729) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1720-1727)
Ensure that all the return values of the function calls are used.

Additional information: link

DividendPayingToken._withdrawDividendOfUser(address) (#1175-1191) has external calls inside a loop: success = IERC20(CAKE).transfer(user,_withdrawableDividend) (#1180)
Favor pull over push strategy for external calls.

Additional information: link

Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#1175-1191):
External calls:
- success = IERC20(CAKE).transfer(user,_withdrawableDividend) (#1180)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (#1183)
Reentrancy in NyanCake.updateDividendTracker(address) (#1387-1402):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1394)
- newDividendTracker.excludeFromDividends(address(this)) (#1395)
- newDividendTracker.excludeFromDividends(owner()) (#1396)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1397)
State variables written after the call(s):
- dividendTracker = newDividendTracker (#1401)
Apply the check-effects-interactions pattern.

Additional information: link

NyanCake._transfer(address,address,uint256).iterations (#1632) is a local variable never initialized
NyanCake._transfer(address,address,uint256).claims (#1632) is a local variable never initialized
NyanCake._transfer(address,address,uint256).lastProcessedIndex (#1632) 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

DividendPayingToken.constructor(string,string)._name (#1149) shadows:
- ERC20._name (#841) (state variable)
DividendPayingToken.constructor(string,string)._symbol (#1149) shadows:
- ERC20._symbol (#842) (state variable)
DividendPayingToken.dividendOf(address)._owner (#1197) shadows:
- Ownable._owner (#438) (state variable)
DividendPayingToken.withdrawableDividendOf(address)._owner (#1204) shadows:
- Ownable._owner (#438) (state variable)
DividendPayingToken.withdrawnDividendOf(address)._owner (#1211) shadows:
- Ownable._owner (#438) (state variable)
DividendPayingToken.accumulativeDividendOf(address)._owner (#1221) shadows:
- Ownable._owner (#438) (state variable)
Rename the local variables that shadow another component.

Additional information: link

NyanCake.setCAKERewardsFee(uint256) (#1432-1435) should emit an event for:
- CAKERewardsFee = value (#1433)
- totalFees = CAKERewardsFee.add(liquidityFee).add(marketingFee) (#1434)
NyanCake.setLiquiditFee(uint256) (#1437-1440) should emit an event for:
- liquidityFee = value (#1438)
- totalFees = CAKERewardsFee.add(liquidityFee).add(marketingFee) (#1439)
NyanCake.setMarketingFee(uint256) (#1442-1446) should emit an event for:
- marketingFee = value (#1443)
- totalFees = CAKERewardsFee.add(liquidityFee).add(marketingFee) (#1444)
NyanCake.setMaxTxAmount(uint256) (#1448-1450) should emit an event for:
- maxTxAmount = amount * (10 ** 18) (#1449)
NyanCake.setMaxWalletBalance(uint256) (#1452-1454) should emit an event for:
- maxWalletBalance = amount * (10 ** 18) (#1453)
Emit an event for critical parameter changes.

Additional information: link

NyanCake.updateUniswapV2Router(address)._uniswapV2Pair (#1408-1409) lacks a zero-check on :
- uniswapV2Pair = _uniswapV2Pair (#1410)
NyanCake.setMarketingWallet(address).wallet (#1428) lacks a zero-check on :
- _marketingWalletAddress = wallet (#1429)
Check that the address is not zero.

Additional information: link

Variable 'NyanCake._transfer(address,address,uint256).iterations (#1632)' in NyanCake._transfer(address,address,uint256) (#1559-1639) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1633)
Variable 'NyanCake._transfer(address,address,uint256).lastProcessedIndex (#1632)' in NyanCake._transfer(address,address,uint256) (#1559-1639) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1633)
Variable 'NyanCake._transfer(address,address,uint256).claims (#1632)' in NyanCake._transfer(address,address,uint256) (#1559-1639) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1633)
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 NyanCake._transfer(address,address,uint256) (#1559-1639):
External calls:
- swapAndSendToFee(marketingTokens) (#1595)
- IERC20(CAKE).transfer(_marketingWalletAddress,newBalance) (#1647)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1705-1711)
- swapAndLiquify(swapTokens) (#1598)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1720-1727)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1685-1691)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1598)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1720-1727)
State variables written after the call(s):
- swapAndLiquify(swapTokens) (#1598)
- _allowances[owner][spender] = amount (#1085)
Reentrancy in NyanCake._transfer(address,address,uint256) (#1559-1639):
External calls:
- swapAndSendToFee(marketingTokens) (#1595)
- IERC20(CAKE).transfer(_marketingWalletAddress,newBalance) (#1647)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1705-1711)
- swapAndLiquify(swapTokens) (#1598)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1720-1727)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1685-1691)
- swapAndSendDividends(sellTokens) (#1601)
- success = IERC20(CAKE).transfer(address(dividendTracker),dividends) (#1734)
- dividendTracker.distributeCAKEDividends(dividends) (#1737)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1705-1711)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1598)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1720-1727)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (#1601)
- _allowances[owner][spender] = amount (#1085)
Reentrancy in NyanCake.constructor() (#1349-1381):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1356-1357)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#1360)
- uniswapV2Router = _uniswapV2Router (#1359)
Reentrancy in NyanCake.constructor() (#1349-1381):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1356-1357)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1362)
- dividendTracker.excludeFromDividends(pair) (#1473)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#1365)
- dividendTracker.excludeFromDividends(address(this)) (#1366)
- dividendTracker.excludeFromDividends(owner()) (#1367)
- dividendTracker.excludeFromDividends(deadWallet) (#1368)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#1369)
State variables written after the call(s):
- _mint(owner(),100000000000 * (10 ** 18)) (#1380)
- _balances[account] = _balances[account].add(amount) (#1039)
- excludeFromFees(owner(),true) (#1372)
- _isExcludedFromFees[account] = excluded (#1415)
- excludeFromFees(_marketingWalletAddress,true) (#1373)
- _isExcludedFromFees[account] = excluded (#1415)
- excludeFromFees(address(this),true) (#1374)
- _isExcludedFromFees[account] = excluded (#1415)
- _mint(owner(),100000000000 * (10 ** 18)) (#1380)
- _totalSupply = _totalSupply.add(amount) (#1038)
Reentrancy in NyanCakeDividendTracker.processAccount(address,bool) (#1939-1949):
External calls:
- amount = _withdrawDividendOfUser(account) (#1940)
- success = IERC20(CAKE).transfer(user,_withdrawableDividend) (#1180)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (#1943)
Reentrancy in NyanCake.swapAndLiquify(uint256) (#1650-1671):
External calls:
- swapTokensForEth(half) (#1662)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1685-1691)
- addLiquidity(otherHalf,newBalance) (#1668)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1720-1727)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1668)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1720-1727)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#1668)
- _allowances[owner][spender] = amount (#1085)
Reentrancy in NyanCake.updateUniswapV2Router(address) (#1404-1411):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (#1408-1409)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#1410)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in NyanCake._setAutomatedMarketMakerPair(address,bool) (#1468-1477):
External calls:
- dividendTracker.excludeFromDividends(pair) (#1473)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1476)
Reentrancy in NyanCake._transfer(address,address,uint256) (#1559-1639):
External calls:
- swapAndSendToFee(marketingTokens) (#1595)
- IERC20(CAKE).transfer(_marketingWalletAddress,newBalance) (#1647)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1705-1711)
- swapAndLiquify(swapTokens) (#1598)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1720-1727)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1685-1691)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1598)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1720-1727)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1086)
- swapAndLiquify(swapTokens) (#1598)
- SwapAndLiquify(half,newBalance,otherHalf) (#1670)
- swapAndLiquify(swapTokens) (#1598)
Reentrancy in NyanCake._transfer(address,address,uint256) (#1559-1639):
External calls:
- swapAndSendToFee(marketingTokens) (#1595)
- IERC20(CAKE).transfer(_marketingWalletAddress,newBalance) (#1647)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1705-1711)
- swapAndLiquify(swapTokens) (#1598)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1720-1727)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1685-1691)
- swapAndSendDividends(sellTokens) (#1601)
- success = IERC20(CAKE).transfer(address(dividendTracker),dividends) (#1734)
- dividendTracker.distributeCAKEDividends(dividends) (#1737)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1705-1711)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1598)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1720-1727)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1086)
- swapAndSendDividends(sellTokens) (#1601)
- SendDividends(tokens,dividends) (#1738)
- swapAndSendDividends(sellTokens) (#1601)
- Transfer(sender,recipient,amount) (#1021)
- super._transfer(from,to,amount) (#1624)
- Transfer(sender,recipient,amount) (#1021)
- super._transfer(from,address(this),fees) (#1621)
Reentrancy in NyanCake._transfer(address,address,uint256) (#1559-1639):
External calls:
- swapAndSendToFee(marketingTokens) (#1595)
- IERC20(CAKE).transfer(_marketingWalletAddress,newBalance) (#1647)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1705-1711)
- swapAndLiquify(swapTokens) (#1598)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1720-1727)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1685-1691)
- swapAndSendDividends(sellTokens) (#1601)
- success = IERC20(CAKE).transfer(address(dividendTracker),dividends) (#1734)
- dividendTracker.distributeCAKEDividends(dividends) (#1737)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1705-1711)
- dividendTracker.setBalance(address(from),balanceOf(from)) (#1626)
- dividendTracker.setBalance(address(to),balanceOf(to)) (#1627)
- dividendTracker.process(gas) (#1632-1637)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1598)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1720-1727)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1633)
Reentrancy in NyanCake.constructor() (#1349-1381):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1356-1357)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1362)
- dividendTracker.excludeFromDividends(pair) (#1473)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1476)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1362)
Reentrancy in NyanCake.constructor() (#1349-1381):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1356-1357)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1362)
- dividendTracker.excludeFromDividends(pair) (#1473)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#1365)
- dividendTracker.excludeFromDividends(address(this)) (#1366)
- dividendTracker.excludeFromDividends(owner()) (#1367)
- dividendTracker.excludeFromDividends(deadWallet) (#1368)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#1369)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#1417)
- excludeFromFees(_marketingWalletAddress,true) (#1373)
- ExcludeFromFees(account,excluded) (#1417)
- excludeFromFees(owner(),true) (#1372)
- ExcludeFromFees(account,excluded) (#1417)
- excludeFromFees(address(this),true) (#1374)
- Transfer(address(0),account,amount) (#1040)
- _mint(owner(),100000000000 * (10 ** 18)) (#1380)
Reentrancy in NyanCakeDividendTracker.processAccount(address,bool) (#1939-1949):
External calls:
- amount = _withdrawDividendOfUser(account) (#1940)
- success = IERC20(CAKE).transfer(user,_withdrawableDividend) (#1180)
Event emitted after the call(s):
- Claim(account,amount,automatic) (#1944)
Reentrancy in NyanCake.processDividendTracker(uint256) (#1541-1544):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (#1542)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (#1543)
Reentrancy in NyanCake.swapAndLiquify(uint256) (#1650-1671):
External calls:
- swapTokensForEth(half) (#1662)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1685-1691)
- addLiquidity(otherHalf,newBalance) (#1668)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1720-1727)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1668)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1720-1727)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1086)
- addLiquidity(otherHalf,newBalance) (#1668)
- SwapAndLiquify(half,newBalance,otherHalf) (#1670)
Reentrancy in NyanCake.swapAndSendDividends(uint256) (#1731-1740):
External calls:
- swapTokensForCAKE(tokens) (#1732)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1705-1711)
- success = IERC20(CAKE).transfer(address(dividendTracker),dividends) (#1734)
- dividendTracker.distributeCAKEDividends(dividends) (#1737)
Event emitted after the call(s):
- SendDividends(tokens,dividends) (#1738)
Reentrancy in NyanCake.updateDividendTracker(address) (#1387-1402):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1394)
- newDividendTracker.excludeFromDividends(address(this)) (#1395)
- newDividendTracker.excludeFromDividends(owner()) (#1396)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1397)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (#1399)
Apply the check-effects-interactions pattern.

Additional information: link

NyanCakeDividendTracker.getAccount(address) (#1803-1846) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (#1843-1845)
NyanCakeDividendTracker.canAutoClaim(uint256) (#1867-1873) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#1868)
- block.timestamp.sub(lastClaimTime) >= claimWait (#1872)
Avoid relying on block.timestamp.

Additional information: link

Context._msgData() (#43-46) is never used and should be removed
DividendPayingToken._transfer(address,address,uint256) (#1231-1237) is never used and should be removed
SafeMath.mod(uint256,uint256) (#675-677) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#691-694) is never used and should be removed
SafeMathInt.abs(int256) (#776-779) is never used and should be removed
SafeMathInt.div(int256,int256) (#747-753) is never used and should be removed
SafeMathInt.mul(int256,int256) (#735-742) is never used and should be removed
Remove unused functions.

Additional information: link

NyanCake.totalFees (#1300) is set pre-construction with a non-constant function or state variable:
- CAKERewardsFee.add(liquidityFee).add(marketingFee)
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 (#26) allows old versions
Pragma version^0.6.2 (#50) allows old versions
Pragma version^0.6.2 (#131) allows old versions
Pragma version^0.6.2 (#157) allows old versions
Pragma version^0.6.2 (#176) allows old versions
Pragma version^0.6.2 (#230) allows old versions
Pragma version^0.6.2 (#372) allows old versions
Pragma version^0.6.2 (#435) allows old versions
Pragma version^0.6.2 (#490) allows old versions
Pragma version^0.6.2 (#516) allows old versions
Pragma version^0.6.2 (#552) allows old versions
Pragma version^0.6.2 (#722) allows old versions
Pragma version^0.6.2 (#790) allows old versions
Pragma version^0.6.2 (#806) allows old versions
Pragma version^0.6.2 (#1112) allows old versions
Pragma version^0.6.2 (#1274) 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

Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#193) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#194) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#211) is not in mixedCase
Function IUniswapV2Router01.WETH() (#234) is not in mixedCase
Parameter DividendPayingToken.dividendOf(address)._owner (#1197) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (#1204) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (#1211) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (#1221) is not in mixedCase
Variable DividendPayingToken.CAKE (#1124) is not in mixedCase
Constant DividendPayingToken.magnitude (#1129) is not in UPPER_CASE_WITH_UNDERSCORES
Variable NyanCake.CAKE (#1288) is not in mixedCase
Variable NyanCake._isBlacklisted (#1295) is not in mixedCase
Variable NyanCake.CAKERewardsFee (#1297) is not in mixedCase
Variable NyanCake._marketingWalletAddress (#1302) is not in mixedCase
Parameter NyanCakeDividendTracker.getAccount(address)._account (#1803) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#239) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#240)
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#1176) is too similar to NyanCakeDividendTracker.getAccount(address).withdrawableDividends (#1808)
Prevent variables from having similar names.

Additional information: link

NyanCake.constructor() (#1349-1381) uses literals with too many digits:
- _mint(owner(),100000000000 * (10 ** 18)) (#1380)
NyanCake.updateGasForProcessing(uint256) (#1480-1485) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 500000,NyanCake: gasForProcessing must be between 200,000 and 500,000) (#1481)
NyanCake.slitherConstructorVariables() (#1276-1741) uses literals with too many digits:
- deadWallet = 0x000000000000000000000000000000000000dEaD (#1286)
NyanCake.slitherConstructorVariables() (#1276-1741) uses literals with too many digits:
- swapTokensAtAmount = 2000000 * (10 ** 18) (#1290)
NyanCake.slitherConstructorVariables() (#1276-1741) uses literals with too many digits:
- maxTxAmount = 1000000000 * (10 ** 18) (#1292)
NyanCake.slitherConstructorVariables() (#1276-1741) uses literals with too many digits:
- maxWalletBalance = 1000000000 * (10 ** 18) (#1293)
NyanCake.slitherConstructorVariables() (#1276-1741) uses literals with too many digits:
- gasForProcessing = 300000 (#1306)
NyanCakeDividendTracker.constructor() (#1763-1766) uses literals with too many digits:
- minimumTokenBalanceForDividends = 200000 * (10 ** 18) (#1765)
NyanCakeDividendTracker.getAccountAtIndex(uint256) (#1848-1865) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#1859)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

SafeMathInt.MAX_INT256 (#730) is never used in SafeMathInt (#728-786)
Remove unused state variables.

Additional information: link

NyanCake.deadWallet (#1286) should be constant
NyanCake.swapTokensAtAmount (#1290) 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) (#383-385)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (#387-392)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (#394-396)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (#400-402)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#473-476)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#482-486)
name() should be declared external:
- ERC20.name() (#861-863)
symbol() should be declared external:
- ERC20.symbol() (#869-871)
decimals() should be declared external:
- ERC20.decimals() (#886-888)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#912-915)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#920-922)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#931-934)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#949-957)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#971-974)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#990-993)
distributeCAKEDividends(uint256) should be declared external:
- DividendPayingToken.distributeCAKEDividends(uint256) (#1154-1165)
withdrawDividend() should be declared external:
- DividendPayingToken.withdrawDividend() (#1169-1171)
- NyanCakeDividendTracker.withdrawDividend() (#1772-1774)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (#1197-1199)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (#1211-1213)
updateDividendTracker(address) should be declared external:
- NyanCake.updateDividendTracker(address) (#1387-1402)
updateUniswapV2Router(address) should be declared external:
- NyanCake.updateUniswapV2Router(address) (#1404-1411)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- NyanCake.excludeMultipleAccountsFromFees(address[],bool) (#1420-1426)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- NyanCake.setAutomatedMarketMakerPair(address,bool) (#1457-1461)
updateGasForProcessing(uint256) should be declared external:
- NyanCake.updateGasForProcessing(uint256) (#1480-1485)
isExcludedFromFees(address) should be declared external:
- NyanCake.isExcludedFromFees(address) (#1499-1501)
withdrawableDividendOf(address) should be declared external:
- NyanCake.withdrawableDividendOf(address) (#1503-1505)
dividendTokenBalanceOf(address) should be declared external:
- NyanCake.dividendTokenBalanceOf(address) (#1507-1509)
getAccountAtIndex(uint256) should be declared external:
- NyanCakeDividendTracker.getAccountAtIndex(uint256) (#1848-1865)
process(uint256) should be declared external:
- NyanCakeDividendTracker.process(uint256) (#1892-1937)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


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


Average 30d PancakeSwap volume 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.


Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.

Contract has 15% buy tax and 29% 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


Unable to find Telegram and Twitter accounts


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


Token has no active CoinGecko listing / rank


Token has no active CoinMarketCap listing / rank


Young tokens have high risks of price dump / death

Price for NYAN