Earn BTC while Holding DogeBTC
Yes, our distribution is BITCOIN! 10% will be re-distributed among our community! 💰
DogeBTC.swapBNBForTokens(uint256) (#1727-1742) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1734-1739)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in DogeBTC._transfer(address,address,uint256) (#1621-1706):
External calls:
- swapTokensForBNB(swapTokens) (#1656)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1717-1723)
- swapBNBForTokens(buyBackBalance.div(10 ** 2).mul(rand())) (#1661)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1734-1739)
- swapAndSendDividendsInBNB(sellTokens) (#1666)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1717-1723)
- (success) = address(dividendTracker).call{value: dividends}() (#1781)
- dividendTracker.distributeDividends(dividends) (#1784)
- swapAndSendDividends(sellTokens_scope_0) (#1669)
- success = IERC20(_dividendToken).transfer(address(dividendTracker),dividends) (#1767)
- dividendTracker.distributeDividends(dividends) (#1770)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,recipient,block.timestamp) (#1754-1760)
External calls sending eth:
- transferToBuyBackWallet(address(buyBackWallet),address(this).balance.div(10 ** 2).mul(marketingDivisor)) (#1657)
- recipient.transfer(amount) (#1790)
- swapBNBForTokens(buyBackBalance.div(10 ** 2).mul(rand())) (#1661)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1734-1739)
- swapAndSendDividendsInBNB(sellTokens) (#1666)
- (success) = address(dividendTracker).call{value: dividends}() (#1781)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (#1688)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#366)
- _balances[recipient] = _balances[recipient].add(amount) (#367)
- super._transfer(from,to,amount) (#1691)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#366)
- _balances[recipient] = _balances[recipient].add(amount) (#367)
- swapping = false (#1672)
Apply the check-effects-interactions pattern.
Additional information: link
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
DogeBTC.rand() (#1599-1615) uses a dangerous strict equality:
- randNumber == 0 (#1609)
Don't use strict equality to determine if an account has enough Ether or tokens.
Additional information: link
Contract locking ether found:
Contract DogeBTCDividendTracker (#1794-2002) has payable functions:
- DividendPayingToken.receive() (#832)
- DividendPayingToken.distributeDividends() (#847-858)
- IDividendPayingToken.distributeDividends() (#745)
But does not have a function to withdraw the ether
Remove the payable attribute or add a withdraw function.
Additional information: link
DogeBTC.setMarketingDivisor(uint256) (#1415-1418) contains a tautology or contradiction:
- require(bool,string)(marketingDivisor >= 0 && marketingDivisor <= 100,DogeBTC: Marketing divisor must be between 0 (0%) and 100 (100%)) (#1416)
DogeBTC.updateDividendRewardFee(uint8) (#1473-1476) contains a tautology or contradiction:
- require(bool,string)(newFee >= 0 && newFee <= 10,DogeBTC: Dividend reward tax must be between 0 and 10) (#1474)
DogeBTC.updateMarketingFee(uint8) (#1478-1481) contains a tautology or contradiction:
- require(bool,string)(newFee >= 0 && newFee <= 10,DogeBTC: Dividend reward tax must be between 0 and 10) (#1479)
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.
DividendPayingToken.lastAmount (#810) should be constant
DogeBTC._buyBackMultiplier (#1288) should be constant
DogeBTC._dividendToken (#1262) should be constant
DogeBTC.marketingDivisor (#1286) should be constant
DogeBTC.swapTokensAtAmount (#1276) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
DogeBTC.triggerBuyBack(uint256) (#1450-1455) performs a multiplication on the result of a division:
-swapBNBForTokens(buyBackBalance.div(10 ** 2).mul(amount)) (#1454)
DogeBTC.rand() (#1599-1615) performs a multiplication on the result of a division:
-randNumber = (seed - ((seed / 100) * 100)) (#1608)
DogeBTC._transfer(address,address,uint256) (#1621-1706) performs a multiplication on the result of a division:
-fees = amount.div(100).mul(totalFees) (#1679)
DogeBTC._transfer(address,address,uint256) (#1621-1706) performs a multiplication on the result of a division:
-fees = fees.div(100).mul(sellFeeIncreaseFactor) (#1683)
DogeBTC._transfer(address,address,uint256) (#1621-1706) performs a multiplication on the result of a division:
-transferToBuyBackWallet(address(buyBackWallet),address(this).balance.div(10 ** 2).mul(marketingDivisor)) (#1657)
DogeBTC._transfer(address,address,uint256) (#1621-1706) performs a multiplication on the result of a division:
-swapBNBForTokens(buyBackBalance.div(10 ** 2).mul(rand())) (#1661)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#886-902):
External calls:
- success = IERC20(dividendToken).transfer(user,_withdrawableDividend) (#891)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (#894)
Reentrancy in DogeBTC.updateDividendTracker(address) (#1457-1471):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1464)
- newDividendTracker.excludeFromDividends(address(this)) (#1465)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1466)
State variables written after the call(s):
- dividendTracker = newDividendTracker (#1470)
Reentrancy in DogeBTC.whitelistDxSale(address,address) (#1389-1396):
External calls:
- dividendTracker.excludeFromDividends(_presaleAddress) (#1391)
- dividendTracker.excludeFromDividends(_routerAddress) (#1394)
State variables written after the call(s):
- excludeFromFees(_routerAddress,true) (#1395)
- _isExcludedFromFees[account] = excluded (#1491)
Apply the check-effects-interactions pattern.
Additional information: link
DogeBTC._transfer(address,address,uint256).iterations (#1699) is a local variable never initialized
DogeBTC._transfer(address,address,uint256).claims (#1699) is a local variable never initialized
DogeBTC._transfer(address,address,uint256).lastProcessedIndex (#1699) 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
DogeBTC.claim() (#1591-1593) ignores return value by dividendTracker.processAccount(address(msg.sender),false) (#1592)
DogeBTC._transfer(address,address,uint256) (#1621-1706) ignores return value by dividendTracker.process(gas) (#1699-1704)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.constructor(string,string)._name (#830) shadows:
- ERC20._name (#194) (state variable)
DividendPayingToken.constructor(string,string)._symbol (#830) shadows:
- ERC20._symbol (#195) (state variable)
Rename the local variables that shadow another component.
Additional information: link
DogeBTC.setMaxBuyTransaction(uint256) (#1398-1400) should emit an event for:
- maxBuyTranscationAmount = maxTxn * (10 ** 18) (#1399)
DogeBTC.setMaxSellTransaction(uint256) (#1402-1404) should emit an event for:
- maxSellTransactionAmount = maxTxn * (10 ** 18) (#1403)
DogeBTC.setMaxWalletToken(uint256) (#1406-1408) should emit an event for:
- maxWalletToken = maxToken * (10 ** 18) (#1407)
DogeBTC.setSellTransactionMultiplier(uint256) (#1410-1413) should emit an event for:
- sellFeeIncreaseFactor = multiplier (#1412)
DogeBTC.setMarketingDivisor(uint256) (#1415-1418) should emit an event for:
- sellFeeIncreaseFactor = divisor (#1417)
DogeBTC.updateMarketingFee(uint8) (#1478-1481) should emit an event for:
- marketingFee = newFee (#1480)
Emit an event for critical parameter changes.
Additional information: link
DogeBTC.whitelistDxSale(address,address)._presaleAddress (#1389) lacks a zero-check on :
- presaleAddress = _presaleAddress (#1390)
DividendPayingToken.setDividendTokenAddress(address).newToken (#880) lacks a zero-check on :
- dividendToken = newToken (#881)
Check that the address is not zero.
Additional information: link
DividendPayingToken._withdrawDividendOfUser(address) (#886-902) has external calls inside a loop: success = IERC20(dividendToken).transfer(user,_withdrawableDividend) (#891)
Favor pull over push strategy for external calls.
Additional information: link
Variable 'DogeBTC._transfer(address,address,uint256).iterations (#1699)' in DogeBTC._transfer(address,address,uint256) (#1621-1706) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1700)
Variable 'DogeBTC._transfer(address,address,uint256).claims (#1699)' in DogeBTC._transfer(address,address,uint256) (#1621-1706) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1700)
Variable 'DogeBTC._transfer(address,address,uint256).lastProcessedIndex (#1699)' in DogeBTC._transfer(address,address,uint256) (#1621-1706) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1700)
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 DogeBTC._transfer(address,address,uint256) (#1621-1706):
External calls:
- swapTokensForBNB(swapTokens) (#1656)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1717-1723)
- swapBNBForTokens(buyBackBalance.div(10 ** 2).mul(rand())) (#1661)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1734-1739)
- swapAndSendDividendsInBNB(sellTokens) (#1666)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1717-1723)
- (success) = address(dividendTracker).call{value: dividends}() (#1781)
- dividendTracker.distributeDividends(dividends) (#1784)
External calls sending eth:
- transferToBuyBackWallet(address(buyBackWallet),address(this).balance.div(10 ** 2).mul(marketingDivisor)) (#1657)
- recipient.transfer(amount) (#1790)
- swapBNBForTokens(buyBackBalance.div(10 ** 2).mul(rand())) (#1661)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1734-1739)
- swapAndSendDividendsInBNB(sellTokens) (#1666)
- (success) = address(dividendTracker).call{value: dividends}() (#1781)
State variables written after the call(s):
- swapAndSendDividendsInBNB(sellTokens) (#1666)
- _allowances[owner][spender] = amount (#428)
Reentrancy in DogeBTC._transfer(address,address,uint256) (#1621-1706):
External calls:
- swapTokensForBNB(swapTokens) (#1656)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1717-1723)
- swapBNBForTokens(buyBackBalance.div(10 ** 2).mul(rand())) (#1661)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1734-1739)
- swapAndSendDividends(sellTokens_scope_0) (#1669)
- success = IERC20(_dividendToken).transfer(address(dividendTracker),dividends) (#1767)
- dividendTracker.distributeDividends(dividends) (#1770)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,recipient,block.timestamp) (#1754-1760)
External calls sending eth:
- transferToBuyBackWallet(address(buyBackWallet),address(this).balance.div(10 ** 2).mul(marketingDivisor)) (#1657)
- recipient.transfer(amount) (#1790)
- swapBNBForTokens(buyBackBalance.div(10 ** 2).mul(rand())) (#1661)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1734-1739)
State variables written after the call(s):
- swapAndSendDividends(sellTokens_scope_0) (#1669)
- _allowances[owner][spender] = amount (#428)
Reentrancy in DogeBTC.constructor() (#1346-1383):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1360-1361)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#1364)
- uniswapV2Router = _uniswapV2Router (#1363)
Reentrancy in DogeBTC.constructor() (#1346-1383):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1360-1361)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1366)
- dividendTracker.excludeFromDividends(pair) (#1515)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#1369)
- dividendTracker.excludeFromDividends(address(this)) (#1370)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#1371)
State variables written after the call(s):
- _mint(owner(),100000000000 * (10 ** 18)) (#1382)
- _balances[account] = _balances[account].add(amount) (#386)
- excludeFromFees(buyBackWallet,true) (#1375)
- _isExcludedFromFees[account] = excluded (#1491)
- excludeFromFees(address(this),true) (#1376)
- _isExcludedFromFees[account] = excluded (#1491)
- _mint(owner(),100000000000 * (10 ** 18)) (#1382)
- _totalSupply = _totalSupply.add(amount) (#385)
Reentrancy in DogeBTCDividendTracker.processAccount(address,bool) (#1989-1999):
External calls:
- amount = _withdrawDividendOfUser(account) (#1990)
- success = IERC20(dividendToken).transfer(user,_withdrawableDividend) (#891)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (#1993)
Reentrancy in DogeBTC.whitelistDxSale(address,address) (#1389-1396):
External calls:
- dividendTracker.excludeFromDividends(_presaleAddress) (#1391)
State variables written after the call(s):
- excludeFromFees(_presaleAddress,true) (#1392)
- _isExcludedFromFees[account] = excluded (#1491)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in DogeBTC._setAutomatedMarketMakerPair(address,bool) (#1510-1519):
External calls:
- dividendTracker.excludeFromDividends(pair) (#1515)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1518)
Reentrancy in DogeBTC._transfer(address,address,uint256) (#1621-1706):
External calls:
- swapTokensForBNB(swapTokens) (#1656)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1717-1723)
- swapBNBForTokens(buyBackBalance.div(10 ** 2).mul(rand())) (#1661)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1734-1739)
External calls sending eth:
- transferToBuyBackWallet(address(buyBackWallet),address(this).balance.div(10 ** 2).mul(marketingDivisor)) (#1657)
- recipient.transfer(amount) (#1790)
- swapBNBForTokens(buyBackBalance.div(10 ** 2).mul(rand())) (#1661)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1734-1739)
Event emitted after the call(s):
- SwapETHForTokens(amount,path) (#1741)
- swapBNBForTokens(buyBackBalance.div(10 ** 2).mul(rand())) (#1661)
Reentrancy in DogeBTC._transfer(address,address,uint256) (#1621-1706):
External calls:
- swapTokensForBNB(swapTokens) (#1656)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1717-1723)
- swapBNBForTokens(buyBackBalance.div(10 ** 2).mul(rand())) (#1661)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1734-1739)
- swapAndSendDividendsInBNB(sellTokens) (#1666)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1717-1723)
- (success) = address(dividendTracker).call{value: dividends}() (#1781)
- dividendTracker.distributeDividends(dividends) (#1784)
External calls sending eth:
- transferToBuyBackWallet(address(buyBackWallet),address(this).balance.div(10 ** 2).mul(marketingDivisor)) (#1657)
- recipient.transfer(amount) (#1790)
- swapBNBForTokens(buyBackBalance.div(10 ** 2).mul(rand())) (#1661)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1734-1739)
- swapAndSendDividendsInBNB(sellTokens) (#1666)
- (success) = address(dividendTracker).call{value: dividends}() (#1781)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#429)
- swapAndSendDividendsInBNB(sellTokens) (#1666)
- SendDividends(tokens,dividends) (#1785)
- swapAndSendDividendsInBNB(sellTokens) (#1666)
Reentrancy in DogeBTC._transfer(address,address,uint256) (#1621-1706):
External calls:
- swapTokensForBNB(swapTokens) (#1656)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1717-1723)
- swapBNBForTokens(buyBackBalance.div(10 ** 2).mul(rand())) (#1661)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1734-1739)
- swapAndSendDividends(sellTokens_scope_0) (#1669)
- success = IERC20(_dividendToken).transfer(address(dividendTracker),dividends) (#1767)
- dividendTracker.distributeDividends(dividends) (#1770)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,recipient,block.timestamp) (#1754-1760)
External calls sending eth:
- transferToBuyBackWallet(address(buyBackWallet),address(this).balance.div(10 ** 2).mul(marketingDivisor)) (#1657)
- recipient.transfer(amount) (#1790)
- swapBNBForTokens(buyBackBalance.div(10 ** 2).mul(rand())) (#1661)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1734-1739)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#429)
- swapAndSendDividends(sellTokens_scope_0) (#1669)
- SendDividends(tokens,dividends) (#1771)
- swapAndSendDividends(sellTokens_scope_0) (#1669)
Reentrancy in DogeBTC._transfer(address,address,uint256) (#1621-1706):
External calls:
- swapTokensForBNB(swapTokens) (#1656)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1717-1723)
- swapBNBForTokens(buyBackBalance.div(10 ** 2).mul(rand())) (#1661)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1734-1739)
- swapAndSendDividendsInBNB(sellTokens) (#1666)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1717-1723)
- (success) = address(dividendTracker).call{value: dividends}() (#1781)
- dividendTracker.distributeDividends(dividends) (#1784)
- swapAndSendDividends(sellTokens_scope_0) (#1669)
- success = IERC20(_dividendToken).transfer(address(dividendTracker),dividends) (#1767)
- dividendTracker.distributeDividends(dividends) (#1770)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,recipient,block.timestamp) (#1754-1760)
External calls sending eth:
- transferToBuyBackWallet(address(buyBackWallet),address(this).balance.div(10 ** 2).mul(marketingDivisor)) (#1657)
- recipient.transfer(amount) (#1790)
- swapBNBForTokens(buyBackBalance.div(10 ** 2).mul(rand())) (#1661)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1734-1739)
- swapAndSendDividendsInBNB(sellTokens) (#1666)
- (success) = address(dividendTracker).call{value: dividends}() (#1781)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (#368)
- super._transfer(from,to,amount) (#1691)
- Transfer(sender,recipient,amount) (#368)
- super._transfer(from,address(this),fees) (#1688)
Reentrancy in DogeBTC._transfer(address,address,uint256) (#1621-1706):
External calls:
- swapTokensForBNB(swapTokens) (#1656)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1717-1723)
- swapBNBForTokens(buyBackBalance.div(10 ** 2).mul(rand())) (#1661)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1734-1739)
- swapAndSendDividendsInBNB(sellTokens) (#1666)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1717-1723)
- (success) = address(dividendTracker).call{value: dividends}() (#1781)
- dividendTracker.distributeDividends(dividends) (#1784)
- swapAndSendDividends(sellTokens_scope_0) (#1669)
- success = IERC20(_dividendToken).transfer(address(dividendTracker),dividends) (#1767)
- dividendTracker.distributeDividends(dividends) (#1770)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,recipient,block.timestamp) (#1754-1760)
- dividendTracker.setBalance(address(from),balanceOf(from)) (#1693)
- dividendTracker.setBalance(address(to),balanceOf(to)) (#1694)
- dividendTracker.process(gas) (#1699-1704)
External calls sending eth:
- transferToBuyBackWallet(address(buyBackWallet),address(this).balance.div(10 ** 2).mul(marketingDivisor)) (#1657)
- recipient.transfer(amount) (#1790)
- swapBNBForTokens(buyBackBalance.div(10 ** 2).mul(rand())) (#1661)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1734-1739)
- swapAndSendDividendsInBNB(sellTokens) (#1666)
- (success) = address(dividendTracker).call{value: dividends}() (#1781)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1700)
Reentrancy in DogeBTC.constructor() (#1346-1383):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1360-1361)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1366)
- dividendTracker.excludeFromDividends(pair) (#1515)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1518)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1366)
Reentrancy in DogeBTC.constructor() (#1346-1383):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1360-1361)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1366)
- dividendTracker.excludeFromDividends(pair) (#1515)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#1369)
- dividendTracker.excludeFromDividends(address(this)) (#1370)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#1371)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#1493)
- excludeFromFees(address(this),true) (#1376)
- ExcludeFromFees(account,excluded) (#1493)
- excludeFromFees(buyBackWallet,true) (#1375)
- Transfer(address(0),account,amount) (#387)
- _mint(owner(),100000000000 * (10 ** 18)) (#1382)
Reentrancy in DogeBTCDividendTracker.processAccount(address,bool) (#1989-1999):
External calls:
- amount = _withdrawDividendOfUser(account) (#1990)
- success = IERC20(dividendToken).transfer(user,_withdrawableDividend) (#891)
Event emitted after the call(s):
- Claim(account,amount,automatic) (#1994)
Reentrancy in DogeBTC.processDividendTracker(uint256) (#1586-1589):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (#1587)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (#1588)
Reentrancy in DogeBTC.swapAndSendDividends(uint256) (#1764-1773):
External calls:
- swapTokensForDividendToken(tokens,address(this)) (#1765)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,recipient,block.timestamp) (#1754-1760)
- success = IERC20(_dividendToken).transfer(address(dividendTracker),dividends) (#1767)
- dividendTracker.distributeDividends(dividends) (#1770)
Event emitted after the call(s):
- SendDividends(tokens,dividends) (#1771)
Reentrancy in DogeBTC.swapAndSendDividendsInBNB(uint256) (#1775-1787):
External calls:
- swapTokensForBNB(tokens) (#1777)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1717-1723)
- (success) = address(dividendTracker).call{value: dividends}() (#1781)
- dividendTracker.distributeDividends(dividends) (#1784)
External calls sending eth:
- (success) = address(dividendTracker).call{value: dividends}() (#1781)
Event emitted after the call(s):
- SendDividends(tokens,dividends) (#1785)
Reentrancy in DogeBTC.swapBNBForTokens(uint256) (#1727-1742):
External calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1734-1739)
Event emitted after the call(s):
- SwapETHForTokens(amount,path) (#1741)
Reentrancy in DogeBTC.updateDividendTracker(address) (#1457-1471):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1464)
- newDividendTracker.excludeFromDividends(address(this)) (#1465)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1466)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (#1468)
Reentrancy in DogeBTC.whitelistDxSale(address,address) (#1389-1396):
External calls:
- dividendTracker.excludeFromDividends(_presaleAddress) (#1391)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#1493)
- excludeFromFees(_presaleAddress,true) (#1392)
Reentrancy in DogeBTC.whitelistDxSale(address,address) (#1389-1396):
External calls:
- dividendTracker.excludeFromDividends(_presaleAddress) (#1391)
- dividendTracker.excludeFromDividends(_routerAddress) (#1394)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#1493)
- excludeFromFees(_routerAddress,true) (#1395)
Apply the check-effects-interactions pattern.
Additional information: link
DogeBTC.rand() (#1599-1615) uses timestamp for comparisons
Dangerous comparisons:
- randNumber == 0 (#1609)
DogeBTCDividendTracker.getAccount(address) (#1853-1896) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (#1893-1895)
DogeBTCDividendTracker.canAutoClaim(uint256) (#1917-1923) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#1918)
- block.timestamp.sub(lastClaimTime) >= claimWait (#1922)
Avoid relying on block.timestamp.
Additional information: link
Context._msgData() (#20-23) is never used and should be removed
DividendPayingToken._transfer(address,address,uint256) (#940-946) is never used and should be removed
ERC20._setupDecimals(uint8) (#439-441) is never used and should be removed
SafeMath.div(uint256,uint256,string) (#645-648) is never used and should be removed
SafeMath.mod(uint256,uint256) (#607-610) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#665-668) is never used and should be removed
SafeMath.tryAdd(uint256,uint256) (#479-483) is never used and should be removed
SafeMath.tryDiv(uint256,uint256) (#515-518) is never used and should be removed
SafeMath.tryMod(uint256,uint256) (#525-528) is never used and should be removed
SafeMath.tryMul(uint256,uint256) (#500-508) is never used and should be removed
SafeMath.trySub(uint256,uint256) (#490-493) is never used and should be removed
SafeMathInt.div(int256,int256) (#688-694) is never used and should be removed
SafeMathInt.mul(int256,int256) (#678-686) is never used and should be removed
Remove unused functions.
Additional information: link
Low level call in DogeBTC.swapAndSendDividendsInBNB(uint256) (#1775-1787):
- (success) = address(dividendTracker).call{value: dividends}() (#1781)
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 (#907) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (#914) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (#921) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (#930) is not in mixedCase
Constant DividendPayingToken.magnitude (#807) is not in UPPER_CASE_WITH_UNDERSCORES
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#1018) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#1019) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#1036) is not in mixedCase
Function IUniswapV2Router01.WETH() (#1056) is not in mixedCase
Parameter DogeBTC.whitelistDxSale(address,address)._presaleAddress (#1389) is not in mixedCase
Parameter DogeBTC.whitelistDxSale(address,address)._routerAddress (#1389) is not in mixedCase
Parameter DogeBTC.setTradingIsEnabled(bool)._enabled (#1435) is not in mixedCase
Parameter DogeBTC.setBuyBackEnabled(bool)._enabled (#1440) is not in mixedCase
Parameter DogeBTC.setBuyBackRandomEnabled(bool)._enabled (#1445) is not in mixedCase
Variable DogeBTC._dividendToken (#1262) is not in mixedCase
Variable DogeBTC._buyBackMultiplier (#1288) is not in mixedCase
Variable DogeBTC._isExcludedMaxSellTFransactionAmount (#1297) is not in mixedCase
Parameter DogeBTCDividendTracker.getAccount(address)._account (#1853) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#21)" inContext (#15-24)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in DogeBTC._transfer(address,address,uint256) (#1621-1706):
External calls:
- transferToBuyBackWallet(address(buyBackWallet),address(this).balance.div(10 ** 2).mul(marketingDivisor)) (#1657)
- recipient.transfer(amount) (#1790)
External calls sending eth:
- transferToBuyBackWallet(address(buyBackWallet),address(this).balance.div(10 ** 2).mul(marketingDivisor)) (#1657)
- recipient.transfer(amount) (#1790)
- swapBNBForTokens(buyBackBalance.div(10 ** 2).mul(rand())) (#1661)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1734-1739)
State variables written after the call(s):
- swapAndSendDividends(sellTokens_scope_0) (#1669)
- _allowances[owner][spender] = amount (#428)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#429)
- swapAndSendDividends(sellTokens_scope_0) (#1669)
- SendDividends(tokens,dividends) (#1771)
- swapAndSendDividends(sellTokens_scope_0) (#1669)
- SwapETHForTokens(amount,path) (#1741)
- swapBNBForTokens(buyBackBalance.div(10 ** 2).mul(rand())) (#1661)
Reentrancy in DogeBTC._transfer(address,address,uint256) (#1621-1706):
External calls:
- transferToBuyBackWallet(address(buyBackWallet),address(this).balance.div(10 ** 2).mul(marketingDivisor)) (#1657)
- recipient.transfer(amount) (#1790)
External calls sending eth:
- transferToBuyBackWallet(address(buyBackWallet),address(this).balance.div(10 ** 2).mul(marketingDivisor)) (#1657)
- recipient.transfer(amount) (#1790)
- swapBNBForTokens(buyBackBalance.div(10 ** 2).mul(rand())) (#1661)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1734-1739)
- swapAndSendDividendsInBNB(sellTokens) (#1666)
- (success) = address(dividendTracker).call{value: dividends}() (#1781)
State variables written after the call(s):
- swapAndSendDividendsInBNB(sellTokens) (#1666)
- _allowances[owner][spender] = amount (#428)
- super._transfer(from,address(this),fees) (#1688)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#366)
- _balances[recipient] = _balances[recipient].add(amount) (#367)
- super._transfer(from,to,amount) (#1691)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#366)
- _balances[recipient] = _balances[recipient].add(amount) (#367)
- swapping = false (#1672)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#429)
- swapAndSendDividendsInBNB(sellTokens) (#1666)
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1700)
- SendDividends(tokens,dividends) (#1785)
- swapAndSendDividendsInBNB(sellTokens) (#1666)
- Transfer(sender,recipient,amount) (#368)
- super._transfer(from,to,amount) (#1691)
- Transfer(sender,recipient,amount) (#368)
- super._transfer(from,address(this),fees) (#1688)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#1061) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#1062)
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#887) is too similar to DogeBTCDividendTracker.getAccount(address).withdrawableDividends (#1858)
Prevent variables from having similar names.
Additional information: link
DogeBTC.constructor() (#1346-1383) uses literals with too many digits:
- _mint(owner(),100000000000 * (10 ** 18)) (#1382)
DogeBTC.prepareForPreSale() (#1420-1426) uses literals with too many digits:
- maxBuyTranscationAmount = 100000000000 * (10 ** 18) (#1424)
DogeBTC.prepareForPreSale() (#1420-1426) uses literals with too many digits:
- maxWalletToken = 100000000000 * (10 ** 18) (#1425)
DogeBTC.afterPreSale() (#1428-1433) uses literals with too many digits:
- maxBuyTranscationAmount = 300000000 * (10 ** 18) (#1431)
DogeBTC.afterPreSale() (#1428-1433) uses literals with too many digits:
- maxWalletToken = 1500000000 * (10 ** 18) (#1432)
DogeBTC.updateGasForProcessing(uint256) (#1529-1534) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 500000,DogeBTC: gasForProcessing must be between 200,000 and 500,000) (#1530)
DogeBTC.slitherConstructorVariables() (#1256-1792) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#1263)
DogeBTC.slitherConstructorVariables() (#1256-1792) uses literals with too many digits:
- maxBuyTranscationAmount = 300000000 * (10 ** 18) (#1274)
DogeBTC.slitherConstructorVariables() (#1256-1792) uses literals with too many digits:
- maxSellTransactionAmount = 100000000000 * (10 ** 18) (#1275)
DogeBTC.slitherConstructorVariables() (#1256-1792) uses literals with too many digits:
- swapTokensAtAmount = 20000000 * (10 ** 18) (#1276)
DogeBTC.slitherConstructorVariables() (#1256-1792) uses literals with too many digits:
- maxWalletToken = 1500000000 * (10 ** 18) (#1277)
DogeBTC.slitherConstructorVariables() (#1256-1792) uses literals with too many digits:
- gasForProcessing = 500000 (#1291)
DogeBTCDividendTracker.constructor() (#1814-1817) uses literals with too many digits:
- minimumTokenBalanceForDividends = 200000 * (10 ** 18) (#1816)
DogeBTCDividendTracker.getAccountAtIndex(uint256) (#1898-1915) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#1909)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
DividendPayingToken.lastAmount (#810) is never used in DogeBTCDividendTracker (#1794-2002)
Remove unused state variables.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#74-77)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#83-87)
name() should be declared external:
- ERC20.name() (#216-218)
symbol() should be declared external:
- ERC20.symbol() (#224-226)
decimals() should be declared external:
- ERC20.decimals() (#241-243)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#267-270)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#275-277)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#286-289)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#304-308)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#322-325)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#341-344)
distributeDividends() should be declared external:
- DividendPayingToken.distributeDividends() (#847-858)
distributeDividends(uint256) should be declared external:
- DividendPayingToken.distributeDividends(uint256) (#861-872)
withdrawDividend() should be declared external:
- DividendPayingToken.withdrawDividend() (#876-878)
- DogeBTCDividendTracker.withdrawDividend() (#1823-1825)
setDividendTokenAddress(address) should be declared external:
- DividendPayingToken.setDividendTokenAddress(address) (#880-882)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (#907-909)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (#921-923)
get(IterableMapping.Map,address) should be declared external:
- IterableMapping.get(IterableMapping.Map,address) (#1202-1204)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (#1206-1211)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (#1213-1215)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (#1217-1219)
whitelistDxSale(address,address) should be declared external:
- DogeBTC.whitelistDxSale(address,address) (#1389-1396)
setBuyBackEnabled(bool) should be declared external:
- DogeBTC.setBuyBackEnabled(bool) (#1440-1443)
setBuyBackRandomEnabled(bool) should be declared external:
- DogeBTC.setBuyBackRandomEnabled(bool) (#1445-1448)
triggerBuyBack(uint256) should be declared external:
- DogeBTC.triggerBuyBack(uint256) (#1450-1455)
updateDividendTracker(address) should be declared external:
- DogeBTC.updateDividendTracker(address) (#1457-1471)
updateDividendRewardFee(uint8) should be declared external:
- DogeBTC.updateDividendRewardFee(uint8) (#1473-1476)
updateMarketingFee(uint8) should be declared external:
- DogeBTC.updateMarketingFee(uint8) (#1478-1481)
updateUniswapV2Router(address) should be declared external:
- DogeBTC.updateUniswapV2Router(address) (#1483-1487)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- DogeBTC.excludeMultipleAccountsFromFees(address[],bool) (#1496-1502)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- DogeBTC.setAutomatedMarketMakerPair(address,bool) (#1504-1508)
updateBuyBackWallet(address) should be declared external:
- DogeBTC.updateBuyBackWallet(address) (#1522-1527)
updateGasForProcessing(uint256) should be declared external:
- DogeBTC.updateGasForProcessing(uint256) (#1529-1534)
isExcludedFromFees(address) should be declared external:
- DogeBTC.isExcludedFromFees(address) (#1548-1550)
withdrawableDividendOf(address) should be declared external:
- DogeBTC.withdrawableDividendOf(address) (#1552-1554)
dividendTokenBalanceOf(address) should be declared external:
- DogeBTC.dividendTokenBalanceOf(address) (#1556-1558)
getAccountAtIndex(uint256) should be declared external:
- DogeBTCDividendTracker.getAccountAtIndex(uint256) (#1898-1915)
process(uint256) should be declared external:
- DogeBTCDividendTracker.process(uint256) (#1942-1987)
Use the external attribute for functions never called from the contract.
Additional information: link
Contract has 15% buy tax and 99% sell tax.
Taxes are extremely high (over 30%)
Additional information: link
Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.
Average 30d PancakeSwap volume is less than $100. Token is either dead or inactive.
Average 30d number of PancakeSwap swaps is less than 1. Token is either dead or inactive.
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Token is deployed only at one blockchain
Token has only one trading pair
Token was delisted from CoinGecko
Additional information: link
Unable to find token/project description on the website or on BscScan, CoinMarketCap
Unable to find whitepaper link on the website
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
Token is marked as scam (rug pull, honeypot, phishing, etc.)
Additional information: link
Token has no active CoinGecko listing / rank
Token has a considerable age, but social accounts / website are missing or have few users
Token has a considerable age, but average PancakeSwap 30d trading volume is low
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Token has relatively low CoinMarketCap rank
Twitter account link seems to be invalid
Unable to find Youtube account
Unable to find Discord account