Nickel is a decentralized utility token built on the Binance smart chain. This celebrity backed BEP-20 token will bridge the gap of entertainers, artists, and content creators with their fans through creative use cases.
NICKEL.addLiquidity(uint256,uint256) (contracts/NICKEL.sol#448-463) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (contracts/NICKEL.sol#454-461)
NICKEL.swapAndSendMarketing(uint256) (contracts/NICKEL.sol#465-473) sends eth to arbitrary user
Dangerous calls:
- (success) = marketingWallet.call{value: marketingBNB}() (contracts/NICKEL.sol#468)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in NICKEL._transfer(address,address,uint256) (contracts/NICKEL.sol#313-402):
External calls:
- swapAndLiquify(swapTokens) (contracts/NICKEL.sol#358)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (contracts/NICKEL.sol#454-461)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/NICKEL.sol#438-444)
- swapAndSendDividends(sellTokens) (contracts/NICKEL.sol#361)
- (success) = address(dividendTracker).call{value: dividends}() (contracts/NICKEL.sol#478)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/NICKEL.sol#438-444)
External calls sending eth:
- swapAndLiquify(swapTokens) (contracts/NICKEL.sol#358)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (contracts/NICKEL.sol#454-461)
- swapAndSendDividends(sellTokens) (contracts/NICKEL.sol#361)
- (success) = address(dividendTracker).call{value: dividends}() (contracts/NICKEL.sol#478)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (contracts/NICKEL.sol#384)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (contracts/ERC20.sol#221)
- _balances[recipient] = _balances[recipient].add(amount) (contracts/ERC20.sol#222)
- super._transfer(from,to,amount) (contracts/NICKEL.sol#387)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (contracts/ERC20.sol#221)
- _balances[recipient] = _balances[recipient].add(amount) (contracts/ERC20.sol#222)
- swapping = false (contracts/NICKEL.sol#363)
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (contracts/DividendPayingToken.sol#89-105):
External calls:
- (success) = user.call{gas: 3000,value: _withdrawableDividend}() (contracts/DividendPayingToken.sol#94)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (contracts/DividendPayingToken.sol#97)
Apply the check-effects-interactions pattern.
Additional information: link
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
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.
NICKEL._transfer(address,address,uint256) (contracts/NICKEL.sol#313-402) performs a multiplication on the result of a division:
-fees = amount.mul(totalFees).div(100) (contracts/NICKEL.sol#375)
-fees = fees.mul(sellFeeIncreaseFactor).div(100) (contracts/NICKEL.sol#379)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in NICKEL.updateDividendTracker(address) (contracts/NICKEL.sol#149-164):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (contracts/NICKEL.sol#156)
- newDividendTracker.excludeFromDividends(address(this)) (contracts/NICKEL.sol#157)
- newDividendTracker.excludeFromDividends(owner()) (contracts/NICKEL.sol#158)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (contracts/NICKEL.sol#159)
State variables written after the call(s):
- dividendTracker = newDividendTracker (contracts/NICKEL.sol#163)
Apply the check-effects-interactions pattern.
Additional information: link
NICKEL._transfer(address,address,uint256).iterations (contracts/NICKEL.sol#395) is a local variable never initialized
NICKEL._transfer(address,address,uint256).claims (contracts/NICKEL.sol#395) is a local variable never initialized
NICKEL._transfer(address,address,uint256).lastProcessedIndex (contracts/NICKEL.sol#395) 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
NICKEL.claim() (contracts/NICKEL.sol#281-283) ignores return value by dividendTracker.processAccount(msg.sender,false) (contracts/NICKEL.sol#282)
NICKEL._transfer(address,address,uint256) (contracts/NICKEL.sol#313-402) ignores return value by dividendTracker.process(gas) (contracts/NICKEL.sol#395-400)
NICKEL.addLiquidity(uint256,uint256) (contracts/NICKEL.sol#448-463) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (contracts/NICKEL.sol#454-461)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.constructor(string,string)._name (contracts/DividendPayingToken.sol#46) shadows:
- ERC20._name (contracts/ERC20.sol#43) (state variable)
DividendPayingToken.constructor(string,string)._symbol (contracts/DividendPayingToken.sol#46) shadows:
- ERC20._symbol (contracts/ERC20.sol#44) (state variable)
Rename the local variables that shadow another component.
Additional information: link
NICKEL.updateSwapTokenAmount(uint256) (contracts/NICKEL.sol#297-299) should emit an event for:
- swapTokensAtAmount = amount * (10 ** 18) (contracts/NICKEL.sol#298)
NICKEL.updateMaxSellLimiation(uint256) (contracts/NICKEL.sol#301-303) should emit an event for:
- maxSellTransactionAmount = amount * (10 ** 18) (contracts/NICKEL.sol#302)
Emit an event for critical parameter changes.
Additional information: link
DividendPayingToken._withdrawDividendOfUser(address) (contracts/DividendPayingToken.sol#89-105) has external calls inside a loop: (success) = user.call{gas: 3000,value: _withdrawableDividend}() (contracts/DividendPayingToken.sol#94)
Favor pull over push strategy for external calls.
Additional information: link
Variable 'NICKEL._transfer(address,address,uint256).claims (contracts/NICKEL.sol#395)' in NICKEL._transfer(address,address,uint256) (contracts/NICKEL.sol#313-402) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (contracts/NICKEL.sol#396)
Variable 'NICKEL._transfer(address,address,uint256).iterations (contracts/NICKEL.sol#395)' in NICKEL._transfer(address,address,uint256) (contracts/NICKEL.sol#313-402) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (contracts/NICKEL.sol#396)
Variable 'NICKEL._transfer(address,address,uint256).lastProcessedIndex (contracts/NICKEL.sol#395)' in NICKEL._transfer(address,address,uint256) (contracts/NICKEL.sol#313-402) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (contracts/NICKEL.sol#396)
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 NICKEL._transfer(address,address,uint256) (contracts/NICKEL.sol#313-402):
External calls:
- swapAndLiquify(swapTokens) (contracts/NICKEL.sol#358)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (contracts/NICKEL.sol#454-461)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/NICKEL.sol#438-444)
- swapAndSendDividends(sellTokens) (contracts/NICKEL.sol#361)
- (success) = address(dividendTracker).call{value: dividends}() (contracts/NICKEL.sol#478)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/NICKEL.sol#438-444)
External calls sending eth:
- swapAndLiquify(swapTokens) (contracts/NICKEL.sol#358)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (contracts/NICKEL.sol#454-461)
- swapAndSendDividends(sellTokens) (contracts/NICKEL.sol#361)
- (success) = address(dividendTracker).call{value: dividends}() (contracts/NICKEL.sol#478)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (contracts/NICKEL.sol#361)
- _allowances[owner][spender] = amount (contracts/ERC20.sol#287)
Reentrancy in NICKEL.constructor() (contracts/NICKEL.sol#94-143):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (contracts/NICKEL.sol#112-113)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (contracts/NICKEL.sol#116)
- uniswapV2Router = _uniswapV2Router (contracts/NICKEL.sol#115)
Reentrancy in NICKEL.constructor() (contracts/NICKEL.sol#94-143):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (contracts/NICKEL.sol#112-113)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (contracts/NICKEL.sol#118)
- dividendTracker.excludeFromDividends(pair) (contracts/NICKEL.sol#198)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (contracts/NICKEL.sol#121)
- dividendTracker.excludeFromDividends(address(this)) (contracts/NICKEL.sol#122)
- dividendTracker.excludeFromDividends(owner()) (contracts/NICKEL.sol#123)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (contracts/NICKEL.sol#124)
State variables written after the call(s):
- _mint(owner(),77000000 * (10 ** 18)) (contracts/NICKEL.sol#142)
- _balances[account] = _balances[account].add(amount) (contracts/ERC20.sol#241)
- excludeFromFees(liquidityWallet,true) (contracts/NICKEL.sol#127)
- _isExcludedFromFees[account] = excluded (contracts/NICKEL.sol#174)
- excludeFromFees(marketingWallet,true) (contracts/NICKEL.sol#128)
- _isExcludedFromFees[account] = excluded (contracts/NICKEL.sol#174)
- excludeFromFees(address(this),true) (contracts/NICKEL.sol#129)
- _isExcludedFromFees[account] = excluded (contracts/NICKEL.sol#174)
- _mint(owner(),77000000 * (10 ** 18)) (contracts/NICKEL.sol#142)
- _totalSupply = _totalSupply.add(amount) (contracts/ERC20.sol#240)
- canTransferBeforeTradingIsEnabled[owner()] = true (contracts/NICKEL.sol#132)
- canTransferBeforeTradingIsEnabled[marketingWallet] = true (contracts/NICKEL.sol#133)
- canTransferBeforeTradingIsEnabled[liquidityWallet] = true (contracts/NICKEL.sol#134)
- canTransferBeforeTradingIsEnabled[0xA5025FABA6E70B84F74e9b1113e5F7F4E7f4859f] = true (contracts/NICKEL.sol#135)
- canTransferBeforeTradingIsEnabled[0x5d6573e62E3688E40c1fC36e01B155Fb0006F432] = true (contracts/NICKEL.sol#136)
Reentrancy in NICKELDividendTracker.processAccount(address,bool) (contracts/NICKEL.sol#680-690):
External calls:
- amount = _withdrawDividendOfUser(account) (contracts/NICKEL.sol#681)
- (success) = user.call{gas: 3000,value: _withdrawableDividend}() (contracts/DividendPayingToken.sol#94)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (contracts/NICKEL.sol#684)
Reentrancy in NICKEL.swapAndLiquify(uint256) (contracts/NICKEL.sol#404-425):
External calls:
- swapTokensForEth(half) (contracts/NICKEL.sol#416)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/NICKEL.sol#438-444)
- addLiquidity(otherHalf,newBalance) (contracts/NICKEL.sol#422)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (contracts/NICKEL.sol#454-461)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (contracts/NICKEL.sol#422)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (contracts/NICKEL.sol#454-461)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (contracts/NICKEL.sol#422)
- _allowances[owner][spender] = amount (contracts/ERC20.sol#287)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in NICKEL._setAutomatedMarketMakerPair(address,bool) (contracts/NICKEL.sol#193-202):
External calls:
- dividendTracker.excludeFromDividends(pair) (contracts/NICKEL.sol#198)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (contracts/NICKEL.sol#201)
Reentrancy in NICKEL._transfer(address,address,uint256) (contracts/NICKEL.sol#313-402):
External calls:
- swapAndLiquify(swapTokens) (contracts/NICKEL.sol#358)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (contracts/NICKEL.sol#454-461)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/NICKEL.sol#438-444)
- swapAndSendDividends(sellTokens) (contracts/NICKEL.sol#361)
- (success) = address(dividendTracker).call{value: dividends}() (contracts/NICKEL.sol#478)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/NICKEL.sol#438-444)
External calls sending eth:
- swapAndLiquify(swapTokens) (contracts/NICKEL.sol#358)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (contracts/NICKEL.sol#454-461)
- swapAndSendDividends(sellTokens) (contracts/NICKEL.sol#361)
- (success) = address(dividendTracker).call{value: dividends}() (contracts/NICKEL.sol#478)
Event emitted after the call(s):
- Approval(owner,spender,amount) (contracts/ERC20.sol#288)
- swapAndSendDividends(sellTokens) (contracts/NICKEL.sol#361)
- SendDividends(tokens,dividends) (contracts/NICKEL.sol#481)
- swapAndSendDividends(sellTokens) (contracts/NICKEL.sol#361)
- Transfer(sender,recipient,amount) (contracts/ERC20.sol#223)
- super._transfer(from,to,amount) (contracts/NICKEL.sol#387)
- Transfer(sender,recipient,amount) (contracts/ERC20.sol#223)
- super._transfer(from,address(this),fees) (contracts/NICKEL.sol#384)
Reentrancy in NICKEL._transfer(address,address,uint256) (contracts/NICKEL.sol#313-402):
External calls:
- swapAndLiquify(swapTokens) (contracts/NICKEL.sol#358)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (contracts/NICKEL.sol#454-461)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/NICKEL.sol#438-444)
- swapAndSendDividends(sellTokens) (contracts/NICKEL.sol#361)
- (success) = address(dividendTracker).call{value: dividends}() (contracts/NICKEL.sol#478)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/NICKEL.sol#438-444)
- dividendTracker.setBalance(address(from),balanceOf(from)) (contracts/NICKEL.sol#389)
- dividendTracker.setBalance(address(to),balanceOf(to)) (contracts/NICKEL.sol#390)
- dividendTracker.process(gas) (contracts/NICKEL.sol#395-400)
External calls sending eth:
- swapAndLiquify(swapTokens) (contracts/NICKEL.sol#358)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (contracts/NICKEL.sol#454-461)
- swapAndSendDividends(sellTokens) (contracts/NICKEL.sol#361)
- (success) = address(dividendTracker).call{value: dividends}() (contracts/NICKEL.sol#478)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (contracts/NICKEL.sol#396)
Reentrancy in NICKEL.constructor() (contracts/NICKEL.sol#94-143):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (contracts/NICKEL.sol#112-113)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (contracts/NICKEL.sol#118)
- dividendTracker.excludeFromDividends(pair) (contracts/NICKEL.sol#198)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (contracts/NICKEL.sol#201)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (contracts/NICKEL.sol#118)
Reentrancy in NICKEL.constructor() (contracts/NICKEL.sol#94-143):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (contracts/NICKEL.sol#112-113)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (contracts/NICKEL.sol#118)
- dividendTracker.excludeFromDividends(pair) (contracts/NICKEL.sol#198)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (contracts/NICKEL.sol#121)
- dividendTracker.excludeFromDividends(address(this)) (contracts/NICKEL.sol#122)
- dividendTracker.excludeFromDividends(owner()) (contracts/NICKEL.sol#123)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (contracts/NICKEL.sol#124)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (contracts/NICKEL.sol#176)
- excludeFromFees(liquidityWallet,true) (contracts/NICKEL.sol#127)
- ExcludeFromFees(account,excluded) (contracts/NICKEL.sol#176)
- excludeFromFees(address(this),true) (contracts/NICKEL.sol#129)
- ExcludeFromFees(account,excluded) (contracts/NICKEL.sol#176)
- excludeFromFees(marketingWallet,true) (contracts/NICKEL.sol#128)
- Transfer(address(0),account,amount) (contracts/ERC20.sol#242)
- _mint(owner(),77000000 * (10 ** 18)) (contracts/NICKEL.sol#142)
Reentrancy in NICKELDividendTracker.processAccount(address,bool) (contracts/NICKEL.sol#680-690):
External calls:
- amount = _withdrawDividendOfUser(account) (contracts/NICKEL.sol#681)
- (success) = user.call{gas: 3000,value: _withdrawableDividend}() (contracts/DividendPayingToken.sol#94)
Event emitted after the call(s):
- Claim(account,amount,automatic) (contracts/NICKEL.sol#685)
Reentrancy in NICKEL.processDividendTracker(uint256) (contracts/NICKEL.sol#276-279):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (contracts/NICKEL.sol#277)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (contracts/NICKEL.sol#278)
Reentrancy in NICKEL.swapAndLiquify(uint256) (contracts/NICKEL.sol#404-425):
External calls:
- swapTokensForEth(half) (contracts/NICKEL.sol#416)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/NICKEL.sol#438-444)
- addLiquidity(otherHalf,newBalance) (contracts/NICKEL.sol#422)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (contracts/NICKEL.sol#454-461)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (contracts/NICKEL.sol#422)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (contracts/NICKEL.sol#454-461)
Event emitted after the call(s):
- Approval(owner,spender,amount) (contracts/ERC20.sol#288)
- addLiquidity(otherHalf,newBalance) (contracts/NICKEL.sol#422)
- SwapAndLiquify(half,newBalance,otherHalf) (contracts/NICKEL.sol#424)
Reentrancy in NICKEL.swapAndSendDividends(uint256) (contracts/NICKEL.sol#475-483):
External calls:
- swapTokensForEth(tokens) (contracts/NICKEL.sol#476)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/NICKEL.sol#438-444)
- (success) = address(dividendTracker).call{value: dividends}() (contracts/NICKEL.sol#478)
External calls sending eth:
- (success) = address(dividendTracker).call{value: dividends}() (contracts/NICKEL.sol#478)
Event emitted after the call(s):
- SendDividends(tokens,dividends) (contracts/NICKEL.sol#481)
Reentrancy in NICKEL.swapAndSendMarketing(uint256) (contracts/NICKEL.sol#465-473):
External calls:
- swapTokensForEth(tokens) (contracts/NICKEL.sol#466)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/NICKEL.sol#438-444)
- (success) = marketingWallet.call{value: marketingBNB}() (contracts/NICKEL.sol#468)
External calls sending eth:
- (success) = marketingWallet.call{value: marketingBNB}() (contracts/NICKEL.sol#468)
Event emitted after the call(s):
- SendMarketingBNB(tokens,marketingBNB) (contracts/NICKEL.sol#471)
Reentrancy in NICKEL.updateDividendTracker(address) (contracts/NICKEL.sol#149-164):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (contracts/NICKEL.sol#156)
- newDividendTracker.excludeFromDividends(address(this)) (contracts/NICKEL.sol#157)
- newDividendTracker.excludeFromDividends(owner()) (contracts/NICKEL.sol#158)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (contracts/NICKEL.sol#159)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (contracts/NICKEL.sol#161)
Apply the check-effects-interactions pattern.
Additional information: link
NICKELDividendTracker.getAccount(address) (contracts/NICKEL.sol#544-587) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (contracts/NICKEL.sol#584-586)
NICKELDividendTracker.canAutoClaim(uint256) (contracts/NICKEL.sol#608-614) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (contracts/NICKEL.sol#609)
- block.timestamp.sub(lastClaimTime) >= claimWait (contracts/NICKEL.sol#613)
Avoid relying on block.timestamp.
Additional information: link
Context._msgData() (contracts/Context.sol#20-23) is never used and should be removed
DividendPayingToken._transfer(address,address,uint256) (contracts/DividendPayingToken.sol#145-151) is never used and should be removed
NICKEL.swapAndSendMarketing(uint256) (contracts/NICKEL.sol#465-473) is never used and should be removed
SafeMath.mod(uint256,uint256) (contracts/SafeMath.sol#126-128) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (contracts/SafeMath.sol#142-145) is never used and should be removed
SafeMathInt.abs(int256) (contracts/SafeMathInt.sol#82-85) is never used and should be removed
SafeMathInt.div(int256,int256) (contracts/SafeMathInt.sol#53-59) is never used and should be removed
SafeMathInt.mul(int256,int256) (contracts/SafeMathInt.sol#41-48) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version^0.6.2 (contracts/Context.sol#3) allows old versions
Pragma version^0.6.2 (contracts/DividendPayingToken.sol#3) allows old versions
Pragma version^0.6.2 (contracts/DividendPayingTokenInterface.sol#3) allows old versions
Pragma version^0.6.2 (contracts/DividendPayingTokenOptionalInterface.sol#3) allows old versions
Pragma version^0.6.2 (contracts/ERC20.sol#3) allows old versions
Pragma version^0.6.2 (contracts/IERC20.sol#3) allows old versions
Pragma version^0.6.2 (contracts/IERC20Metadata.sol#3) allows old versions
Pragma version^0.6.2 (contracts/IUniswapV2Factory.sol#3) allows old versions
Pragma version^0.6.2 (contracts/IUniswapV2Pair.sol#3) allows old versions
Pragma version^0.6.2 (contracts/IUniswapV2Router.sol#3) allows old versions
Pragma version^0.6.2 (contracts/IterableMapping.sol#2) allows old versions
Pragma version^0.6.2 (contracts/NICKEL.sol#3) allows old versions
Pragma version^0.6.2 (contracts/Ownable.sol#1) allows old versions
Pragma version^0.6.2 (contracts/SafeMath.sol#3) allows old versions
Pragma version^0.6.2 (contracts/SafeMathInt.sol#28) allows old versions
Pragma version^0.6.2 (contracts/SafeMathUint.sol#3) allows old versions
solc-0.6.2 is not recommended for deployment
Deploy with any of the following Solidity versions: 0.5.16 - 0.5.17, 0.6.11 - 0.6.12, 0.7.5 - 0.7.6 Use a simple pragma version that allows any of these versions. Consider using the latest version of Solidity for testing.
Additional information: link
Low level call in DividendPayingToken._withdrawDividendOfUser(address) (contracts/DividendPayingToken.sol#89-105):
- (success) = user.call{gas: 3000,value: _withdrawableDividend}() (contracts/DividendPayingToken.sol#94)
Low level call in NICKEL.swapAndSendMarketing(uint256) (contracts/NICKEL.sol#465-473):
- (success) = marketingWallet.call{value: marketingBNB}() (contracts/NICKEL.sol#468)
Low level call in NICKEL.swapAndSendDividends(uint256) (contracts/NICKEL.sol#475-483):
- (success) = address(dividendTracker).call{value: dividends}() (contracts/NICKEL.sol#478)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Parameter DividendPayingToken.dividendOf(address)._owner (contracts/DividendPayingToken.sol#111) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (contracts/DividendPayingToken.sol#118) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (contracts/DividendPayingToken.sol#125) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (contracts/DividendPayingToken.sol#135) is not in mixedCase
Constant DividendPayingToken.magnitude (contracts/DividendPayingToken.sol#26) is not in UPPER_CASE_WITH_UNDERSCORES
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (contracts/IUniswapV2Pair.sol#20) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (contracts/IUniswapV2Pair.sol#21) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (contracts/IUniswapV2Pair.sol#38) is not in mixedCase
Function IUniswapV2Router01.WETH() (contracts/IUniswapV2Router.sol#7) is not in mixedCase
Parameter NICKEL.setBotAddress(address,bool)._botAddress (contracts/NICKEL.sol#305) is not in mixedCase
Parameter NICKEL.transferEnableAddresses(address,bool)._transferAddress (contracts/NICKEL.sol#309) is not in mixedCase
Variable NICKEL.BNBRewardsFee (contracts/NICKEL.sol#31) is not in mixedCase
Parameter NICKELDividendTracker.getAccount(address)._account (contracts/NICKEL.sol#544) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (contracts/Context.sol#21)" inContext (contracts/Context.sol#15-25)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (contracts/IUniswapV2Router.sol#12) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (contracts/IUniswapV2Router.sol#13)
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (contracts/DividendPayingToken.sol#90) is too similar to NICKELDividendTracker.getAccount(address).withdrawableDividends (contracts/NICKEL.sol#549)
Prevent variables from having similar names.
Additional information: link
NICKEL.constructor() (contracts/NICKEL.sol#94-143) uses literals with too many digits:
- _mint(owner(),77000000 * (10 ** 18)) (contracts/NICKEL.sol#142)
NICKEL.updateGasForProcessing(uint256) (contracts/NICKEL.sol#219-224) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 500000,NICKEL: gasForProcessing must be between 200,000 and 500,000) (contracts/NICKEL.sol#220)
NICKEL.slitherConstructorVariables() (contracts/NICKEL.sol#13-484) uses literals with too many digits:
- gasForProcessing = 300000 (contracts/NICKEL.sol#40)
NICKELDividendTracker.getAccountAtIndex(uint256) (contracts/NICKEL.sol#589-606) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (contracts/NICKEL.sol#600)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SafeMathInt.MAX_INT256 (contracts/SafeMathInt.sol#36) is never used in SafeMathInt (contracts/SafeMathInt.sol#34-93)
Remove unused state variables.
Additional information: link
NICKEL.sellFeeIncreaseFactor (contracts/NICKEL.sol#37) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
withdrawDividend() should be declared external:
- DividendPayingToken.withdrawDividend() (contracts/DividendPayingToken.sol#83-85)
- NICKELDividendTracker.withdrawDividend() (contracts/NICKEL.sol#515-517)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (contracts/DividendPayingToken.sol#111-113)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (contracts/DividendPayingToken.sol#125-127)
name() should be declared external:
- ERC20.name() (contracts/ERC20.sol#63-65)
symbol() should be declared external:
- ERC20.symbol() (contracts/ERC20.sol#71-73)
decimals() should be declared external:
- ERC20.decimals() (contracts/ERC20.sol#88-90)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (contracts/ERC20.sol#114-117)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (contracts/ERC20.sol#122-124)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (contracts/ERC20.sol#133-136)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (contracts/ERC20.sol#151-159)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (contracts/ERC20.sol#173-176)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (contracts/ERC20.sol#192-195)
get(IterableMapping.Map,address) should be declared external:
- IterableMapping.get(IterableMapping.Map,address) (contracts/IterableMapping.sol#13-15)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (contracts/IterableMapping.sol#17-22)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (contracts/IterableMapping.sol#24-26)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (contracts/IterableMapping.sol#30-32)
updateDividendTracker(address) should be declared external:
- NICKEL.updateDividendTracker(address) (contracts/NICKEL.sol#149-164)
updateUniswapV2Router(address) should be declared external:
- NICKEL.updateUniswapV2Router(address) (contracts/NICKEL.sol#166-170)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- NICKEL.excludeMultipleAccountsFromFees(address[],bool) (contracts/NICKEL.sol#179-185)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- NICKEL.setAutomatedMarketMakerPair(address,bool) (contracts/NICKEL.sol#187-191)
updateLiquidityWallet(address) should be declared external:
- NICKEL.updateLiquidityWallet(address) (contracts/NICKEL.sol#205-210)
updateMarketingWallet(address) should be declared external:
- NICKEL.updateMarketingWallet(address) (contracts/NICKEL.sol#212-217)
updateGasForProcessing(uint256) should be declared external:
- NICKEL.updateGasForProcessing(uint256) (contracts/NICKEL.sol#219-224)
isExcludedFromFees(address) should be declared external:
- NICKEL.isExcludedFromFees(address) (contracts/NICKEL.sol#238-240)
withdrawableDividendOf(address) should be declared external:
- NICKEL.withdrawableDividendOf(address) (contracts/NICKEL.sol#242-244)
dividendTokenBalanceOf(address) should be declared external:
- NICKEL.dividendTokenBalanceOf(address) (contracts/NICKEL.sol#246-248)
setBotAddress(address,bool) should be declared external:
- NICKEL.setBotAddress(address,bool) (contracts/NICKEL.sol#305-307)
transferEnableAddresses(address,bool) should be declared external:
- NICKEL.transferEnableAddresses(address,bool) (contracts/NICKEL.sol#309-311)
getAccountAtIndex(uint256) should be declared external:
- NICKELDividendTracker.getAccountAtIndex(uint256) (contracts/NICKEL.sol#589-606)
process(uint256) should be declared external:
- NICKELDividendTracker.process(uint256) (contracts/NICKEL.sol#633-678)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (contracts/Ownable.sol#43-46)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (contracts/Ownable.sol#52-56)
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.
Young tokens have high risks of price dump / death
Young tokens have high risks of scam / price dump / death
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
Token has relatively low CoinGecko rank
Last post in Twitter was more than 30 days ago
Unable to find Youtube account
Unable to find Discord account