BabyMusk is a tribute coin to Elon Musk.
He is Hyper-deflationary with an integrated smart staking system built in to reward you in BTC that are being automatically added to your wallet each transaction.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Contract creator or owner is blacklisted for past scams
BabyMUSK.sendBNBToMarketing(uint256) (#1639-1642) sends eth to arbitrary user
Dangerous calls:
- marketingWallet.transfer(address(this).balance) (#1641)
BabyMUSK.addLiquidity(uint256,uint256) (#1799-1814) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1805-1812)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in BabyMUSK._transfer(address,address,uint256) (#1646-1731):
External calls:
- sendBNBToMarketing(marketingSwap) (#1682)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1767-1773)
- swapAndLiquify(swapTokens) (#1685)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1805-1812)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1767-1773)
- swapAndSendDividends(sellTokens) (#1688)
- success = IERC20(dividendToken).transfer(address(dividendTracker),dividends) (#1819)
- dividendTracker.distributeBTCBDividends(dividends) (#1822)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,recipient,block.timestamp) (#1789-1795)
External calls sending eth:
- sendBNBToMarketing(marketingSwap) (#1682)
- marketingWallet.transfer(address(this).balance) (#1641)
- swapAndLiquify(swapTokens) (#1685)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1805-1812)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (#1713)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#795)
- _balances[recipient] = _balances[recipient].add(amount) (#796)
- super._transfer(from,to,amount) (#1716)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#795)
- _balances[recipient] = _balances[recipient].add(amount) (#796)
- swapping = false (#1690)
Apply the check-effects-interactions pattern.
Additional information: link
Contract locking ether found:
Contract BabyMUSKDividendTracker (#1829-2040) has payable functions:
- DividendPayingToken.receive() (#1160-1161)
- DividendPayingToken.distributeDividends() (#1176-1187)
- IDividendPayingToken.distributeDividends() (#496)
But does not have a function to withdraw the ether
Remove the payable attribute or add a withdraw function.
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.
BabyMUSK._transfer(address,address,uint256) (#1646-1731) performs a multiplication on the result of a division:
-fees = amount.mul(totalFees).div(100) (#1704)
-fees = fees.mul(sellFeeIncreaseFactor).div(100) (#1708)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#1211-1227):
External calls:
- success = IERC20(dividendToken).transfer(user,_withdrawableDividend) (#1216)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (#1219)
Reentrancy in BabyMUSK.updateDividendTracker(address) (#1497-1512):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1504)
- newDividendTracker.excludeFromDividends(address(this)) (#1505)
- newDividendTracker.excludeFromDividends(owner()) (#1506)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1507)
State variables written after the call(s):
- dividendTracker = newDividendTracker (#1511)
Reentrancy in BabyMUSK.whitelistDxSale(address,address) (#1440-1447):
External calls:
- dividendTracker.excludeFromDividends(_presaleAddress) (#1442)
- dividendTracker.excludeFromDividends(_routerAddress) (#1445)
State variables written after the call(s):
- excludeFromFees(_routerAddress,true) (#1446)
- _isExcludedFromFees[account] = excluded (#1522)
Apply the check-effects-interactions pattern.
Additional information: link
BabyMUSK._transfer(address,address,uint256).iterations (#1724) is a local variable never initialized
BabyMUSK._transfer(address,address,uint256).claims (#1724) is a local variable never initialized
BabyMUSK._transfer(address,address,uint256).lastProcessedIndex (#1724) 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
BabyMUSK.claim() (#1626-1628) ignores return value by dividendTracker.processAccount(msg.sender,false) (#1627)
BabyMUSK._transfer(address,address,uint256) (#1646-1731) ignores return value by dividendTracker.process(gas) (#1724-1729)
BabyMUSK.addLiquidity(uint256,uint256) (#1799-1814) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1805-1812)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.constructor(string,string)._name (#1155) shadows:
- ERC20._name (#623) (state variable)
DividendPayingToken.constructor(string,string)._symbol (#1155) shadows:
- ERC20._symbol (#624) (state variable)
Rename the local variables that shadow another component.
Additional information: link
BabyMUSK.setSellFeeFactor(uint256) (#1451-1453) should emit an event for:
- sellFeeIncreaseFactor = newSellFeeFactor (#1452)
BabyMUSK.changeLiquidityFee(uint256) (#1475-1477) should emit an event for:
- liquidityFee = newLiquidityFee (#1476)
BabyMUSK.changeMarketingFee(uint256) (#1479-1481) should emit an event for:
- marketingFee = newMarketingFee (#1480)
Emit an event for critical parameter changes.
Additional information: link
BabyMUSK.whitelistDxSale(address,address)._presaleAddress (#1440) lacks a zero-check on :
- presaleAddress = _presaleAddress (#1441)
BabyMUSK.changeDividendAddress(address).newAddress (#1471) lacks a zero-check on :
- dividendToken = newAddress (#1472)
BabyMUSK.changeMarketingWallet(address).newAddress (#1483) lacks a zero-check on :
- marketingWallet = newAddress (#1484)
Check that the address is not zero.
Additional information: link
DividendPayingToken._withdrawDividendOfUser(address) (#1211-1227) has external calls inside a loop: success = IERC20(dividendToken).transfer(user,_withdrawableDividend) (#1216)
Favor pull over push strategy for external calls.
Additional information: link
Variable 'BabyMUSK._transfer(address,address,uint256).claims (#1724)' in BabyMUSK._transfer(address,address,uint256) (#1646-1731) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1725)
Variable 'BabyMUSK._transfer(address,address,uint256).iterations (#1724)' in BabyMUSK._transfer(address,address,uint256) (#1646-1731) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1725)
Variable 'BabyMUSK._transfer(address,address,uint256).lastProcessedIndex (#1724)' in BabyMUSK._transfer(address,address,uint256) (#1646-1731) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1725)
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 BabyMUSK._transfer(address,address,uint256) (#1646-1731):
External calls:
- sendBNBToMarketing(marketingSwap) (#1682)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1767-1773)
- swapAndLiquify(swapTokens) (#1685)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1805-1812)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1767-1773)
External calls sending eth:
- sendBNBToMarketing(marketingSwap) (#1682)
- marketingWallet.transfer(address(this).balance) (#1641)
- swapAndLiquify(swapTokens) (#1685)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1805-1812)
State variables written after the call(s):
- swapAndLiquify(swapTokens) (#1685)
- _allowances[owner][spender] = amount (#857)
Reentrancy in BabyMUSK._transfer(address,address,uint256) (#1646-1731):
External calls:
- sendBNBToMarketing(marketingSwap) (#1682)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1767-1773)
- swapAndLiquify(swapTokens) (#1685)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1805-1812)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1767-1773)
- swapAndSendDividends(sellTokens) (#1688)
- success = IERC20(dividendToken).transfer(address(dividendTracker),dividends) (#1819)
- dividendTracker.distributeBTCBDividends(dividends) (#1822)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,recipient,block.timestamp) (#1789-1795)
External calls sending eth:
- sendBNBToMarketing(marketingSwap) (#1682)
- marketingWallet.transfer(address(this).balance) (#1641)
- swapAndLiquify(swapTokens) (#1685)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1805-1812)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (#1688)
- _allowances[owner][spender] = amount (#857)
Reentrancy in BabyMUSK.constructor() (#1392-1434):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1410-1411)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#1414)
- uniswapV2Router = _uniswapV2Router (#1413)
Reentrancy in BabyMUSK.constructor() (#1392-1434):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1410-1411)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1416)
- dividendTracker.excludeFromDividends(pair) (#1546)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#1419)
- dividendTracker.excludeFromDividends(address(this)) (#1420)
- dividendTracker.excludeFromDividends(owner()) (#1421)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#1422)
State variables written after the call(s):
- _mint(owner(),420000000000000000 * (10 ** 9)) (#1433)
- _balances[account] = _balances[account].add(amount) (#815)
- excludeFromFees(liquidityWallet,true) (#1426)
- _isExcludedFromFees[account] = excluded (#1522)
- excludeFromFees(address(this),true) (#1427)
- _isExcludedFromFees[account] = excluded (#1522)
- _mint(owner(),420000000000000000 * (10 ** 9)) (#1433)
- _totalSupply = _totalSupply.add(amount) (#814)
Reentrancy in BabyMUSKDividendTracker.processAccount(address,bool) (#2028-2038):
External calls:
- amount = _withdrawDividendOfUser(account) (#2029)
- success = IERC20(dividendToken).transfer(user,_withdrawableDividend) (#1216)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (#2032)
Reentrancy in BabyMUSK.swapAndLiquify(uint256) (#1733-1754):
External calls:
- swapTokensForEth(half) (#1745)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1767-1773)
- addLiquidity(otherHalf,newBalance) (#1751)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1805-1812)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1751)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1805-1812)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#1751)
- _allowances[owner][spender] = amount (#857)
Reentrancy in BabyMUSK.whitelistDxSale(address,address) (#1440-1447):
External calls:
- dividendTracker.excludeFromDividends(_presaleAddress) (#1442)
State variables written after the call(s):
- excludeFromFees(_presaleAddress,true) (#1443)
- _isExcludedFromFees[account] = excluded (#1522)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in BabyMUSK._setAutomatedMarketMakerPair(address,bool) (#1541-1550):
External calls:
- dividendTracker.excludeFromDividends(pair) (#1546)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1549)
Reentrancy in BabyMUSK._transfer(address,address,uint256) (#1646-1731):
External calls:
- sendBNBToMarketing(marketingSwap) (#1682)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1767-1773)
- swapAndLiquify(swapTokens) (#1685)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1805-1812)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1767-1773)
External calls sending eth:
- sendBNBToMarketing(marketingSwap) (#1682)
- marketingWallet.transfer(address(this).balance) (#1641)
- swapAndLiquify(swapTokens) (#1685)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1805-1812)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#858)
- swapAndLiquify(swapTokens) (#1685)
- SwapAndLiquify(half,newBalance,otherHalf) (#1753)
- swapAndLiquify(swapTokens) (#1685)
Reentrancy in BabyMUSK._transfer(address,address,uint256) (#1646-1731):
External calls:
- sendBNBToMarketing(marketingSwap) (#1682)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1767-1773)
- swapAndLiquify(swapTokens) (#1685)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1805-1812)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1767-1773)
- swapAndSendDividends(sellTokens) (#1688)
- success = IERC20(dividendToken).transfer(address(dividendTracker),dividends) (#1819)
- dividendTracker.distributeBTCBDividends(dividends) (#1822)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,recipient,block.timestamp) (#1789-1795)
External calls sending eth:
- sendBNBToMarketing(marketingSwap) (#1682)
- marketingWallet.transfer(address(this).balance) (#1641)
- swapAndLiquify(swapTokens) (#1685)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1805-1812)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#858)
- swapAndSendDividends(sellTokens) (#1688)
- SendDividends(tokens,dividends) (#1823)
- swapAndSendDividends(sellTokens) (#1688)
- Transfer(sender,recipient,amount) (#797)
- super._transfer(from,address(this),fees) (#1713)
- Transfer(sender,recipient,amount) (#797)
- super._transfer(from,to,amount) (#1716)
Reentrancy in BabyMUSK._transfer(address,address,uint256) (#1646-1731):
External calls:
- sendBNBToMarketing(marketingSwap) (#1682)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1767-1773)
- swapAndLiquify(swapTokens) (#1685)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1805-1812)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1767-1773)
- swapAndSendDividends(sellTokens) (#1688)
- success = IERC20(dividendToken).transfer(address(dividendTracker),dividends) (#1819)
- dividendTracker.distributeBTCBDividends(dividends) (#1822)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,recipient,block.timestamp) (#1789-1795)
- dividendTracker.setBalance(address(from),balanceOf(from)) (#1718)
- dividendTracker.setBalance(address(to),balanceOf(to)) (#1719)
- dividendTracker.process(gas) (#1724-1729)
External calls sending eth:
- sendBNBToMarketing(marketingSwap) (#1682)
- marketingWallet.transfer(address(this).balance) (#1641)
- swapAndLiquify(swapTokens) (#1685)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1805-1812)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1725)
Reentrancy in BabyMUSK.constructor() (#1392-1434):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1410-1411)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1416)
- dividendTracker.excludeFromDividends(pair) (#1546)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1549)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1416)
Reentrancy in BabyMUSK.constructor() (#1392-1434):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1410-1411)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1416)
- dividendTracker.excludeFromDividends(pair) (#1546)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#1419)
- dividendTracker.excludeFromDividends(address(this)) (#1420)
- dividendTracker.excludeFromDividends(owner()) (#1421)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#1422)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#1524)
- excludeFromFees(address(this),true) (#1427)
- ExcludeFromFees(account,excluded) (#1524)
- excludeFromFees(liquidityWallet,true) (#1426)
- Transfer(address(0),account,amount) (#816)
- _mint(owner(),420000000000000000 * (10 ** 9)) (#1433)
Reentrancy in BabyMUSKDividendTracker.processAccount(address,bool) (#2028-2038):
External calls:
- amount = _withdrawDividendOfUser(account) (#2029)
- success = IERC20(dividendToken).transfer(user,_withdrawableDividend) (#1216)
Event emitted after the call(s):
- Claim(account,amount,automatic) (#2033)
Reentrancy in BabyMUSK.processDividendTracker(uint256) (#1621-1624):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (#1622)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (#1623)
Reentrancy in BabyMUSK.swapAndLiquify(uint256) (#1733-1754):
External calls:
- swapTokensForEth(half) (#1745)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1767-1773)
- addLiquidity(otherHalf,newBalance) (#1751)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1805-1812)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1751)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1805-1812)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#858)
- addLiquidity(otherHalf,newBalance) (#1751)
- SwapAndLiquify(half,newBalance,otherHalf) (#1753)
Reentrancy in BabyMUSK.swapAndSendDividends(uint256) (#1816-1825):
External calls:
- swapTokensForDividend(tokens,address(this)) (#1817)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,recipient,block.timestamp) (#1789-1795)
- success = IERC20(dividendToken).transfer(address(dividendTracker),dividends) (#1819)
- dividendTracker.distributeBTCBDividends(dividends) (#1822)
Event emitted after the call(s):
- SendDividends(tokens,dividends) (#1823)
Reentrancy in BabyMUSK.updateDividendTracker(address) (#1497-1512):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1504)
- newDividendTracker.excludeFromDividends(address(this)) (#1505)
- newDividendTracker.excludeFromDividends(owner()) (#1506)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1507)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (#1509)
Reentrancy in BabyMUSK.whitelistDxSale(address,address) (#1440-1447):
External calls:
- dividendTracker.excludeFromDividends(_presaleAddress) (#1442)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#1524)
- excludeFromFees(_presaleAddress,true) (#1443)
Reentrancy in BabyMUSK.whitelistDxSale(address,address) (#1440-1447):
External calls:
- dividendTracker.excludeFromDividends(_presaleAddress) (#1442)
- dividendTracker.excludeFromDividends(_routerAddress) (#1445)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#1524)
- excludeFromFees(_routerAddress,true) (#1446)
Apply the check-effects-interactions pattern.
Additional information: link
BabyMUSKDividendTracker.getAccount(address) (#1892-1935) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (#1932-1934)
BabyMUSKDividendTracker.canAutoClaim(uint256) (#1956-1962) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#1957)
- block.timestamp.sub(lastClaimTime) >= claimWait (#1961)
Avoid relying on block.timestamp.
Additional information: link
BabyMUSK._transfer(address,address,uint256) (#1646-1731) compares to a boolean constant:
-to == uniswapV2Pair && pauseSell == true && from != owner() (#1663)
Remove the equality to the boolean constant.
Additional information: link
Different versions of Solidity is used:
- Version used: ['>=0.5.0', '>=0.6.0<0.8.0', '>=0.6.2', '^0.6.0', '^0.6.6']
- ^0.6.0 (#3)
- >=0.6.0<0.8.0 (#81)
- >=0.6.2 (#106)
- >=0.6.2 (#203)
- >=0.5.0 (#248)
- >=0.5.0 (#267)
- ^0.6.6 (#322)
- ^0.6.0 (#388)
- ^0.6.0 (#455)
- ^0.6.0 (#480)
- ^0.6.6 (#521)
- ^0.6.6 (#567)
- ^0.6.0 (#585)
- ^0.6.0 (#892)
- ^0.6.6 (#1109)
- ^0.6.6 (#1312)
Use one Solidity version.
Additional information: link
Context._msgData() (#98-101) is never used and should be removed
DividendPayingToken._transfer(address,address,uint256) (#1267-1273) is never used and should be removed
ERC20._setupDecimals(uint8) (#868-870) is never used and should be removed
SafeMath.div(uint256,uint256,string) (#1079-1082) is never used and should be removed
SafeMath.mod(uint256,uint256) (#1041-1044) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#1099-1102) is never used and should be removed
SafeMath.tryAdd(uint256,uint256) (#913-917) is never used and should be removed
SafeMath.tryDiv(uint256,uint256) (#949-952) is never used and should be removed
SafeMath.tryMod(uint256,uint256) (#959-962) is never used and should be removed
SafeMath.tryMul(uint256,uint256) (#934-942) is never used and should be removed
SafeMath.trySub(uint256,uint256) (#924-927) is never used and should be removed
SafeMathInt.div(int256,int256) (#540-546) is never used and should be removed
SafeMathInt.mul(int256,int256) (#530-538) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version^0.6.0 (#3) allows old versions
Pragma version>=0.6.0<0.8.0 (#81) is too complex
Pragma version>=0.6.2 (#106) allows old versions
Pragma version>=0.6.2 (#203) allows old versions
Pragma version>=0.5.0 (#248) allows old versions
Pragma version>=0.5.0 (#267) allows old versions
Pragma version^0.6.6 (#322) allows old versions
Pragma version^0.6.0 (#388) allows old versions
Pragma version^0.6.0 (#455) allows old versions
Pragma version^0.6.0 (#480) allows old versions
Pragma version^0.6.6 (#521) allows old versions
Pragma version^0.6.6 (#567) allows old versions
Pragma version^0.6.0 (#585) allows old versions
Pragma version^0.6.0 (#892) allows old versions
Pragma version^0.6.6 (#1109) allows old versions
Pragma version^0.6.6 (#1312) allows old versions
Deploy with any of the following Solidity versions: 0.5.16 - 0.5.17, 0.6.11 - 0.6.12, 0.7.5 - 0.7.6 Use a simple pragma version that allows any of these versions. Consider using the latest version of Solidity for testing.
Additional information: link
Function IUniswapV2Router01.WETH() (#110) is not in mixedCase
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#284) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#285) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#302) is not in mixedCase
Parameter DividendPayingToken.dividendOf(address)._owner (#1233) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (#1240) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (#1247) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (#1257) is not in mixedCase
Constant DividendPayingToken.magnitude (#1132) is not in UPPER_CASE_WITH_UNDERSCORES
Parameter BabyMUSK.whitelistDxSale(address,address)._presaleAddress (#1440) is not in mixedCase
Parameter BabyMUSK.whitelistDxSale(address,address)._routerAddress (#1440) is not in mixedCase
Function BabyMUSK.ChangeDividendRewardsFee(uint256) (#1467-1469) is not in mixedCase
Parameter BabyMUSKDividendTracker.getAccount(address)._account (#1892) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#99)" inContext (#93-102)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in BabyMUSK._transfer(address,address,uint256) (#1646-1731):
External calls:
- sendBNBToMarketing(marketingSwap) (#1682)
- marketingWallet.transfer(address(this).balance) (#1641)
External calls sending eth:
- sendBNBToMarketing(marketingSwap) (#1682)
- marketingWallet.transfer(address(this).balance) (#1641)
- swapAndLiquify(swapTokens) (#1685)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1805-1812)
State variables written after the call(s):
- swapAndLiquify(swapTokens) (#1685)
- _allowances[owner][spender] = amount (#857)
- swapAndSendDividends(sellTokens) (#1688)
- _allowances[owner][spender] = amount (#857)
- super._transfer(from,address(this),fees) (#1713)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#795)
- _balances[recipient] = _balances[recipient].add(amount) (#796)
- super._transfer(from,to,amount) (#1716)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#795)
- _balances[recipient] = _balances[recipient].add(amount) (#796)
- swapping = false (#1690)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#858)
- swapAndSendDividends(sellTokens) (#1688)
- Approval(owner,spender,amount) (#858)
- swapAndLiquify(swapTokens) (#1685)
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1725)
- SendDividends(tokens,dividends) (#1823)
- swapAndSendDividends(sellTokens) (#1688)
- SwapAndLiquify(half,newBalance,otherHalf) (#1753)
- swapAndLiquify(swapTokens) (#1685)
- Transfer(sender,recipient,amount) (#797)
- super._transfer(from,address(this),fees) (#1713)
- Transfer(sender,recipient,amount) (#797)
- super._transfer(from,to,amount) (#1716)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#115) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#116)
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#1212) is too similar to BabyMUSKDividendTracker.getAccount(address).withdrawableDividends (#1897)
Prevent variables from having similar names.
Additional information: link
BabyMUSK.constructor() (#1392-1434) uses literals with too many digits:
- _mint(owner(),420000000000000000 * (10 ** 9)) (#1433)
BabyMUSK.updateGasForProcessing(uint256) (#1560-1565) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 500000,BabyMUSK: gasForProcessing must be between 200,000 and 500,000) (#1561)
BabyMUSK.slitherConstructorVariables() (#1315-1827) uses literals with too many digits:
- swapTokensAtAmount = 1000000000 * (10 ** 9) (#1333)
BabyMUSK.slitherConstructorVariables() (#1315-1827) uses literals with too many digits:
- gasForProcessing = 300000 (#1344)
BabyMUSKDividendTracker.getAccountAtIndex(uint256) (#1937-1954) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#1948)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
DividendPayingToken.lastAmount (#1135) is never used in BabyMUSKDividendTracker (#1829-2040)
Remove unused state variables.
Additional information: link
BabyMUSK.swapTokensAtAmount (#1333) should be constant
DividendPayingToken.dividendToken (#1137) should be constant
DividendPayingToken.lastAmount (#1135) 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) (#333-335)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (#337-342)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (#344-346)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (#350-352)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#438-441)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#447-451)
name() should be declared external:
- ERC20.name() (#645-647)
symbol() should be declared external:
- ERC20.symbol() (#653-655)
decimals() should be declared external:
- ERC20.decimals() (#670-672)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#696-699)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#704-706)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#715-718)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#733-737)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#751-754)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#770-773)
distributeDividends() should be declared external:
- DividendPayingToken.distributeDividends() (#1176-1187)
distributeBTCBDividends(uint256) should be declared external:
- DividendPayingToken.distributeBTCBDividends(uint256) (#1190-1201)
withdrawDividend() should be declared external:
- BabyMUSKDividendTracker.withdrawDividend() (#1862-1864)
- DividendPayingToken.withdrawDividend() (#1205-1207)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (#1233-1235)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (#1247-1249)
whitelistDxSale(address,address) should be declared external:
- BabyMUSK.whitelistDxSale(address,address) (#1440-1447)
blacklistAddress(address) should be declared external:
- BabyMUSK.blacklistAddress(address) (#1487-1489)
unBlockAddress(address) should be declared external:
- BabyMUSK.unBlockAddress(address) (#1491-1493)
updateDividendTracker(address) should be declared external:
- BabyMUSK.updateDividendTracker(address) (#1497-1512)
updateUniswapV2Router(address) should be declared external:
- BabyMUSK.updateUniswapV2Router(address) (#1514-1518)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- BabyMUSK.excludeMultipleAccountsFromFees(address[],bool) (#1527-1533)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- BabyMUSK.setAutomatedMarketMakerPair(address,bool) (#1535-1539)
updateLiquidityWallet(address) should be declared external:
- BabyMUSK.updateLiquidityWallet(address) (#1553-1558)
updateGasForProcessing(uint256) should be declared external:
- BabyMUSK.updateGasForProcessing(uint256) (#1560-1565)
isExcludedFromRewards(address) should be declared external:
- BabyMUSK.isExcludedFromRewards(address) (#1575-1577)
isExcludedFromFees(address) should be declared external:
- BabyMUSK.isExcludedFromFees(address) (#1583-1585)
withdrawableDividendOf(address) should be declared external:
- BabyMUSK.withdrawableDividendOf(address) (#1587-1589)
dividendTokenBalanceOf(address) should be declared external:
- BabyMUSK.dividendTokenBalanceOf(address) (#1591-1593)
getAccountAtIndex(uint256) should be declared external:
- BabyMUSKDividendTracker.getAccountAtIndex(uint256) (#1937-1954)
process(uint256) should be declared external:
- BabyMUSKDividendTracker.process(uint256) (#1981-2026)
Use the external attribute for functions never called from the contract.
Additional information: link
Average 30d PancakeSwap volume is less than $100. 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
Unable to find PancakeSwap trading pair to compute liquidity.
Unable to find PancakeSwap trading pair to compute number of swaps.
Token is marked as scam (rug pull, honeypot, phishing, etc.)
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
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Token has relatively low CoinMarketCap rank
Last post in Twitter was more than 30 days ago
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account