Welcome to The Daily Bank. Here at The Daily Bank, our core emphasis is on the sustainability of the TDB Ecosystem. The Daily Bank aims to be the center of a deflationary TDB ecosystem, that rewards users with 2% daily rewards that increase in value. By introducing an array of utilities, we are confident in bringing value to every TDB investor. When you buy into The Daily Bank, you are not buying into a drip fork, you are buying into an important key of an ecosystem.
TDB.swapETHForRewards(address) (#1272-1288) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: address(this).balance}(0,path,recipient,block.timestamp.add(300)) (#1282-1287)
TDB.addLiquidity(uint256,uint256) (#1290-1304) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1296-1303)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in TDB._transfer(address,address,uint256) (#1116-1252):
External calls:
- swapTokensForEth(swapTokens) (#1179)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1263-1269)
- addLiquidity(half,newBalance) (#1193)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1296-1303)
- swapAndSendDividends(sellTokens) (#1201)
- success = IERC20(DividendsToken).transfer(address(dividendTracker),dividends) (#1309)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: address(this).balance}(0,path,recipient,block.timestamp.add(300)) (#1282-1287)
External calls sending eth:
- transferToWallet(address(marketingWallet),marketingAmount) (#1181)
- recipient.transfer(amount) (#1368)
- addLiquidity(half,newBalance) (#1193)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1296-1303)
- swapAndSendDividends(sellTokens) (#1201)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: address(this).balance}(0,path,recipient,block.timestamp.add(300)) (#1282-1287)
State variables written after the call(s):
- super._transfer(from,address(this),SellFees) (#1221)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#475)
- _balances[recipient] = _balances[recipient].add(amount) (#476)
- super._transfer(from,to,amount) (#1222)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#475)
- _balances[recipient] = _balances[recipient].add(amount) (#476)
- super._transfer(from,address(this),BuyFees) (#1229)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#475)
- _balances[recipient] = _balances[recipient].add(amount) (#476)
- super._transfer(from,to,amount) (#1230)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#475)
- _balances[recipient] = _balances[recipient].add(amount) (#476)
- super._transfer(from,to,amount) (#1237)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#475)
- _balances[recipient] = _balances[recipient].add(amount) (#476)
- swapping = false (#1204)
Apply the check-effects-interactions pattern.
Additional information: link
TDB.TeamReleaseLiquidity() (#981-1000) ignores return value by liquidityToken.transfer(liquidityWallet,amount) (#992)
TDB.TeamReleaseLiquidity() (#981-1000) ignores return value by liquidityToken.transfer(liquidityWallet,amount) (#998)
TDB.withdrawRemainingBEP20Token(address,address) (#1356-1360) ignores return value by BEP20.transfer(account,balance) (#1359)
TDBDividendTracker.withdrawRemainingBEP20Token(address,address) (#1606-1609) ignores return value by IERC20(token).transfer(address(account),IERC20(token).balanceOf(address(this))) (#1608)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Contract locking ether found:
Contract TDBDividendTracker (#1372-1611) has payable functions:
- DividendPayingToken.receive() (#610-611)
- DividendPayingToken.distributeDividends() (#617-628)
- IDividendPayingToken.distributeDividends() (#342)
But does not have a function to withdraw the ether
Remove the payable attribute or add a withdraw function.
Additional information: link
TDBDividendTracker.updateClaimWait(uint256) (#1428-1433) contains a tautology or contradiction:
- require(bool,string)(newClaimWait >= 0 && newClaimWait <= 86400,TDB_Dividend_Tracker: claimWait must be updated to between 1 and 24 hours) (#1429)
Fix the incorrect comparison by changing the value type or the comparison.
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.
Contract ownership is not renounced (belongs to a wallet)
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#647-663):
External calls:
- success = IERC20(DividendsToken).transfer(user,_withdrawableDividend) (#652)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (#655)
Reentrancy in TDB.updateDividendTracker(address) (#884-898):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#891)
- newDividendTracker.excludeFromDividends(address(this)) (#892)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#893)
State variables written after the call(s):
- dividendTracker = newDividendTracker (#897)
Apply the check-effects-interactions pattern.
Additional information: link
TDB._transfer(address,address,uint256).iterations (#1247) is a local variable never initialized
TDB._transfer(address,address,uint256).claims (#1247) is a local variable never initialized
TDB._transfer(address,address,uint256).lastProcessedIndex (#1247) 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
TDB._transfer(address,address,uint256) (#1116-1252) ignores return value by dividendTracker.process(gas) (#1247-1250)
TDB.addLiquidity(uint256,uint256) (#1290-1304) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1296-1303)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.constructor(string,string)._name (#606) shadows:
- ERC20._name (#409) (state variable)
DividendPayingToken.constructor(string,string)._symbol (#606) shadows:
- ERC20._symbol (#410) (state variable)
DividendPayingToken.dividendOf(address)._owner (#665) shadows:
- Ownable._owner (#298) (state variable)
DividendPayingToken.withdrawableDividendOf(address)._owner (#669) shadows:
- Ownable._owner (#298) (state variable)
DividendPayingToken.withdrawnDividendOf(address)._owner (#673) shadows:
- Ownable._owner (#298) (state variable)
DividendPayingToken.accumulativeDividendOf(address)._owner (#677) shadows:
- Ownable._owner (#298) (state variable)
Rename the local variables that shadow another component.
Additional information: link
TDB.updateSwapAmount(uint256) (#879-882) should emit an event for:
- contractTokenBalanceAmount = amount * (10 ** 18) (#880)
- swapTokensAtAmount = amount * (10 ** 18) (#881)
TDB.updateBuyFees(uint8,uint8,uint8) (#1319-1326) should emit an event for:
- _buyLiquidityFee = newBuyLiquidityFee (#1320)
- _buyMarketingFee = newBuyMarketingFee (#1321)
- _buyRewardsFee = newBuyRewardsFee (#1322)
TDB.updateSellFees(uint8,uint8,uint8) (#1328-1335) should emit an event for:
- _sellLiquidityFee = newSellLiquidityFee (#1329)
- _sellMarketingFee = newSellMarketingFee (#1330)
- _sellRewardsFee = newSellRewardsFee (#1331)
TDB.updateMaxWallet(uint256) (#1337-1339) should emit an event for:
- _maxWallet = newMaxWallet * (10 ** 18) (#1338)
TDB.updateMaxBuySell(uint256,uint256) (#1341-1344) should emit an event for:
- _maxBuy = newMaxBuy * (10 ** 18) (#1342)
- _maxSell = newMaxSell * (10 ** 18) (#1343)
Emit an event for critical parameter changes.
Additional information: link
TDB.SetupLiquidityTokenAddress(address).liquidityTokenAddress (#953) lacks a zero-check on :
- _liquidityTokenAddress = liquidityTokenAddress (#954)
DividendPayingToken.updateDividendToken(address)._DividendsToken (#613) lacks a zero-check on :
- DividendsToken = _DividendsToken (#614)
Check that the address is not zero.
Additional information: link
DividendPayingToken._withdrawDividendOfUser(address) (#647-663) has external calls inside a loop: success = IERC20(DividendsToken).transfer(user,_withdrawableDividend) (#652)
Favor pull over push strategy for external calls.
Additional information: link
Variable 'TDB._transfer(address,address,uint256).lastProcessedIndex (#1247)' in TDB._transfer(address,address,uint256) (#1116-1252) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1248)
Variable 'TDB._transfer(address,address,uint256).claims (#1247)' in TDB._transfer(address,address,uint256) (#1116-1252) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1248)
Variable 'TDB._transfer(address,address,uint256).iterations (#1247)' in TDB._transfer(address,address,uint256) (#1116-1252) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1248)
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 TDB._transfer(address,address,uint256) (#1116-1252):
External calls:
- swapTokensForEth(swapTokens) (#1179)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1263-1269)
- addLiquidity(half,newBalance) (#1193)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1296-1303)
External calls sending eth:
- transferToWallet(address(marketingWallet),marketingAmount) (#1181)
- recipient.transfer(amount) (#1368)
- addLiquidity(half,newBalance) (#1193)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1296-1303)
State variables written after the call(s):
- addLiquidity(half,newBalance) (#1193)
- _allowances[owner][spender] = amount (#504)
Reentrancy in TDB._transfer(address,address,uint256) (#1116-1252):
External calls:
- swapTokensForEth(swapTokens) (#1179)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1263-1269)
- addLiquidity(half,newBalance) (#1193)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1296-1303)
- swapAndSendDividends(sellTokens) (#1201)
- success = IERC20(DividendsToken).transfer(address(dividendTracker),dividends) (#1309)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: address(this).balance}(0,path,recipient,block.timestamp.add(300)) (#1282-1287)
External calls sending eth:
- transferToWallet(address(marketingWallet),marketingAmount) (#1181)
- recipient.transfer(amount) (#1368)
- addLiquidity(half,newBalance) (#1193)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1296-1303)
- swapAndSendDividends(sellTokens) (#1201)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: address(this).balance}(0,path,recipient,block.timestamp.add(300)) (#1282-1287)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (#1201)
- _allowances[owner][spender] = amount (#504)
Reentrancy in TDB.constructor() (#811-869):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#845-846)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#849)
- uniswapV2Router = _uniswapV2Router (#848)
Reentrancy in TDB.constructor() (#811-869):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#845-846)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#851)
- dividendTracker.excludeFromDividends(pair) (#946)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#854)
- dividendTracker.excludeFromDividends(address(this)) (#855)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#856)
- dividendTracker.excludeFromDividends(address(0x000000000000000000000000000000000000dEaD)) (#857)
State variables written after the call(s):
- _mint(owner(),1000000 * (10 ** 18)) (#868)
- _balances[account] = _balances[account].add(amount) (#486)
- excludeFromFees(liquidityWallet,true) (#860)
- _isExcludedFromFees[account] = excluded (#915)
- excludeFromFees(marketingWallet,true) (#861)
- _isExcludedFromFees[account] = excluded (#915)
- excludeFromFees(address(this),true) (#862)
- _isExcludedFromFees[account] = excluded (#915)
- _mint(owner(),1000000 * (10 ** 18)) (#868)
- _totalSupply = _totalSupply.add(amount) (#485)
Reentrancy in TDBDividendTracker.processAccount(address,bool) (#1594-1604):
External calls:
- amount = _withdrawDividendOfUser(account) (#1595)
- success = IERC20(DividendsToken).transfer(user,_withdrawableDividend) (#652)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (#1598)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in TDB._setAutomatedMarketMakerPair(address,bool) (#941-950):
External calls:
- dividendTracker.excludeFromDividends(pair) (#946)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#949)
Reentrancy in TDB._transfer(address,address,uint256) (#1116-1252):
External calls:
- swapTokensForEth(swapTokens) (#1179)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1263-1269)
External calls sending eth:
- transferToWallet(address(marketingWallet),marketingAmount) (#1181)
- recipient.transfer(amount) (#1368)
Event emitted after the call(s):
- Transfer(address(this),marketingWallet,address(this).balance.mul(_sellMarketingFee).div(swapAmount)) (#1183)
Reentrancy in TDB._transfer(address,address,uint256) (#1116-1252):
External calls:
- swapTokensForEth(swapTokens) (#1179)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1263-1269)
- addLiquidity(half,newBalance) (#1193)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1296-1303)
External calls sending eth:
- transferToWallet(address(marketingWallet),marketingAmount) (#1181)
- recipient.transfer(amount) (#1368)
- addLiquidity(half,newBalance) (#1193)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1296-1303)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#505)
- addLiquidity(half,newBalance) (#1193)
- SwapAndLiquify(otherHalf,newBalance,half) (#1195)
Reentrancy in TDB._transfer(address,address,uint256) (#1116-1252):
External calls:
- swapTokensForEth(swapTokens) (#1179)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1263-1269)
- addLiquidity(half,newBalance) (#1193)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1296-1303)
- swapAndSendDividends(sellTokens) (#1201)
- success = IERC20(DividendsToken).transfer(address(dividendTracker),dividends) (#1309)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: address(this).balance}(0,path,recipient,block.timestamp.add(300)) (#1282-1287)
External calls sending eth:
- transferToWallet(address(marketingWallet),marketingAmount) (#1181)
- recipient.transfer(amount) (#1368)
- addLiquidity(half,newBalance) (#1193)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1296-1303)
- swapAndSendDividends(sellTokens) (#1201)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: address(this).balance}(0,path,recipient,block.timestamp.add(300)) (#1282-1287)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#505)
- swapAndSendDividends(sellTokens) (#1201)
- SendDividends(tokens,dividends) (#1312)
- swapAndSendDividends(sellTokens) (#1201)
- Transfer(sender,recipient,amount) (#477)
- super._transfer(from,address(this),BuyFees) (#1229)
- Transfer(sender,recipient,amount) (#477)
- super._transfer(from,to,amount) (#1230)
- Transfer(sender,recipient,amount) (#477)
- super._transfer(from,to,amount) (#1237)
- Transfer(sender,recipient,amount) (#477)
- super._transfer(from,to,amount) (#1222)
- Transfer(sender,recipient,amount) (#477)
- super._transfer(from,address(this),SellFees) (#1221)
Reentrancy in TDB._transfer(address,address,uint256) (#1116-1252):
External calls:
- swapTokensForEth(swapTokens) (#1179)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1263-1269)
- addLiquidity(half,newBalance) (#1193)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1296-1303)
- swapAndSendDividends(sellTokens) (#1201)
- success = IERC20(DividendsToken).transfer(address(dividendTracker),dividends) (#1309)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: address(this).balance}(0,path,recipient,block.timestamp.add(300)) (#1282-1287)
- dividendTracker.setBalance(address(from),balanceOf(from)) (#1241)
- dividendTracker.setBalance(address(to),balanceOf(to)) (#1242)
- dividendTracker.process(gas) (#1247-1250)
External calls sending eth:
- transferToWallet(address(marketingWallet),marketingAmount) (#1181)
- recipient.transfer(amount) (#1368)
- addLiquidity(half,newBalance) (#1193)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1296-1303)
- swapAndSendDividends(sellTokens) (#1201)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: address(this).balance}(0,path,recipient,block.timestamp.add(300)) (#1282-1287)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1248)
Reentrancy in TDB.constructor() (#811-869):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#845-846)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#851)
- dividendTracker.excludeFromDividends(pair) (#946)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#949)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#851)
Reentrancy in TDB.constructor() (#811-869):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#845-846)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#851)
- dividendTracker.excludeFromDividends(pair) (#946)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#854)
- dividendTracker.excludeFromDividends(address(this)) (#855)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#856)
- dividendTracker.excludeFromDividends(address(0x000000000000000000000000000000000000dEaD)) (#857)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#917)
- excludeFromFees(address(this),true) (#862)
- ExcludeFromFees(account,excluded) (#917)
- excludeFromFees(marketingWallet,true) (#861)
- ExcludeFromFees(account,excluded) (#917)
- excludeFromFees(liquidityWallet,true) (#860)
- Transfer(address(0),account,amount) (#487)
- _mint(owner(),1000000 * (10 ** 18)) (#868)
Reentrancy in TDBDividendTracker.processAccount(address,bool) (#1594-1604):
External calls:
- amount = _withdrawDividendOfUser(account) (#1595)
- success = IERC20(DividendsToken).transfer(user,_withdrawableDividend) (#652)
Event emitted after the call(s):
- Claim(account,amount,automatic) (#1599)
Reentrancy in TDB.processDividendTracker(uint256) (#1088-1091):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (#1089)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (#1090)
Reentrancy in TDB.swapAndSendDividends(uint256) (#1306-1314):
External calls:
- swapETHForRewards(address(this)) (#1307)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: address(this).balance}(0,path,recipient,block.timestamp.add(300)) (#1282-1287)
- success = IERC20(DividendsToken).transfer(address(dividendTracker),dividends) (#1309)
External calls sending eth:
- swapETHForRewards(address(this)) (#1307)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: address(this).balance}(0,path,recipient,block.timestamp.add(300)) (#1282-1287)
Event emitted after the call(s):
- SendDividends(tokens,dividends) (#1312)
Reentrancy in TDB.updateDividendTracker(address) (#884-898):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#891)
- newDividendTracker.excludeFromDividends(address(this)) (#892)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#893)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (#895)
Apply the check-effects-interactions pattern.
Additional information: link
TDB._prolongLiquidityLock(uint256) (#974-978) uses timestamp for comparisons
Dangerous comparisons:
- require(bool)(newUnlockTime > _liquidityUnlockTime) (#976)
TDB.TeamReleaseLiquidity() (#981-1000) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp >= _liquidityUnlockTime,Not yet unlocked) (#983)
TDB.getLiquidityReleaseTimeInSeconds() (#1016-1021) uses timestamp for comparisons
Dangerous comparisons:
- block.timestamp < _liquidityUnlockTime (#1017)
TDBDividendTracker.getAccount(address) (#1448-1491) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (#1488-1490)
TDBDividendTracker.canAutoClaim(uint256) (#1512-1518) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#1513)
- block.timestamp.sub(lastClaimTime) >= claimWait (#1517)
Avoid relying on block.timestamp.
Additional information: link
TDB._transfer(address,address,uint256) (#1116-1252) compares to a boolean constant:
-require(bool)(trading == true) (#1143)
TDB._transfer(address,address,uint256) (#1116-1252) compares to a boolean constant:
-require(bool)(trading == true) (#1127)
TDBDividendTracker.addToAuth(address) (#1400-1405) compares to a boolean constant:
-require(bool)(isAuth[newAuth] != true) (#1402)
Remove the equality to the boolean constant.
Additional information: link
Context._msgData() (#28-31) is never used and should be removed
ERC20._setupDecimals(uint8) (#508-510) is never used and should be removed
SafeMath.div(uint256,uint256,string) (#578-581) is never used and should be removed
SafeMath.mod(uint256,uint256) (#568-571) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#583-586) is never used and should be removed
SafeMath.tryAdd(uint256,uint256) (#517-521) is never used and should be removed
SafeMath.tryDiv(uint256,uint256) (#535-538) is never used and should be removed
SafeMath.tryMod(uint256,uint256) (#540-543) is never used and should be removed
SafeMath.tryMul(uint256,uint256) (#528-533) is never used and should be removed
SafeMath.trySub(uint256,uint256) (#523-526) is never used and should be removed
SafeMathInt.div(int256,int256) (#367-372) is never used and should be removed
SafeMathInt.mul(int256,int256) (#358-365) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version^0.8.10 (#1) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
solc-0.8.13 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
Function IUniswapV2Router01.WETH() (#36) is not in mixedCase
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#200) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#201) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#218) is not in mixedCase
Parameter DividendPayingToken.updateDividendToken(address)._DividendsToken (#613) is not in mixedCase
Parameter DividendPayingToken.dividendOf(address)._owner (#665) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (#669) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (#673) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (#677) is not in mixedCase
Constant DividendPayingToken.magnitude (#594) is not in UPPER_CASE_WITH_UNDERSCORES
Variable DividendPayingToken.DividendsToken (#599) is not in mixedCase
Event TDBblacklist(address,bool) (#778) is not in CapWords
Event TDBtradingUpdated(bool) (#781) is not in CapWords
Event TDBburningUpdated(bool) (#782) is not in CapWords
Parameter TDB.excludeFromDividends(address)._toExclude (#875) is not in mixedCase
Function TDB.SetupLiquidityTokenAddress(address) (#953-956) is not in mixedCase
Function TDB.TeamlimitLiquidityReleaseTo20Percent() (#967-969) is not in mixedCase
Function TDB.TeamUnlockLiquidityInSeconds(uint256) (#971-973) is not in mixedCase
Function TDB.TeamReleaseLiquidity() (#981-1000) is not in mixedCase
Parameter TDB.tradingEnabled(bool)._enabled (#1101) is not in mixedCase
Parameter TDB.burningEnabled(bool)._enabled (#1109) is not in mixedCase
Variable TDB.DividendsToken (#723) is not in mixedCase
Variable TDB._maxWallet (#748) is not in mixedCase
Variable TDB._maxBuy (#749) is not in mixedCase
Variable TDB._maxSell (#750) is not in mixedCase
Constant TDB.DefaultTime (#765) is not in UPPER_CASE_WITH_UNDERSCORES
Variable TDB._isBlacklisted (#770) is not in mixedCase
Parameter TDBDividendTracker.getAccount(address)._account (#1448) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#29)" inContext (#23-32)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in TDB._transfer(address,address,uint256) (#1116-1252):
External calls:
- transferToWallet(address(marketingWallet),marketingAmount) (#1181)
- recipient.transfer(amount) (#1368)
Event emitted after the call(s):
- Transfer(address(this),marketingWallet,address(this).balance.mul(_sellMarketingFee).div(swapAmount)) (#1183)
Reentrancy in TDB._transfer(address,address,uint256) (#1116-1252):
External calls:
- transferToWallet(address(marketingWallet),marketingAmount) (#1181)
- recipient.transfer(amount) (#1368)
External calls sending eth:
- transferToWallet(address(marketingWallet),marketingAmount) (#1181)
- recipient.transfer(amount) (#1368)
- addLiquidity(half,newBalance) (#1193)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1296-1303)
State variables written after the call(s):
- addLiquidity(half,newBalance) (#1193)
- _allowances[owner][spender] = amount (#504)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#505)
- addLiquidity(half,newBalance) (#1193)
- SwapAndLiquify(otherHalf,newBalance,half) (#1195)
Reentrancy in TDB._transfer(address,address,uint256) (#1116-1252):
External calls:
- transferToWallet(address(marketingWallet),marketingAmount) (#1181)
- recipient.transfer(amount) (#1368)
External calls sending eth:
- transferToWallet(address(marketingWallet),marketingAmount) (#1181)
- recipient.transfer(amount) (#1368)
- addLiquidity(half,newBalance) (#1193)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1296-1303)
- swapAndSendDividends(sellTokens) (#1201)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: address(this).balance}(0,path,recipient,block.timestamp.add(300)) (#1282-1287)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (#1201)
- _allowances[owner][spender] = amount (#504)
- super._transfer(from,address(this),SellFees) (#1221)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#475)
- _balances[recipient] = _balances[recipient].add(amount) (#476)
- super._transfer(from,to,amount) (#1222)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#475)
- _balances[recipient] = _balances[recipient].add(amount) (#476)
- super._transfer(from,address(this),BuyFees) (#1229)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#475)
- _balances[recipient] = _balances[recipient].add(amount) (#476)
- super._transfer(from,to,amount) (#1230)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#475)
- _balances[recipient] = _balances[recipient].add(amount) (#476)
- super._transfer(from,to,amount) (#1237)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#475)
- _balances[recipient] = _balances[recipient].add(amount) (#476)
- swapping = false (#1204)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#505)
- swapAndSendDividends(sellTokens) (#1201)
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1248)
- SendDividends(tokens,dividends) (#1312)
- swapAndSendDividends(sellTokens) (#1201)
- Transfer(sender,recipient,amount) (#477)
- super._transfer(from,to,amount) (#1230)
- Transfer(sender,recipient,amount) (#477)
- super._transfer(from,to,amount) (#1237)
- Transfer(sender,recipient,amount) (#477)
- super._transfer(from,address(this),BuyFees) (#1229)
- Transfer(sender,recipient,amount) (#477)
- super._transfer(from,to,amount) (#1222)
- Transfer(sender,recipient,amount) (#477)
- super._transfer(from,address(this),SellFees) (#1221)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#41) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#42)
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#648) is too similar to TDBDividendTracker.getAccount(address).withdrawableDividends (#1453)
Prevent variables from having similar names.
Additional information: link
TDB.constructor() (#811-869) uses literals with too many digits:
- dividendTracker.excludeFromDividends(address(0x000000000000000000000000000000000000dEaD)) (#857)
TDB.constructor() (#811-869) uses literals with too many digits:
- _mint(owner(),1000000 * (10 ** 18)) (#868)
TDB.updateGasForProcessing(uint256) (#1023-1028) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 500000,TDB: gasForProcessing must be between 200,000 and 500,000) (#1024)
TDB._transfer(address,address,uint256) (#1116-1252) uses literals with too many digits:
- super._transfer(address(this),0x000000000000000000000000000000000000dEaD,burningAmount) (#1158)
TDB._transfer(address,address,uint256) (#1116-1252) uses literals with too many digits:
- Transfer(address(this),0x000000000000000000000000000000000000dEaD,burningAmount) (#1160)
TDB._transfer(address,address,uint256) (#1116-1252) uses literals with too many digits:
- super._transfer(address(this),0x000000000000000000000000000000000000dEaD,burningAmount_scope_0) (#1163)
TDB._transfer(address,address,uint256) (#1116-1252) uses literals with too many digits:
- Transfer(address(this),0x000000000000000000000000000000000000dEaD,burningAmount_scope_0) (#1165)
TDB.burnRemainingToken() (#1362-1365) uses literals with too many digits:
- super._transfer(address(this),0x000000000000000000000000000000000000dEaD,balance) (#1364)
TDB.slitherConstructorVariables() (#717-1370) uses literals with too many digits:
- gasForProcessing = 500000 (#761)
TDBDividendTracker.getAccountAtIndex(uint256) (#1493-1510) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#1504)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
TDB._previousMaxWallet (#751) is never used in TDB (#717-1370)
TDB._previousMaxSell (#752) is never used in TDB (#717-1370)
TDB._previousMaxBuy (#753) is never used in TDB (#717-1370)
TDB.biggestBuyReward (#762) is never used in TDB (#717-1370)
TDB.biggestBuyTimer (#763) is never used in TDB (#717-1370)
DividendPayingToken.lastAmount (#597) is never used in TDBDividendTracker (#1372-1611)
Remove unused state variables.
Additional information: link
DividendPayingToken.lastAmount (#597) should be constant
TDB._previousMaxBuy (#753) should be constant
TDB._previousMaxSell (#752) should be constant
TDB._previousMaxWallet (#751) should be constant
TDB.biggestBuyReward (#762) should be constant
TDB.biggestBuyTimer (#763) 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) (#245-247)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (#249-254)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (#256-258)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (#262-264)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#317-320)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#322-326)
name() should be declared external:
- ERC20.name() (#419-421)
symbol() should be declared external:
- ERC20.symbol() (#423-425)
decimals() should be declared external:
- ERC20.decimals() (#427-429)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#439-442)
- TDBDividendTracker.transfer(address,uint256) (#1407-1412)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#444-446)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#448-451)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#453-457)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#459-462)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#464-467)
updateDividendToken(address) should be declared external:
- DividendPayingToken.updateDividendToken(address) (#613-615)
distributeDividends() should be declared external:
- DividendPayingToken.distributeDividends() (#617-628)
withdrawDividend() should be declared external:
- DividendPayingToken.withdrawDividend() (#643-645)
- TDBDividendTracker.withdrawDividend() (#1414-1416)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (#665-667)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (#673-675)
excludeFromDividends(address) should be declared external:
- TDB.excludeFromDividends(address) (#875-877)
updateSwapAmount(uint256) should be declared external:
- TDB.updateSwapAmount(uint256) (#879-882)
updateDividendTracker(address) should be declared external:
- TDB.updateDividendTracker(address) (#884-898)
updateDividendToken(address) should be declared external:
- TDB.updateDividendToken(address) (#900-905)
updateUniswapV2Router(address) should be declared external:
- TDB.updateUniswapV2Router(address) (#907-911)
addToBlacklist(address,bool) should be declared external:
- TDB.addToBlacklist(address,bool) (#920-925)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- TDB.excludeMultipleAccountsFromFees(address[],bool) (#927-933)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- TDB.setAutomatedMarketMakerPair(address,bool) (#935-939)
SetupLiquidityTokenAddress(address) should be declared external:
- TDB.SetupLiquidityTokenAddress(address) (#953-956)
TeamlimitLiquidityReleaseTo20Percent() should be declared external:
- TDB.TeamlimitLiquidityReleaseTo20Percent() (#967-969)
TeamUnlockLiquidityInSeconds(uint256) should be declared external:
- TDB.TeamUnlockLiquidityInSeconds(uint256) (#971-973)
TeamReleaseLiquidity() should be declared external:
- TDB.TeamReleaseLiquidity() (#981-1000)
updateLiquidityWallet(address) should be declared external:
- TDB.updateLiquidityWallet(address) (#1002-1007)
updateMarketingWallet(address) should be declared external:
- TDB.updateMarketingWallet(address) (#1009-1014)
getLiquidityReleaseTimeInSeconds() should be declared external:
- TDB.getLiquidityReleaseTimeInSeconds() (#1016-1021)
updateGasForProcessing(uint256) should be declared external:
- TDB.updateGasForProcessing(uint256) (#1023-1028)
isExcludedFromFees(address) should be declared external:
- TDB.isExcludedFromFees(address) (#1046-1048)
isBlacklisted(address) should be declared external:
- TDB.isBlacklisted(address) (#1050-1052)
withdrawableDividendOf(address) should be declared external:
- TDB.withdrawableDividendOf(address) (#1054-1056)
dividendTokenBalanceOf(address) should be declared external:
- TDB.dividendTokenBalanceOf(address) (#1058-1060)
tradingEnabled(bool) should be declared external:
- TDB.tradingEnabled(bool) (#1101-1105)
burningEnabled(bool) should be declared external:
- TDB.burningEnabled(bool) (#1109-1113)
updateBuyFees(uint8,uint8,uint8) should be declared external:
- TDB.updateBuyFees(uint8,uint8,uint8) (#1319-1326)
updateSellFees(uint8,uint8,uint8) should be declared external:
- TDB.updateSellFees(uint8,uint8,uint8) (#1328-1335)
updateMaxWallet(uint256) should be declared external:
- TDB.updateMaxWallet(uint256) (#1337-1339)
updateMaxBuySell(uint256,uint256) should be declared external:
- TDB.updateMaxBuySell(uint256,uint256) (#1341-1344)
withdrawRemainingToken(address) should be declared external:
- TDB.withdrawRemainingToken(address) (#1351-1354)
withdrawRemainingBEP20Token(address,address) should be declared external:
- TDB.withdrawRemainingBEP20Token(address,address) (#1356-1360)
burnRemainingToken() should be declared external:
- TDB.burnRemainingToken() (#1362-1365)
addToAuth(address) should be declared external:
- TDBDividendTracker.addToAuth(address) (#1400-1405)
getAccountAtIndex(uint256) should be declared external:
- TDBDividendTracker.getAccountAtIndex(uint256) (#1493-1510)
process(uint256) should be declared external:
- TDBDividendTracker.process(uint256) (#1537-1592)
withdrawRemainingBEP20Token(address,address) should be declared external:
- TDBDividendTracker.withdrawRemainingBEP20Token(address,address) (#1606-1609)
Use the external attribute for functions never called from the contract.
Additional information: link
Contract ticker ($TDB) contains non-alphanumeric characters.
Not a direct threat, but may indicate unreliable intentions of developer. Non-alphanumeric chars (,.;!#*&") are extremely rare among low risk tokens.
Contract has 10% buy tax and 12% sell tax.
Taxes are suspiciously high (over 10%) and contract ownership is not renounced. Token has a high risk of becoming a honeypot.
Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive. Ignore for presale.
Average 30d PancakeSwap liquidity is low.
Average 30d number of PancakeSwap swaps is low.
Token is deployed only at one blockchain
Token has only one trading pair
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 verify that token and website are owned by the same team (no listings + unable to find contract on website)
Unable to verify token contract address on the website
Unable to find audit link on the website
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
Young tokens have high risks of scam / price dump / death
Alexa traffic rank is very low
Additional information: link
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Telegram account has relatively few subscribers
Twitter account has relatively few followers
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account
Twitter account has few posts