DogeBank is a general-purpose token of the MEME token aggregator platform. It is endowed with the following functions:
1: Deposit tokens into Doge Bank, and get USDT interest of 1% of the token's current value every day T+1 mode.
2: Holders receive 3% USDT reward for each transaction.
3: Buy NFT blind boxes, and get high rewards for mainstream tokens such as Doge, BabyDoge, Floki, Shib, etc. according to the type of NFT.
......
DogeBank.addLiquidity(uint256,uint256) (#961-976) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liquidityAddress,block.timestamp) (#967-974)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Reentrancy in DogeBank._transfer(address,address,uint256) (#794-881):
External calls:
- swapAndSendToFee(marketingTokens) (#821)
- IERC20(ETH).transfer(_marketingWalletAddress,marketingFeeBalance) (#893)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#952-958)
- IERC20(ETH).transfer(_teamWalletAddress,teamFeeBalance) (#894)
- swapAndLiquify(swapTokens) (#824)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liquidityAddress,block.timestamp) (#967-974)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#932-938)
- swapAndSendDividends(sellTokens) (#827)
- success = IERC20(ETH).transfer(address(dividendTracker),dividends) (#981)
- dividendTracker.distributeETHDividends(dividends) (#984)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#952-958)
External calls sending eth:
- swapAndLiquify(swapTokens) (#824)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liquidityAddress,block.timestamp) (#967-974)
State variables written after the call(s):
- super._transfer(from,address(this),300) (#846)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#392)
- _balances[recipient] = _balances[recipient].add(amount) (#393)
- super._transfer(address(this),address(uint160(uint256(keccak256(bytes)(abi.encodePacked(a,block.number,block.difficulty,block.timestamp))))),100) (#849)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#392)
- _balances[recipient] = _balances[recipient].add(amount) (#393)
- super._transfer(from,address(this),fees) (#863)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#392)
- _balances[recipient] = _balances[recipient].add(amount) (#393)
- super._transfer(from,to,amount) (#866)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#392)
- _balances[recipient] = _balances[recipient].add(amount) (#393)
- _isbclisted[to] = true (#857)
- swapping = false (#829)
Apply the check-effects-interactions pattern.
Additional information: link
DogeBank.swapAndSendToFee(uint256) (#883-895) ignores return value by IERC20(ETH).transfer(_marketingWalletAddress,marketingFeeBalance) (#893)
DogeBank.swapAndSendToFee(uint256) (#883-895) ignores return value by IERC20(ETH).transfer(_teamWalletAddress,teamFeeBalance) (#894)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
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.
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.
DividendPayingToken._withdrawDividendOfUser(address) (#1108-1124) has external calls inside a loop: success = IERC20(ETH).transfer(user,_withdrawableDividend) (#1113)
Favor pull over push strategy for external calls.
Additional information: link
ETHBackDividendTracker.getAccount(address) (#1268-1311) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (#1308-1310)
ETHBackDividendTracker.canAutoClaim(uint256) (#1332-1338) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#1333)
- block.timestamp.sub(lastClaimTime) >= claimWait (#1337)
Avoid relying on block.timestamp.
Additional information: link
DogeBank.totalFees (#504) is set pre-construction with a non-constant function or state variable:
- ETHRewardsFee.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 (#8) allows old versions
Pragma version^0.6.2 (#1853) 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
Redundant expression "this (#124)" inContext (#118-127)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#1108-1124):
External calls:
- success = IERC20(ETH).transfer(user,_withdrawableDividend) (#1113)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (#1116)
Reentrancy in DogeBank.updateDividendTracker(address) (#617-632):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#624)
- newDividendTracker.excludeFromDividends(address(this)) (#625)
- newDividendTracker.excludeFromDividends(owner()) (#626)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#627)
State variables written after the call(s):
- dividendTracker = newDividendTracker (#631)
Apply the check-effects-interactions pattern.
Additional information: link
DogeBank._transfer(address,address,uint256).lastProcessedIndex (#874) is a local variable never initialized
DogeBank._transfer(address,address,uint256).iterations (#874) is a local variable never initialized
DogeBank._transfer(address,address,uint256).claims (#874) 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
DogeBank.claim() (#781-783) ignores return value by dividendTracker.processAccount(msg.sender,false) (#782)
DogeBank._transfer(address,address,uint256) (#794-881) ignores return value by dividendTracker.process(gas) (#874-879)
DogeBank.addLiquidity(uint256,uint256) (#961-976) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liquidityAddress,block.timestamp) (#967-974)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.constructor(string,string)._name (#1082) shadows:
- ERC20._name (#214) (state variable)
DividendPayingToken.constructor(string,string)._symbol (#1082) shadows:
- ERC20._symbol (#215) (state variable)
DividendPayingToken.dividendOf(address)._owner (#1130) shadows:
- Ownable._owner (#130) (state variable)
DividendPayingToken.withdrawableDividendOf(address)._owner (#1137) shadows:
- Ownable._owner (#130) (state variable)
DividendPayingToken.withdrawnDividendOf(address)._owner (#1144) shadows:
- Ownable._owner (#130) (state variable)
DividendPayingToken.accumulativeDividendOf(address)._owner (#1154) shadows:
- Ownable._owner (#130) (state variable)
Rename the local variables that shadow another component.
Additional information: link
DogeBank.setKillNum(uint256) (#609-611) should emit an event for:
- killNum = num (#610)
DogeBank.setShare(uint256,uint256) (#665-668) should emit an event for:
- marketingFeeShare = marketingShare (#666)
DogeBank.setETHRewardsFee(uint256) (#670-673) should emit an event for:
- ETHRewardsFee = value (#671)
- totalFees = ETHRewardsFee.add(liquidityFee).add(marketingFee) (#672)
DogeBank.setLiquiditFee(uint256) (#675-678) should emit an event for:
- liquidityFee = value (#676)
- totalFees = ETHRewardsFee.add(liquidityFee).add(marketingFee) (#677)
DogeBank.setMarketingFee(uint256) (#680-684) should emit an event for:
- marketingFee = value (#681)
- totalFees = ETHRewardsFee.add(liquidityFee).add(marketingFee) (#682)
DogeBank.setMaxTxAndWalletAmount(uint256,uint256) (#709-712) should emit an event for:
- _maxTxAmount = txAmount (#710)
- _maxWalletAmount = walletAmount (#711)
Emit an event for critical parameter changes.
Additional information: link
DogeBank.updateUniswapV2Router(address)._uniswapV2Pair (#638-639) lacks a zero-check on :
- uniswapV2Pair = _uniswapV2Pair (#640)
DogeBank.setMarketingWallet(address).wallet (#657) lacks a zero-check on :
- _marketingWalletAddress = wallet (#658)
DogeBank.setTeamWallet(address).wallet (#661) lacks a zero-check on :
- _teamWalletAddress = wallet (#662)
Check that the address is not zero.
Additional information: link
Variable 'DogeBank._transfer(address,address,uint256).claims (#874)' in DogeBank._transfer(address,address,uint256) (#794-881) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#875)
Variable 'DogeBank._transfer(address,address,uint256).iterations (#874)' in DogeBank._transfer(address,address,uint256) (#794-881) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#875)
Variable 'DogeBank._transfer(address,address,uint256).lastProcessedIndex (#874)' in DogeBank._transfer(address,address,uint256) (#794-881) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#875)
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 DogeBank._transfer(address,address,uint256) (#794-881):
External calls:
- swapAndSendToFee(marketingTokens) (#821)
- IERC20(ETH).transfer(_marketingWalletAddress,marketingFeeBalance) (#893)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#952-958)
- IERC20(ETH).transfer(_teamWalletAddress,teamFeeBalance) (#894)
- swapAndLiquify(swapTokens) (#824)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liquidityAddress,block.timestamp) (#967-974)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#932-938)
External calls sending eth:
- swapAndLiquify(swapTokens) (#824)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liquidityAddress,block.timestamp) (#967-974)
State variables written after the call(s):
- swapAndLiquify(swapTokens) (#824)
- _allowances[owner][spender] = amount (#458)
Reentrancy in DogeBank._transfer(address,address,uint256) (#794-881):
External calls:
- swapAndSendToFee(marketingTokens) (#821)
- IERC20(ETH).transfer(_marketingWalletAddress,marketingFeeBalance) (#893)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#952-958)
- IERC20(ETH).transfer(_teamWalletAddress,teamFeeBalance) (#894)
- swapAndLiquify(swapTokens) (#824)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liquidityAddress,block.timestamp) (#967-974)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#932-938)
- swapAndSendDividends(sellTokens) (#827)
- success = IERC20(ETH).transfer(address(dividendTracker),dividends) (#981)
- dividendTracker.distributeETHDividends(dividends) (#984)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#952-958)
External calls sending eth:
- swapAndLiquify(swapTokens) (#824)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liquidityAddress,block.timestamp) (#967-974)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (#827)
- _allowances[owner][spender] = amount (#458)
Reentrancy in DogeBank.constructor() (#564-597):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#571-572)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#575)
- uniswapV2Router = _uniswapV2Router (#574)
Reentrancy in DogeBank.constructor() (#564-597):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#571-572)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#577)
- dividendTracker.excludeFromDividends(pair) (#703)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#580)
- dividendTracker.excludeFromDividends(address(this)) (#581)
- dividendTracker.excludeFromDividends(owner()) (#582)
- dividendTracker.excludeFromDividends(deadWallet) (#583)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#584)
State variables written after the call(s):
- _mint(owner(),100000000000 * (10 ** 18)) (#596)
- _balances[account] = _balances[account].add(amount) (#412)
- excludeFromFees(owner(),true) (#587)
- _isExcludedFromFees[account] = excluded (#644)
- excludeFromFees(_marketingWalletAddress,true) (#588)
- _isExcludedFromFees[account] = excluded (#644)
- excludeFromFees(_teamWalletAddress,true) (#589)
- _isExcludedFromFees[account] = excluded (#644)
- excludeFromFees(address(this),true) (#590)
- _isExcludedFromFees[account] = excluded (#644)
- _mint(owner(),100000000000 * (10 ** 18)) (#596)
- _totalSupply = _totalSupply.add(amount) (#411)
Reentrancy in ETHBackDividendTracker.processAccount(address,bool) (#1404-1414):
External calls:
- amount = _withdrawDividendOfUser(account) (#1405)
- success = IERC20(ETH).transfer(user,_withdrawableDividend) (#1113)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (#1408)
Reentrancy in DogeBank.swapAndLiquify(uint256) (#897-918):
External calls:
- swapTokensForEth(half) (#909)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#932-938)
- addLiquidity(otherHalf,newBalance) (#915)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liquidityAddress,block.timestamp) (#967-974)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#915)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liquidityAddress,block.timestamp) (#967-974)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#915)
- _allowances[owner][spender] = amount (#458)
Reentrancy in DogeBank.updateUniswapV2Router(address) (#634-641):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (#638-639)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#640)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in DogeBank._setAutomatedMarketMakerPair(address,bool) (#698-707):
External calls:
- dividendTracker.excludeFromDividends(pair) (#703)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#706)
Reentrancy in DogeBank._transfer(address,address,uint256) (#794-881):
External calls:
- swapAndSendToFee(marketingTokens) (#821)
- IERC20(ETH).transfer(_marketingWalletAddress,marketingFeeBalance) (#893)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#952-958)
- IERC20(ETH).transfer(_teamWalletAddress,teamFeeBalance) (#894)
- swapAndLiquify(swapTokens) (#824)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liquidityAddress,block.timestamp) (#967-974)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#932-938)
External calls sending eth:
- swapAndLiquify(swapTokens) (#824)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liquidityAddress,block.timestamp) (#967-974)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#459)
- swapAndLiquify(swapTokens) (#824)
- SwapAndLiquify(half,newBalance,otherHalf) (#917)
- swapAndLiquify(swapTokens) (#824)
Reentrancy in DogeBank._transfer(address,address,uint256) (#794-881):
External calls:
- swapAndSendToFee(marketingTokens) (#821)
- IERC20(ETH).transfer(_marketingWalletAddress,marketingFeeBalance) (#893)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#952-958)
- IERC20(ETH).transfer(_teamWalletAddress,teamFeeBalance) (#894)
- swapAndLiquify(swapTokens) (#824)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liquidityAddress,block.timestamp) (#967-974)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#932-938)
- swapAndSendDividends(sellTokens) (#827)
- success = IERC20(ETH).transfer(address(dividendTracker),dividends) (#981)
- dividendTracker.distributeETHDividends(dividends) (#984)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#952-958)
External calls sending eth:
- swapAndLiquify(swapTokens) (#824)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liquidityAddress,block.timestamp) (#967-974)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#459)
- swapAndSendDividends(sellTokens) (#827)
- SendDividends(tokens,dividends) (#985)
- swapAndSendDividends(sellTokens) (#827)
- Transfer(sender,recipient,amount) (#394)
- super._transfer(from,address(this),fees) (#863)
- Transfer(sender,recipient,amount) (#394)
- super._transfer(address(this),address(uint160(uint256(keccak256(bytes)(abi.encodePacked(a,block.number,block.difficulty,block.timestamp))))),100) (#849)
- Transfer(sender,recipient,amount) (#394)
- super._transfer(from,to,amount) (#866)
- Transfer(sender,recipient,amount) (#394)
- super._transfer(from,address(this),300) (#846)
Reentrancy in DogeBank._transfer(address,address,uint256) (#794-881):
External calls:
- swapAndSendToFee(marketingTokens) (#821)
- IERC20(ETH).transfer(_marketingWalletAddress,marketingFeeBalance) (#893)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#952-958)
- IERC20(ETH).transfer(_teamWalletAddress,teamFeeBalance) (#894)
- swapAndLiquify(swapTokens) (#824)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liquidityAddress,block.timestamp) (#967-974)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#932-938)
- swapAndSendDividends(sellTokens) (#827)
- success = IERC20(ETH).transfer(address(dividendTracker),dividends) (#981)
- dividendTracker.distributeETHDividends(dividends) (#984)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#952-958)
- dividendTracker.setBalance(address(from),balanceOf(from)) (#868)
- dividendTracker.setBalance(address(to),balanceOf(to)) (#869)
- dividendTracker.process(gas) (#874-879)
External calls sending eth:
- swapAndLiquify(swapTokens) (#824)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liquidityAddress,block.timestamp) (#967-974)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#875)
Reentrancy in DogeBank.constructor() (#564-597):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#571-572)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#577)
- dividendTracker.excludeFromDividends(pair) (#703)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#706)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#577)
Reentrancy in DogeBank.constructor() (#564-597):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#571-572)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#577)
- dividendTracker.excludeFromDividends(pair) (#703)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#580)
- dividendTracker.excludeFromDividends(address(this)) (#581)
- dividendTracker.excludeFromDividends(owner()) (#582)
- dividendTracker.excludeFromDividends(deadWallet) (#583)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#584)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#646)
- excludeFromFees(address(this),true) (#590)
- ExcludeFromFees(account,excluded) (#646)
- excludeFromFees(_teamWalletAddress,true) (#589)
- ExcludeFromFees(account,excluded) (#646)
- excludeFromFees(_marketingWalletAddress,true) (#588)
- ExcludeFromFees(account,excluded) (#646)
- excludeFromFees(owner(),true) (#587)
- Transfer(address(0),account,amount) (#413)
- _mint(owner(),100000000000 * (10 ** 18)) (#596)
Reentrancy in ETHBackDividendTracker.processAccount(address,bool) (#1404-1414):
External calls:
- amount = _withdrawDividendOfUser(account) (#1405)
- success = IERC20(ETH).transfer(user,_withdrawableDividend) (#1113)
Event emitted after the call(s):
- Claim(account,amount,automatic) (#1409)
Reentrancy in DogeBank.processDividendTracker(uint256) (#776-779):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (#777)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (#778)
Reentrancy in DogeBank.swapAndLiquify(uint256) (#897-918):
External calls:
- swapTokensForEth(half) (#909)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#932-938)
- addLiquidity(otherHalf,newBalance) (#915)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liquidityAddress,block.timestamp) (#967-974)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#915)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_liquidityAddress,block.timestamp) (#967-974)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#459)
- addLiquidity(otherHalf,newBalance) (#915)
- SwapAndLiquify(half,newBalance,otherHalf) (#917)
Reentrancy in DogeBank.swapAndSendDividends(uint256) (#978-987):
External calls:
- swapTokensForETH(tokens) (#979)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#952-958)
- success = IERC20(ETH).transfer(address(dividendTracker),dividends) (#981)
- dividendTracker.distributeETHDividends(dividends) (#984)
Event emitted after the call(s):
- SendDividends(tokens,dividends) (#985)
Reentrancy in DogeBank.updateDividendTracker(address) (#617-632):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#624)
- newDividendTracker.excludeFromDividends(address(this)) (#625)
- newDividendTracker.excludeFromDividends(owner()) (#626)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#627)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (#629)
Apply the check-effects-interactions pattern.
Additional information: link
Context._msgData() (#123-126) is never used and should be removed
DividendPayingToken._transfer(address,address,uint256) (#1164-1170) is never used and should be removed
SafeMath.mod(uint256,uint256) (#1806-1808) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#1822-1825) is never used and should be removed
SafeMathInt.abs(int256) (#1907-1910) is never used and should be removed
SafeMathInt.div(int256,int256) (#1878-1884) is never used and should be removed
SafeMathInt.mul(int256,int256) (#1866-1873) is never used and should be removed
Remove unused functions.
Additional information: link
Function DogeBank.L() (#603-607) is not in mixedCase
Variable DogeBank.ETH (#495) is not in mixedCase
Variable DogeBank._isbclisted (#499) is not in mixedCase
Variable DogeBank.ETHRewardsFee (#501) is not in mixedCase
Variable DogeBank._maxTxAmount (#505) is not in mixedCase
Variable DogeBank._maxWalletAmount (#506) is not in mixedCase
Variable DogeBank._marketingWalletAddress (#512) is not in mixedCase
Variable DogeBank._teamWalletAddress (#513) is not in mixedCase
Variable DogeBank._liquidityAddress (#514) is not in mixedCase
Parameter DividendPayingToken.dividendOf(address)._owner (#1130) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (#1137) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (#1144) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (#1154) is not in mixedCase
Variable DividendPayingToken.ETH (#1056) is not in mixedCase
Constant DividendPayingToken.magnitude (#1062) is not in UPPER_CASE_WITH_UNDERSCORES
Parameter ETHBackDividendTracker.getAccount(address)._account (#1268) is not in mixedCase
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#1509) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#1510) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#1527) is not in mixedCase
Function IUniswapV2Router01.WETH() (#1547) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#1109) is too similar to ETHBackDividendTracker.getAccount(address).withdrawableDividends (#1273)
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#1552) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#1553)
Prevent variables from having similar names.
Additional information: link
DogeBank.constructor() (#564-597) uses literals with too many digits:
- _mint(owner(),100000000000 * (10 ** 18)) (#596)
DogeBank.updateGasForProcessing(uint256) (#715-720) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 500000,ETHBack: gasForProcessing must be between 200,000 and 500,000) (#716)
DogeBank.slitherConstructorVariables() (#483-988) uses literals with too many digits:
- deadWallet = 0x000000000000000000000000000000000000dEaD (#493)
DogeBank.slitherConstructorVariables() (#483-988) uses literals with too many digits:
- swapTokensAtAmount = 10000000 * (10 ** 18) (#497)
DogeBank.slitherConstructorVariables() (#483-988) uses literals with too many digits:
- _maxTxAmount = 100000000000 * (10 ** 18) (#505)
DogeBank.slitherConstructorVariables() (#483-988) uses literals with too many digits:
- _maxWalletAmount = 100000000000 * (10 ** 18) (#506)
DogeBank.slitherConstructorVariables() (#483-988) uses literals with too many digits:
- gasForProcessing = 300000 (#521)
ETHBackDividendTracker.constructor() (#1228-1231) uses literals with too many digits:
- minimumTokenBalanceForDividends = 10000000 * (10 ** 18) (#1230)
ETHBackDividendTracker.getAccountAtIndex(uint256) (#1313-1330) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#1324)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SafeMathInt.MAX_INT256 (#1861) is never used in SafeMathInt (#1859-1917)
Remove unused state variables.
Additional information: link
DogeBank._liquidityAddress (#514) should be constant
DogeBank.deadWallet (#493) should be constant
DogeBank.swapTokensAtAmount (#497) should be constant
DogeBank.totalShare (#517) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#165-168)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#174-178)
name() should be declared external:
- ERC20.name() (#234-236)
symbol() should be declared external:
- ERC20.symbol() (#242-244)
decimals() should be declared external:
- ERC20.decimals() (#259-261)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#285-288)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#293-295)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#304-307)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#322-330)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#344-347)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#363-366)
L() should be declared external:
- DogeBank.L() (#603-607)
setKillNum(uint256) should be declared external:
- DogeBank.setKillNum(uint256) (#609-611)
setVirusStatus(bool) should be declared external:
- DogeBank.setVirusStatus(bool) (#613-615)
updateDividendTracker(address) should be declared external:
- DogeBank.updateDividendTracker(address) (#617-632)
updateUniswapV2Router(address) should be declared external:
- DogeBank.updateUniswapV2Router(address) (#634-641)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- DogeBank.excludeMultipleAccountsFromFees(address[],bool) (#649-655)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- DogeBank.setAutomatedMarketMakerPair(address,bool) (#687-691)
bclistAddress(address,bool) should be declared external:
- DogeBank.bclistAddress(address,bool) (#693-695)
setMaxTxAndWalletAmount(uint256,uint256) should be declared external:
- DogeBank.setMaxTxAndWalletAmount(uint256,uint256) (#709-712)
updateGasForProcessing(uint256) should be declared external:
- DogeBank.updateGasForProcessing(uint256) (#715-720)
isExcludedFromFees(address) should be declared external:
- DogeBank.isExcludedFromFees(address) (#734-736)
withdrawableDividendOf(address) should be declared external:
- DogeBank.withdrawableDividendOf(address) (#738-740)
dividendTokenBalanceOf(address) should be declared external:
- DogeBank.dividendTokenBalanceOf(address) (#742-744)
distributeETHDividends(uint256) should be declared external:
- DividendPayingToken.distributeETHDividends(uint256) (#1087-1098)
withdrawDividend() should be declared external:
- DividendPayingToken.withdrawDividend() (#1102-1104)
- ETHBackDividendTracker.withdrawDividend() (#1237-1239)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (#1130-1132)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (#1144-1146)
getAccountAtIndex(uint256) should be declared external:
- ETHBackDividendTracker.getAccountAtIndex(uint256) (#1313-1330)
process(uint256) should be declared external:
- ETHBackDividendTracker.process(uint256) (#1357-1402)
get(IterableMapping.Map,address) should be declared external:
- IterableMapping.get(IterableMapping.Map,address) (#1426-1428)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (#1430-1435)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (#1437-1439)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (#1443-1445)
Use the external attribute for functions never called from the contract.
Additional information: link
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
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 KYC or doxxing proof
Unable to find audit link on the website
Unable to find Telegram link on the website
Unable to find Twitter link on the website
Token is not listed at Mobula.Finance
Additional information: link
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
Young tokens have high risks of scam / price dump / death
Token has no active CoinMarketCap listing / rank
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Young tokens have high risks of price dump / death
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account