Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
BABYM31.addLiquidity(uint256,uint256) (contracts/BabyM31.sol#506-519) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (contracts/BabyM31.sol#511-518)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in BABYM31._transfer(address,address,uint256) (contracts/BabyM31.sol#343-431):
External calls:
- swapAndSendToFee(marketingTokens) (contracts/BabyM31.sol#376)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/BabyM31.sol#479-485)
- swapAndLiquify(swapTokens) (contracts/BabyM31.sol#381)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (contracts/BabyM31.sol#511-518)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/BabyM31.sol#479-485)
- swapAndSendDividends(sellTokens) (contracts/BabyM31.sol#384)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/BabyM31.sol#479-485)
- (success) = address(dividendTracker).call{value: newBalance}() (contracts/BabyM31.sol#533-535)
External calls sending eth:
- swapAndSendToFee(marketingTokens) (contracts/BabyM31.sol#376)
- address(_marketingWalletAddress).transfer(newBalance) (contracts/BabyM31.sol#440)
- swapAndLiquify(swapTokens) (contracts/BabyM31.sol#381)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (contracts/BabyM31.sol#511-518)
- swapAndSendDividends(sellTokens) (contracts/BabyM31.sol#384)
- (success) = address(dividendTracker).call{value: newBalance}() (contracts/BabyM31.sol#533-535)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (contracts/BabyM31.sol#403)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (contracts/ERC20.sol#269-272)
- _balances[recipient] = _balances[recipient].add(amount) (contracts/ERC20.sol#273)
- super._transfer(from,to,amount) (contracts/BabyM31.sol#406)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (contracts/ERC20.sol#269-272)
- _balances[recipient] = _balances[recipient].add(amount) (contracts/ERC20.sol#273)
- swapping = false (contracts/BabyM31.sol#386)
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (contracts/DividendPayingToken.sol#85-127):
External calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: _withdrawableDividend}(1,path,address(user),block.timestamp + 360) (contracts/DividendPayingToken.sol#99-113)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (contracts/DividendPayingToken.sol#117-119)
Apply the check-effects-interactions pattern.
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.
Reentrancy in BABYM31.updateDividendTracker(address) (contracts/BabyM31.sol#129-152):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (contracts/BabyM31.sol#144)
- newDividendTracker.excludeFromDividends(address(this)) (contracts/BabyM31.sol#145)
- newDividendTracker.excludeFromDividends(owner()) (contracts/BabyM31.sol#146)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (contracts/BabyM31.sol#147)
State variables written after the call(s):
- dividendTracker = newDividendTracker (contracts/BabyM31.sol#151)
Apply the check-effects-interactions pattern.
Additional information: link
SafeMathInt.MAX_INT256 (contracts/SafeMathInt.sol#36) is never used in SafeMathInt (contracts/SafeMathInt.sol#34-91)
Remove unused state variables.
Additional information: link
BABYM31._transfer(address,address,uint256).claims (contracts/BabyM31.sol#418) is a local variable never initialized
BABYM31._transfer(address,address,uint256).lastProcessedIndex (contracts/BabyM31.sol#419) is a local variable never initialized
DividendPayingToken._withdrawDividendOfUser(address).swapSuccess (contracts/DividendPayingToken.sol#98) is a local variable never initialized
BABYM31._transfer(address,address,uint256).iterations (contracts/BabyM31.sol#417) 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
BABYM31.claim() (contracts/BabyM31.sol#331-333) ignores return value by dividendTracker.processAccount(msg.sender,false) (contracts/BabyM31.sol#332)
BABYM31._transfer(address,address,uint256) (contracts/BabyM31.sol#343-431) ignores return value by dividendTracker.process(gas) (contracts/BabyM31.sol#416-429)
BABYM31.addLiquidity(uint256,uint256) (contracts/BabyM31.sol#506-519) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (contracts/BabyM31.sol#511-518)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.constructor(string,string)._name (contracts/DividendPayingToken.sol#57) shadows:
- ERC20._name (contracts/ERC20.sol#43) (state variable)
DividendPayingToken.constructor(string,string)._symbol (contracts/DividendPayingToken.sol#57) shadows:
- ERC20._symbol (contracts/ERC20.sol#44) (state variable)
DividendPayingToken.dividendOf(address)._owner (contracts/DividendPayingToken.sol#132) shadows:
- Ownable._owner (contracts/Ownable.sol#8) (state variable)
DividendPayingToken.withdrawableDividendOf(address)._owner (contracts/DividendPayingToken.sol#139) shadows:
- Ownable._owner (contracts/Ownable.sol#8) (state variable)
DividendPayingToken.withdrawnDividendOf(address)._owner (contracts/DividendPayingToken.sol#151) shadows:
- Ownable._owner (contracts/Ownable.sol#8) (state variable)
DividendPayingToken.accumulativeDividendOf(address)._owner (contracts/DividendPayingToken.sol#165) shadows:
- Ownable._owner (contracts/Ownable.sol#8) (state variable)
Rename the local variables that shadow another component.
Additional information: link
BABYM31.setM31RewardsFee(uint256,uint256,uint256) (contracts/BabyM31.sol#191-200) should emit an event for:
- M31RewardsFee = _rewardFee (contracts/BabyM31.sol#196)
- liquidityFee = _liquidityFee (contracts/BabyM31.sol#197)
- marketingFee = _marketingFee (contracts/BabyM31.sol#198)
- totalFees = M31RewardsFee.add(liquidityFee).add(marketingFee) (contracts/BabyM31.sol#199)
Emit an event for critical parameter changes.
Additional information: link
BABYM31.updateUniswapV2Router(address)._uniswapV2Pair (contracts/BabyM31.sol#161-162) lacks a zero-check on :
- uniswapV2Pair = _uniswapV2Pair (contracts/BabyM31.sol#163)
BABYM31.setMarketingWallet(address).wallet (contracts/BabyM31.sol#187) lacks a zero-check on :
- _marketingWalletAddress = wallet (contracts/BabyM31.sol#188)
Check that the address is not zero.
Additional information: link
DividendPayingToken._withdrawDividendOfUser(address) (contracts/DividendPayingToken.sol#85-127) has external calls inside a loop: path[0] = uniswapV2Router.WETH() (contracts/DividendPayingToken.sol#96)
DividendPayingToken._withdrawDividendOfUser(address) (contracts/DividendPayingToken.sol#85-127) has external calls inside a loop: uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: _withdrawableDividend}(1,path,address(user),block.timestamp + 360) (contracts/DividendPayingToken.sol#99-113)
Favor pull over push strategy for external calls.
Additional information: link
Variable 'BABYM31._transfer(address,address,uint256).iterations (contracts/BabyM31.sol#417)' in BABYM31._transfer(address,address,uint256) (contracts/BabyM31.sol#343-431) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (contracts/BabyM31.sol#421-428)
Variable 'BABYM31._transfer(address,address,uint256).lastProcessedIndex (contracts/BabyM31.sol#419)' in BABYM31._transfer(address,address,uint256) (contracts/BabyM31.sol#343-431) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (contracts/BabyM31.sol#421-428)
Variable 'BABYM31._transfer(address,address,uint256).claims (contracts/BabyM31.sol#418)' in BABYM31._transfer(address,address,uint256) (contracts/BabyM31.sol#343-431) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (contracts/BabyM31.sol#421-428)
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 BABYM31._transfer(address,address,uint256) (contracts/BabyM31.sol#343-431):
External calls:
- swapAndSendToFee(marketingTokens) (contracts/BabyM31.sol#376)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/BabyM31.sol#479-485)
- swapAndLiquify(swapTokens) (contracts/BabyM31.sol#381)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (contracts/BabyM31.sol#511-518)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/BabyM31.sol#479-485)
External calls sending eth:
- swapAndSendToFee(marketingTokens) (contracts/BabyM31.sol#376)
- address(_marketingWalletAddress).transfer(newBalance) (contracts/BabyM31.sol#440)
- swapAndLiquify(swapTokens) (contracts/BabyM31.sol#381)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (contracts/BabyM31.sol#511-518)
State variables written after the call(s):
- swapAndLiquify(swapTokens) (contracts/BabyM31.sol#381)
- _allowances[owner][spender] = amount (contracts/ERC20.sol#341)
Reentrancy in BABYM31._transfer(address,address,uint256) (contracts/BabyM31.sol#343-431):
External calls:
- swapAndSendToFee(marketingTokens) (contracts/BabyM31.sol#376)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/BabyM31.sol#479-485)
- swapAndLiquify(swapTokens) (contracts/BabyM31.sol#381)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (contracts/BabyM31.sol#511-518)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/BabyM31.sol#479-485)
- swapAndSendDividends(sellTokens) (contracts/BabyM31.sol#384)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/BabyM31.sol#479-485)
- (success) = address(dividendTracker).call{value: newBalance}() (contracts/BabyM31.sol#533-535)
External calls sending eth:
- swapAndSendToFee(marketingTokens) (contracts/BabyM31.sol#376)
- address(_marketingWalletAddress).transfer(newBalance) (contracts/BabyM31.sol#440)
- swapAndLiquify(swapTokens) (contracts/BabyM31.sol#381)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (contracts/BabyM31.sol#511-518)
- swapAndSendDividends(sellTokens) (contracts/BabyM31.sol#384)
- (success) = address(dividendTracker).call{value: newBalance}() (contracts/BabyM31.sol#533-535)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (contracts/BabyM31.sol#384)
- _allowances[owner][spender] = amount (contracts/ERC20.sol#341)
Reentrancy in BABYM31.constructor() (contracts/BabyM31.sol#93-125):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (contracts/BabyM31.sol#100-101)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (contracts/BabyM31.sol#104)
- uniswapV2Router = _uniswapV2Router (contracts/BabyM31.sol#103)
Reentrancy in BABYM31.constructor() (contracts/BabyM31.sol#93-125):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (contracts/BabyM31.sol#100-101)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (contracts/BabyM31.sol#106)
- dividendTracker.excludeFromDividends(pair) (contracts/BabyM31.sol#226)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (contracts/BabyM31.sol#109)
- dividendTracker.excludeFromDividends(address(this)) (contracts/BabyM31.sol#110)
- dividendTracker.excludeFromDividends(owner()) (contracts/BabyM31.sol#111)
- dividendTracker.excludeFromDividends(deadWallet) (contracts/BabyM31.sol#112)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (contracts/BabyM31.sol#113)
State variables written after the call(s):
- _mint(owner(),100000000000 * (10 ** 18)) (contracts/BabyM31.sol#124)
- _balances[account] = _balances[account].add(amount) (contracts/ERC20.sol#292)
- excludeFromFees(owner(),true) (contracts/BabyM31.sol#116)
- _isExcludedFromFees[account] = excluded (contracts/BabyM31.sol#171)
- excludeFromFees(_marketingWalletAddress,true) (contracts/BabyM31.sol#117)
- _isExcludedFromFees[account] = excluded (contracts/BabyM31.sol#171)
- excludeFromFees(address(this),true) (contracts/BabyM31.sol#118)
- _isExcludedFromFees[account] = excluded (contracts/BabyM31.sol#171)
- _mint(owner(),100000000000 * (10 ** 18)) (contracts/BabyM31.sol#124)
- _totalSupply = _totalSupply.add(amount) (contracts/ERC20.sol#291)
Reentrancy in BABYM31DividendTracker.processAccount(address,bool) (contracts/BabyM31.sol#792-806):
External calls:
- amount = _withdrawDividendOfUser(account) (contracts/BabyM31.sol#797)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: _withdrawableDividend}(1,path,address(user),block.timestamp + 360) (contracts/DividendPayingToken.sol#99-113)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (contracts/BabyM31.sol#800)
Reentrancy in BABYM31.swapAndLiquify(uint256) (contracts/BabyM31.sol#445-468):
External calls:
- swapTokensForEth(half) (contracts/BabyM31.sol#458)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/BabyM31.sol#479-485)
- addLiquidity(otherHalf,newBalance) (contracts/BabyM31.sol#464)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (contracts/BabyM31.sol#511-518)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (contracts/BabyM31.sol#464)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (contracts/BabyM31.sol#511-518)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (contracts/BabyM31.sol#464)
- _allowances[owner][spender] = amount (contracts/ERC20.sol#341)
Reentrancy in BABYM31.updateUniswapV2Router(address) (contracts/BabyM31.sol#154-164):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (contracts/BabyM31.sol#161-162)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (contracts/BabyM31.sol#163)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in BABYM31._setAutomatedMarketMakerPair(address,bool) (contracts/BabyM31.sol#218-230):
External calls:
- dividendTracker.excludeFromDividends(pair) (contracts/BabyM31.sol#226)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (contracts/BabyM31.sol#229)
Reentrancy in BABYM31._transfer(address,address,uint256) (contracts/BabyM31.sol#343-431):
External calls:
- swapAndSendToFee(marketingTokens) (contracts/BabyM31.sol#376)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/BabyM31.sol#479-485)
- swapAndLiquify(swapTokens) (contracts/BabyM31.sol#381)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (contracts/BabyM31.sol#511-518)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/BabyM31.sol#479-485)
External calls sending eth:
- swapAndSendToFee(marketingTokens) (contracts/BabyM31.sol#376)
- address(_marketingWalletAddress).transfer(newBalance) (contracts/BabyM31.sol#440)
- swapAndLiquify(swapTokens) (contracts/BabyM31.sol#381)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (contracts/BabyM31.sol#511-518)
Event emitted after the call(s):
- Approval(owner,spender,amount) (contracts/ERC20.sol#342)
- swapAndLiquify(swapTokens) (contracts/BabyM31.sol#381)
- SwapAndLiquify(half,newBalance,otherHalf) (contracts/BabyM31.sol#466)
- swapAndLiquify(swapTokens) (contracts/BabyM31.sol#381)
Reentrancy in BABYM31._transfer(address,address,uint256) (contracts/BabyM31.sol#343-431):
External calls:
- swapAndSendToFee(marketingTokens) (contracts/BabyM31.sol#376)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/BabyM31.sol#479-485)
- swapAndLiquify(swapTokens) (contracts/BabyM31.sol#381)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (contracts/BabyM31.sol#511-518)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/BabyM31.sol#479-485)
- swapAndSendDividends(sellTokens) (contracts/BabyM31.sol#384)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/BabyM31.sol#479-485)
- (success) = address(dividendTracker).call{value: newBalance}() (contracts/BabyM31.sol#533-535)
External calls sending eth:
- swapAndSendToFee(marketingTokens) (contracts/BabyM31.sol#376)
- address(_marketingWalletAddress).transfer(newBalance) (contracts/BabyM31.sol#440)
- swapAndLiquify(swapTokens) (contracts/BabyM31.sol#381)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (contracts/BabyM31.sol#511-518)
- swapAndSendDividends(sellTokens) (contracts/BabyM31.sol#384)
- (success) = address(dividendTracker).call{value: newBalance}() (contracts/BabyM31.sol#533-535)
Event emitted after the call(s):
- Approval(owner,spender,amount) (contracts/ERC20.sol#342)
- swapAndSendDividends(sellTokens) (contracts/BabyM31.sol#384)
- SendDividends(tokens,newBalance) (contracts/BabyM31.sol#539)
- swapAndSendDividends(sellTokens) (contracts/BabyM31.sol#384)
- Transfer(sender,recipient,amount) (contracts/ERC20.sol#274)
- super._transfer(from,address(this),fees) (contracts/BabyM31.sol#403)
- Transfer(sender,recipient,amount) (contracts/ERC20.sol#274)
- super._transfer(from,to,amount) (contracts/BabyM31.sol#406)
Reentrancy in BABYM31._transfer(address,address,uint256) (contracts/BabyM31.sol#343-431):
External calls:
- swapAndSendToFee(marketingTokens) (contracts/BabyM31.sol#376)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/BabyM31.sol#479-485)
- swapAndLiquify(swapTokens) (contracts/BabyM31.sol#381)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (contracts/BabyM31.sol#511-518)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/BabyM31.sol#479-485)
- swapAndSendDividends(sellTokens) (contracts/BabyM31.sol#384)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/BabyM31.sol#479-485)
- (success) = address(dividendTracker).call{value: newBalance}() (contracts/BabyM31.sol#533-535)
- dividendTracker.setBalance(address(from),balanceOf(from)) (contracts/BabyM31.sol#408-410)
- dividendTracker.setBalance(address(to),balanceOf(to)) (contracts/BabyM31.sol#411)
- dividendTracker.process(gas) (contracts/BabyM31.sol#416-429)
External calls sending eth:
- swapAndSendToFee(marketingTokens) (contracts/BabyM31.sol#376)
- address(_marketingWalletAddress).transfer(newBalance) (contracts/BabyM31.sol#440)
- swapAndLiquify(swapTokens) (contracts/BabyM31.sol#381)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (contracts/BabyM31.sol#511-518)
- swapAndSendDividends(sellTokens) (contracts/BabyM31.sol#384)
- (success) = address(dividendTracker).call{value: newBalance}() (contracts/BabyM31.sol#533-535)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (contracts/BabyM31.sol#421-428)
Reentrancy in BABYM31.constructor() (contracts/BabyM31.sol#93-125):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (contracts/BabyM31.sol#100-101)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (contracts/BabyM31.sol#106)
- dividendTracker.excludeFromDividends(pair) (contracts/BabyM31.sol#226)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (contracts/BabyM31.sol#229)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (contracts/BabyM31.sol#106)
Reentrancy in BABYM31.constructor() (contracts/BabyM31.sol#93-125):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (contracts/BabyM31.sol#100-101)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (contracts/BabyM31.sol#106)
- dividendTracker.excludeFromDividends(pair) (contracts/BabyM31.sol#226)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (contracts/BabyM31.sol#109)
- dividendTracker.excludeFromDividends(address(this)) (contracts/BabyM31.sol#110)
- dividendTracker.excludeFromDividends(owner()) (contracts/BabyM31.sol#111)
- dividendTracker.excludeFromDividends(deadWallet) (contracts/BabyM31.sol#112)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (contracts/BabyM31.sol#113)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (contracts/BabyM31.sol#173)
- excludeFromFees(_marketingWalletAddress,true) (contracts/BabyM31.sol#117)
- ExcludeFromFees(account,excluded) (contracts/BabyM31.sol#173)
- excludeFromFees(owner(),true) (contracts/BabyM31.sol#116)
- ExcludeFromFees(account,excluded) (contracts/BabyM31.sol#173)
- excludeFromFees(address(this),true) (contracts/BabyM31.sol#118)
- Transfer(address(0),account,amount) (contracts/ERC20.sol#293)
- _mint(owner(),100000000000 * (10 ** 18)) (contracts/BabyM31.sol#124)
Reentrancy in BABYM31DividendTracker.processAccount(address,bool) (contracts/BabyM31.sol#792-806):
External calls:
- amount = _withdrawDividendOfUser(account) (contracts/BabyM31.sol#797)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: _withdrawableDividend}(1,path,address(user),block.timestamp + 360) (contracts/DividendPayingToken.sol#99-113)
Event emitted after the call(s):
- Claim(account,amount,automatic) (contracts/BabyM31.sol#801)
Reentrancy in BABYM31.processDividendTracker(uint256) (contracts/BabyM31.sol#315-329):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (contracts/BabyM31.sol#316-320)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (contracts/BabyM31.sol#321-328)
Reentrancy in BABYM31.swapAndLiquify(uint256) (contracts/BabyM31.sol#445-468):
External calls:
- swapTokensForEth(half) (contracts/BabyM31.sol#458)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/BabyM31.sol#479-485)
- addLiquidity(otherHalf,newBalance) (contracts/BabyM31.sol#464)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (contracts/BabyM31.sol#511-518)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (contracts/BabyM31.sol#464)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (contracts/BabyM31.sol#511-518)
Event emitted after the call(s):
- Approval(owner,spender,amount) (contracts/ERC20.sol#342)
- addLiquidity(otherHalf,newBalance) (contracts/BabyM31.sol#464)
- SwapAndLiquify(half,newBalance,otherHalf) (contracts/BabyM31.sol#466)
Reentrancy in BABYM31.swapAndSendDividends(uint256) (contracts/BabyM31.sol#521-542):
External calls:
- swapTokensForEth(tokens) (contracts/BabyM31.sol#531)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/BabyM31.sol#479-485)
- (success) = address(dividendTracker).call{value: newBalance}() (contracts/BabyM31.sol#533-535)
External calls sending eth:
- (success) = address(dividendTracker).call{value: newBalance}() (contracts/BabyM31.sol#533-535)
Event emitted after the call(s):
- SendDividends(tokens,newBalance) (contracts/BabyM31.sol#539)
Reentrancy in BABYM31.updateDividendTracker(address) (contracts/BabyM31.sol#129-152):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (contracts/BabyM31.sol#144)
- newDividendTracker.excludeFromDividends(address(this)) (contracts/BabyM31.sol#145)
- newDividendTracker.excludeFromDividends(owner()) (contracts/BabyM31.sol#146)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (contracts/BabyM31.sol#147)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (contracts/BabyM31.sol#149)
Apply the check-effects-interactions pattern.
Additional information: link
BABYM31DividendTracker.getAccount(address) (contracts/BabyM31.sol#630-677) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (contracts/BabyM31.sol#674-676)
BABYM31DividendTracker.canAutoClaim(uint256) (contracts/BabyM31.sol#711-717) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (contracts/BabyM31.sol#712)
- block.timestamp.sub(lastClaimTime) >= claimWait (contracts/BabyM31.sol#716)
Avoid relying on block.timestamp.
Additional information: link
Different versions of Solidity is used:
- Version used: ['0.6.12', '^0.6.2']
- ^0.6.2 (contracts/BabyM31.sol#3)
- 0.6.12 (contracts/Context.sol#3)
- ^0.6.2 (contracts/DividendPayingToken.sol#3)
- 0.6.12 (contracts/DividendPayingTokenInterface.sol#3)
- 0.6.12 (contracts/DividendPayingTokenOptionalInterface.sol#3)
- 0.6.12 (contracts/ERC20.sol#3)
- 0.6.12 (contracts/IERC20.sol#3)
- 0.6.12 (contracts/IERC20Metadata.sol#3)
- 0.6.12 (contracts/IUniswapV2Factory.sol#3)
- 0.6.12 (contracts/IUniswapV2Pair.sol#3)
- 0.6.12 (contracts/IUniswapV2Router.sol#3)
- 0.6.12 (contracts/IterableMapping.sol#2)
- 0.6.12 (contracts/Ownable.sol#1)
- 0.6.12 (contracts/SafeMath.sol#3)
- 0.6.12 (contracts/SafeMathInt.sol#28)
- 0.6.12 (contracts/SafeMathUint.sol#3)
Use one Solidity version.
Additional information: link
BABYM31.swapTokensForM31(uint256) (contracts/BabyM31.sol#488-504) is never used and should be removed
Context._msgData() (contracts/Context.sol#20-23) is never used and should be removed
DividendPayingToken._transfer(address,address,uint256) (contracts/DividendPayingToken.sol#184-199) is never used and should be removed
SafeMath.mod(uint256,uint256) (contracts/SafeMath.sol#134-136) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (contracts/SafeMath.sol#150-157) is never used and should be removed
SafeMathInt.abs(int256) (contracts/SafeMathInt.sol#82-85) is never used and should be removed
SafeMathInt.div(int256,int256) (contracts/SafeMathInt.sol#53-59) is never used and should be removed
SafeMathInt.mul(int256,int256) (contracts/SafeMathInt.sol#41-48) is never used and should be removed
Remove unused functions.
Additional information: link
BABYM31.totalFees (contracts/BabyM31.sol#35-36) is set pre-construction with a non-constant function or state variable:
- M31RewardsFee.add(liquidityFee).add(marketingFee)
Remove any initialization of state variables via non-constant state variables or function calls. If variables must be set upon contract deployment, locate initialization in the constructor instead.
Additional information: link
Pragma version^0.6.2 (contracts/BabyM31.sol#3) allows old versions
Pragma version^0.6.2 (contracts/DividendPayingToken.sol#3) 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
Low level call in BABYM31.swapAndSendDividends(uint256) (contracts/BabyM31.sol#521-542):
- (success) = address(dividendTracker).call{value: newBalance}() (contracts/BabyM31.sol#533-535)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Parameter BABYM31.setM31RewardsFee(uint256,uint256,uint256)._rewardFee (contracts/BabyM31.sol#192) is not in mixedCase
Parameter BABYM31.setM31RewardsFee(uint256,uint256,uint256)._liquidityFee (contracts/BabyM31.sol#193) is not in mixedCase
Parameter BABYM31.setM31RewardsFee(uint256,uint256,uint256)._marketingFee (contracts/BabyM31.sol#194) is not in mixedCase
Variable BABYM31.M31 (contracts/BabyM31.sol#25-26) is not in mixedCase
Variable BABYM31._isBlacklisted (contracts/BabyM31.sol#30) is not in mixedCase
Variable BABYM31.M31RewardsFee (contracts/BabyM31.sol#32) is not in mixedCase
Variable BABYM31._marketingWalletAddress (contracts/BabyM31.sol#38-39) is not in mixedCase
Parameter BABYM31DividendTracker.getAccount(address)._account (contracts/BabyM31.sol#630) is not in mixedCase
Parameter DividendPayingToken.dividendOf(address)._owner (contracts/DividendPayingToken.sol#132) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (contracts/DividendPayingToken.sol#139) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (contracts/DividendPayingToken.sol#151) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (contracts/DividendPayingToken.sol#165) is not in mixedCase
Variable DividendPayingToken.M31 (contracts/DividendPayingToken.sol#29-30) is not in mixedCase
Constant DividendPayingToken.magnitude (contracts/DividendPayingToken.sol#37) is not in UPPER_CASE_WITH_UNDERSCORES
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (contracts/IUniswapV2Pair.sol#38) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (contracts/IUniswapV2Pair.sol#40) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (contracts/IUniswapV2Pair.sol#71) is not in mixedCase
Function IUniswapV2Router01.WETH() (contracts/IUniswapV2Router.sol#8) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (contracts/Context.sol#21)" inContext (contracts/Context.sol#15-24)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in BABYM31._transfer(address,address,uint256) (contracts/BabyM31.sol#343-431):
External calls:
- swapAndSendToFee(marketingTokens) (contracts/BabyM31.sol#376)
- address(_marketingWalletAddress).transfer(newBalance) (contracts/BabyM31.sol#440)
External calls sending eth:
- swapAndSendToFee(marketingTokens) (contracts/BabyM31.sol#376)
- address(_marketingWalletAddress).transfer(newBalance) (contracts/BabyM31.sol#440)
- swapAndLiquify(swapTokens) (contracts/BabyM31.sol#381)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (contracts/BabyM31.sol#511-518)
State variables written after the call(s):
- swapAndLiquify(swapTokens) (contracts/BabyM31.sol#381)
- _allowances[owner][spender] = amount (contracts/ERC20.sol#341)
Event emitted after the call(s):
- Approval(owner,spender,amount) (contracts/ERC20.sol#342)
- swapAndLiquify(swapTokens) (contracts/BabyM31.sol#381)
- SwapAndLiquify(half,newBalance,otherHalf) (contracts/BabyM31.sol#466)
- swapAndLiquify(swapTokens) (contracts/BabyM31.sol#381)
Reentrancy in BABYM31._transfer(address,address,uint256) (contracts/BabyM31.sol#343-431):
External calls:
- swapAndSendToFee(marketingTokens) (contracts/BabyM31.sol#376)
- address(_marketingWalletAddress).transfer(newBalance) (contracts/BabyM31.sol#440)
External calls sending eth:
- swapAndSendToFee(marketingTokens) (contracts/BabyM31.sol#376)
- address(_marketingWalletAddress).transfer(newBalance) (contracts/BabyM31.sol#440)
- swapAndLiquify(swapTokens) (contracts/BabyM31.sol#381)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (contracts/BabyM31.sol#511-518)
- swapAndSendDividends(sellTokens) (contracts/BabyM31.sol#384)
- (success) = address(dividendTracker).call{value: newBalance}() (contracts/BabyM31.sol#533-535)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (contracts/BabyM31.sol#384)
- _allowances[owner][spender] = amount (contracts/ERC20.sol#341)
- super._transfer(from,address(this),fees) (contracts/BabyM31.sol#403)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (contracts/ERC20.sol#269-272)
- _balances[recipient] = _balances[recipient].add(amount) (contracts/ERC20.sol#273)
- super._transfer(from,to,amount) (contracts/BabyM31.sol#406)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (contracts/ERC20.sol#269-272)
- _balances[recipient] = _balances[recipient].add(amount) (contracts/ERC20.sol#273)
- swapping = false (contracts/BabyM31.sol#386)
Event emitted after the call(s):
- Approval(owner,spender,amount) (contracts/ERC20.sol#342)
- swapAndSendDividends(sellTokens) (contracts/BabyM31.sol#384)
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (contracts/BabyM31.sol#421-428)
- SendDividends(tokens,newBalance) (contracts/BabyM31.sol#539)
- swapAndSendDividends(sellTokens) (contracts/BabyM31.sol#384)
- Transfer(sender,recipient,amount) (contracts/ERC20.sol#274)
- super._transfer(from,address(this),fees) (contracts/BabyM31.sol#403)
- Transfer(sender,recipient,amount) (contracts/ERC20.sol#274)
- super._transfer(from,to,amount) (contracts/BabyM31.sol#406)
Apply the check-effects-interactions pattern.
Additional information: link
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (contracts/DividendPayingToken.sol#89) is too similar to BABYM31DividendTracker.getAccount(address).withdrawableDividends (contracts/BabyM31.sol#637)
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (contracts/IUniswapV2Router.sol#13) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (contracts/IUniswapV2Router.sol#14)
Prevent variables from having similar names.
Additional information: link
BABYM31.constructor() (contracts/BabyM31.sol#93-125) uses literals with too many digits:
- _mint(owner(),100000000000 * (10 ** 18)) (contracts/BabyM31.sol#124)
BABYM31.updateGasForProcessing(uint256) (contracts/BabyM31.sol#232-243) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 500000,BABYM31: gasForProcessing must be between 200,000 and 500,000) (contracts/BabyM31.sol#233-236)
BABYM31.slitherConstructorVariables() (contracts/BabyM31.sol#13-547) uses literals with too many digits:
- deadWallet = 0x000000000000000000000000000000000000dEaD (contracts/BabyM31.sol#23)
BABYM31.slitherConstructorVariables() (contracts/BabyM31.sol#13-547) uses literals with too many digits:
- swapTokensAtAmount = 2000000 * (10 ** 18) (contracts/BabyM31.sol#28)
BABYM31.slitherConstructorVariables() (contracts/BabyM31.sol#13-547) uses literals with too many digits:
- gasForProcessing = 300000 (contracts/BabyM31.sol#42)
BABYM31DividendTracker.constructor() (contracts/BabyM31.sol#573-582) uses literals with too many digits:
- minimumTokenBalanceForDividends = 200000 * (10 ** 18) (contracts/BabyM31.sol#581)
BABYM31DividendTracker.getAccountAtIndex(uint256) (contracts/BabyM31.sol#679-709) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (contracts/BabyM31.sol#694-703)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
BABYM31.deadWallet (contracts/BabyM31.sol#23) should be constant
BABYM31.swapTokensAtAmount (contracts/BabyM31.sol#28) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
updateDividendTracker(address) should be declared external:
- BABYM31.updateDividendTracker(address) (contracts/BabyM31.sol#129-152)
updateUniswapV2Router(address) should be declared external:
- BABYM31.updateUniswapV2Router(address) (contracts/BabyM31.sol#154-164)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- BABYM31.excludeMultipleAccountsFromFees(address[],bool) (contracts/BabyM31.sol#176-185)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- BABYM31.setAutomatedMarketMakerPair(address,bool) (contracts/BabyM31.sol#202-212)
updateGasForProcessing(uint256) should be declared external:
- BABYM31.updateGasForProcessing(uint256) (contracts/BabyM31.sol#232-243)
isExcludedFromFees(address) should be declared external:
- BABYM31.isExcludedFromFees(address) (contracts/BabyM31.sol#257-259)
withdrawableDividendOf(address) should be declared external:
- BABYM31.withdrawableDividendOf(address) (contracts/BabyM31.sol#261-267)
dividendTokenBalanceOf(address) should be declared external:
- BABYM31.dividendTokenBalanceOf(address) (contracts/BabyM31.sol#269-275)
withdrawDividend() should be declared external:
- BABYM31DividendTracker.withdrawDividend() (contracts/BabyM31.sol#592-597)
- DividendPayingToken.withdrawDividend() (contracts/DividendPayingToken.sol#79-81)
getAccountAtIndex(uint256) should be declared external:
- BABYM31DividendTracker.getAccountAtIndex(uint256) (contracts/BabyM31.sol#679-709)
process(uint256) should be declared external:
- BABYM31DividendTracker.process(uint256) (contracts/BabyM31.sol#738-790)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (contracts/DividendPayingToken.sol#132-134)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (contracts/DividendPayingToken.sol#151-158)
name() should be declared external:
- ERC20.name() (contracts/ERC20.sol#63-65)
symbol() should be declared external:
- ERC20.symbol() (contracts/ERC20.sol#71-73)
decimals() should be declared external:
- ERC20.decimals() (contracts/ERC20.sol#88-90)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (contracts/ERC20.sol#120-128)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (contracts/ERC20.sol#133-141)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (contracts/ERC20.sol#150-158)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (contracts/ERC20.sol#173-188)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (contracts/ERC20.sol#202-213)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (contracts/ERC20.sol#229-243)
get(IterableMapping.Map,address) should be declared external:
- IterableMapping.get(IterableMapping.Map,address) (contracts/IterableMapping.sol#13-15)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (contracts/IterableMapping.sol#17-26)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (contracts/IterableMapping.sol#28-34)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (contracts/IterableMapping.sol#36-38)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (contracts/Ownable.sol#46-49)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (contracts/Ownable.sol#55-62)
Use the external attribute for functions never called from the contract.
Additional information: link
Unable to find website, listings and other project-related information
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Unable to find Telegram and Twitter accounts