Baby Moon Floki is a hyper-deflationary token that has a smart exchange system built into the ecosystem. Baby Moon Floki automatically sends rewards directly to your wallet by simply holding it.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
BabyMoonFloki.swapETHForTokens(uint256) (#827-842) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#834-839)
BabyMoonFloki.addLiquidity(uint256,uint256) (#844-857) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#849-856)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
BabyMoonFloki._transfer(address,address,uint256) (#670-787) uses a weak PRNG: "_bBSLimit = _bBSLimitMin + uint256(keccak256(bytes)(abi.encodePacked(block.timestamp,block.difficulty))) % (_bBSLimitMax - _bBSLimitMin + 1) (#731)"
Do not use block.timestamp, now or blockhash as a source of randomness
Additional information: link
Reentrancy in BabyMoonFloki._transfer(address,address,uint256) (#670-787):
External calls:
- swapTokens(contractTokenBalance) (#699)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#816-822)
External calls sending eth:
- swapTokens(contractTokenBalance) (#699)
- recipient.transfer(amount) (#1140)
State variables written after the call(s):
- _removeOldSellHistories() (#726)
- _sellHistories[i].time = _sellHistories[j].time (#1027)
- _sellHistories[i].bnbAmount = _sellHistories[j].bnbAmount (#1028)
- _sellHistories.pop() (#1038)
Reentrancy in BabyMoonFloki._transfer(address,address,uint256) (#670-787):
External calls:
- swapTokens(contractTokenBalance) (#699)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#816-822)
- buyBackTokens(_bBSLimit) (#734)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#834-839)
External calls sending eth:
- swapTokens(contractTokenBalance) (#699)
- recipient.transfer(amount) (#1140)
- buyBackTokens(_bBSLimit) (#734)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#834-839)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#786)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#963)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#879)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#888)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#880)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#899)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#909)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#890)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#900)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#911)
- _tokenTransfer(from,to,amount,takeFee) (#786)
- _rTotal = _rTotal.sub(rFee) (#918)
- _tokenTransfer(from,to,amount,takeFee) (#786)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#965)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#908)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#898)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#889)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#910)
- buyBackTokens(_bBSLimit) (#734)
- inSwapAndLiquify = true (#516)
- inSwapAndLiquify = false (#518)
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.
Not a direct threat, but may indicate unreliable intentions of developer. Widespread names (e.g. Elon, King, Moon, Doge) are common among meme-tokens and scams. The allow to gain free hype and attract unexperienced investors.
Not a direct threat, but may indicate unreliable intentions of developer. Both name and ticker of current token are widespread, i.e. common across multiple tokens. This is slightly suspicious
BabyMoonFloki.includeInReward(address) (#649-660) has costly operations inside a loop:
- _excluded.pop() (#656)
Use a local variable to hold the loop computation result.
Additional information: link
BabyMoonFloki._transfer(address,address,uint256).sellHistory (#686) 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
BabyMoonFloki.addLiquidity(uint256,uint256) (#844-857) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#849-856)
Ensure that all the return values of the function calls are used.
Additional information: link
BabyMoonFloki.allowance(address,address).owner (#571) shadows:
- Ownable.owner() (#161-163) (function)
BabyMoonFloki._approve(address,address,uint256).owner (#662) shadows:
- Ownable.owner() (#161-163) (function)
Rename the local variables that shadow another component.
Additional information: link
BabyMoonFloki.SetBuyBackMaxTimeForHistories(uint256) (#1043-1045) should emit an event for:
- _buyBackMaxTimeForHistories = newMinutes * 60 (#1044)
BabyMoonFloki.SetBuyBackDivisor(uint256) (#1047-1049) should emit an event for:
- _buyBackDivisor = newDivisor (#1048)
BabyMoonFloki.SetBuyBackTimeInterval(uint256) (#1055-1057) should emit an event for:
- _buyBackTimeInterval = newMinutes * 60 (#1056)
BabyMoonFloki.SetBuyBackRangeRate(uint256) (#1059-1062) should emit an event for:
- _buyBackRangeRate = newPercent (#1061)
BabyMoonFloki.SetSwapMinutes(uint256) (#1068-1070) should emit an event for:
- _intervalMinutesForSwap = newMinutes * 60 (#1069)
BabyMoonFloki.setTaxFeePercent(uint256) (#1072-1074) should emit an event for:
- _taxFee = taxFee (#1073)
BabyMoonFloki.setBuyFee(uint256,uint256) (#1076-1079) should emit an event for:
- _buyTaxFee = buyTaxFee (#1077)
- _buyLiquidityFee = buyLiquidityFee (#1078)
BabyMoonFloki.setSellFee(uint256,uint256) (#1081-1084) should emit an event for:
- _sellTaxFee = sellTaxFee (#1082)
- _sellLiquidityFee = sellLiquidityFee (#1083)
BabyMoonFloki.setLiquidityFeePercent(uint256) (#1086-1088) should emit an event for:
- _liquidityFee = liquidityFee (#1087)
BabyMoonFloki.setBuyBackSellLimit(uint256) (#1090-1092) should emit an event for:
- buyBackSellLimit = buyBackSellSetLimit (#1091)
BabyMoonFloki.setMaxTxAmount(uint256) (#1094-1096) should emit an event for:
- _maxTxAmount = maxTxAmount (#1095)
BabyMoonFloki.setMarketingDivisor(uint256) (#1098-1100) should emit an event for:
- marketingDivisor = divisor (#1099)
BabyMoonFloki.setNumTokensSellToAddToBuyBack(uint256) (#1102-1104) should emit an event for:
- minimumTokensBeforeSwap = _minimumTokensBeforeSwap (#1103)
Emit an event for critical parameter changes.
Additional information: link
BabyMoonFloki.setMarketingAddress(address)._marketingAddress (#1106) lacks a zero-check on :
- marketingAddress = address(_marketingAddress) (#1107)
Check that the address is not zero.
Additional information: link
Reentrancy in BabyMoonFloki._transfer(address,address,uint256) (#670-787):
External calls:
- swapTokens(contractTokenBalance) (#699)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#816-822)
- buyBackTokens(_bBSLimit) (#734)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#834-839)
External calls sending eth:
- swapTokens(contractTokenBalance) (#699)
- recipient.transfer(amount) (#1140)
- buyBackTokens(_bBSLimit) (#734)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#834-839)
State variables written after the call(s):
- removeAllFee() (#750)
- _liquidityFee = 0 (#987)
- _liquidityFee = _buyLiquidityFee (#752)
- removeAllFee() (#756)
- _liquidityFee = 0 (#987)
- _liquidityFee = _sellLiquidityFee (#758)
- removeAllFee() (#763)
- _liquidityFee = 0 (#987)
- _liquidityFee = _addressFees[from]._liquidityFee (#765)
- _liquidityFee = _addressFees[from]._sellLiquidityFee (#770)
- removeAllFee() (#777)
- _liquidityFee = 0 (#987)
- _liquidityFee = _addressFees[to]._buyLiquidityFee (#780)
- _tokenTransfer(from,to,amount,takeFee) (#786)
- _liquidityFee = _previousLiquidityFee (#992)
- _liquidityFee = 0 (#987)
- removeAllFee() (#750)
- _previousLiquidityFee = _liquidityFee (#984)
- removeAllFee() (#756)
- _previousLiquidityFee = _liquidityFee (#984)
- removeAllFee() (#763)
- _previousLiquidityFee = _liquidityFee (#984)
- removeAllFee() (#777)
- _previousLiquidityFee = _liquidityFee (#984)
- _tokenTransfer(from,to,amount,takeFee) (#786)
- _previousLiquidityFee = _liquidityFee (#984)
- removeAllFee() (#750)
- _previousTaxFee = _taxFee (#983)
- removeAllFee() (#756)
- _previousTaxFee = _taxFee (#983)
- removeAllFee() (#763)
- _previousTaxFee = _taxFee (#983)
- removeAllFee() (#777)
- _previousTaxFee = _taxFee (#983)
- _tokenTransfer(from,to,amount,takeFee) (#786)
- _previousTaxFee = _taxFee (#983)
- _tokenTransfer(from,to,amount,takeFee) (#786)
- _tFeeTotal = _tFeeTotal.add(tFee) (#919)
- removeAllFee() (#750)
- _taxFee = 0 (#986)
- _taxFee = _buyTaxFee (#751)
- removeAllFee() (#756)
- _taxFee = 0 (#986)
- _taxFee = _sellTaxFee (#757)
- removeAllFee() (#763)
- _taxFee = 0 (#986)
- _taxFee = _addressFees[from]._taxFee (#764)
- _taxFee = _addressFees[from]._sellTaxFee (#769)
- removeAllFee() (#777)
- _taxFee = 0 (#986)
- _taxFee = _addressFees[to]._buyTaxFee (#779)
- _tokenTransfer(from,to,amount,takeFee) (#786)
- _taxFee = _previousTaxFee (#991)
- _taxFee = 0 (#986)
Reentrancy in BabyMoonFloki.changeRouterVersion(address) (#1143-1156):
External calls:
- _pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1149-1150)
State variables written after the call(s):
- uniswapV2Pair = _pair (#1152)
- uniswapV2Router = _uniswapV2Router (#1155)
Reentrancy in BabyMoonFloki.constructor() (#521-543):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#531-532)
State variables written after the call(s):
- _isExcludedFromFee[owner()] = true (#537)
- _isExcludedFromFee[address(this)] = true (#538)
- _startTimeForSwap = block.timestamp (#540)
- uniswapV2Router = _uniswapV2Router (#534)
Reentrancy in BabyMoonFloki.transferFrom(address,address,uint256) (#580-584):
External calls:
- _transfer(sender,recipient,amount) (#581)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#834-839)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#816-822)
External calls sending eth:
- _transfer(sender,recipient,amount) (#581)
- recipient.transfer(amount) (#1140)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#834-839)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#582)
- _allowances[owner][spender] = amount (#666)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in BabyMoonFloki._transfer(address,address,uint256) (#670-787):
External calls:
- swapTokens(contractTokenBalance) (#699)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#816-822)
- buyBackTokens(_bBSLimit) (#734)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#834-839)
External calls sending eth:
- swapTokens(contractTokenBalance) (#699)
- recipient.transfer(amount) (#1140)
- buyBackTokens(_bBSLimit) (#734)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#834-839)
Event emitted after the call(s):
- SwapETHForTokens(amount,path) (#841)
- buyBackTokens(_bBSLimit) (#734)
- Transfer(sender,recipient,tTransferAmount) (#883)
- _tokenTransfer(from,to,amount,takeFee) (#786)
- Transfer(sender,recipient,tTransferAmount) (#903)
- _tokenTransfer(from,to,amount,takeFee) (#786)
- Transfer(sender,recipient,tTransferAmount) (#893)
- _tokenTransfer(from,to,amount,takeFee) (#786)
- Transfer(sender,recipient,tTransferAmount) (#914)
- _tokenTransfer(from,to,amount,takeFee) (#786)
Reentrancy in BabyMoonFloki.constructor() (#521-543):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#531-532)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_tTotal) (#542)
Reentrancy in BabyMoonFloki.swapETHForTokens(uint256) (#827-842):
External calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#834-839)
Event emitted after the call(s):
- SwapETHForTokens(amount,path) (#841)
Reentrancy in BabyMoonFloki.swapTokensForEth(uint256) (#807-825):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#816-822)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (#824)
Reentrancy in BabyMoonFloki.transferFrom(address,address,uint256) (#580-584):
External calls:
- _transfer(sender,recipient,amount) (#581)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#834-839)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#816-822)
External calls sending eth:
- _transfer(sender,recipient,amount) (#581)
- recipient.transfer(amount) (#1140)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#834-839)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#667)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#582)
Apply the check-effects-interactions pattern.
Additional information: link
Ownable.unlock() (#196-201) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp > _lockTime,Contract is locked until 7 days) (#198)
BabyMoonFloki._transfer(address,address,uint256) (#670-787) uses timestamp for comparisons
Dangerous comparisons:
- overMinimumTokenBalance && _startTimeForSwap + _intervalMinutesForSwap <= block.timestamp (#696)
- _sellHistories[i].time >= startTime (#716)
- balance > _bBSLimit (#733)
BabyMoonFloki.buyBackTokens(uint256) (#801-805) uses timestamp for comparisons
Dangerous comparisons:
- amount > 0 (#802)
BabyMoonFloki._removeOldSellHistories() (#1019-1041) uses timestamp for comparisons
Dangerous comparisons:
- _sellHistories[j].time >= maxStartTimeForHistories (#1025)
Avoid relying on block.timestamp.
Additional information: link
Address.isContract(address) (#91-100) uses assembly
- INLINE ASM (#98)
Address._functionCallWithValue(address,bytes,uint256,string) (#128-145) uses assembly
- INLINE ASM (#137-140)
Do not use evm assembly.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#128-145) is never used and should be removed
Address.functionCall(address,bytes) (#111-113) is never used and should be removed
Address.functionCall(address,bytes,string) (#115-117) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#119-121) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#123-126) is never used and should be removed
Address.isContract(address) (#91-100) is never used and should be removed
Address.sendValue(address,uint256) (#102-108) is never used and should be removed
BabyMoonFloki.addLiquidity(uint256,uint256) (#844-857) is never used and should be removed
Context._msgData() (#14-17) is never used and should be removed
SafeMath.mod(uint256,uint256) (#79-81) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#83-86) is never used and should be removed
Remove unused functions.
Additional information: link
BabyMoonFloki._rTotal (#431) is set pre-construction with a non-constant function or state variable:
- (MAX - (MAX % _tTotal))
BabyMoonFloki._previousTaxFee (#454) is set pre-construction with a non-constant function or state variable:
- _taxFee
BabyMoonFloki._previousLiquidityFee (#457) is set pre-construction with a non-constant function or state variable:
- _liquidityFee
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
Low level call in Address.sendValue(address,uint256) (#102-108):
- (success) = recipient.call{value: amount}() (#106)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#128-145):
- (success,returndata) = target.call{value: weiValue}(data) (#131)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#241) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#242) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#258) is not in mixedCase
Function IUniswapV2Router01.WETH() (#279) is not in mixedCase
Parameter BabyMoonFloki.calculateTaxFee(uint256)._amount (#968) is not in mixedCase
Parameter BabyMoonFloki.calculateLiquidityFee(uint256)._amount (#974) is not in mixedCase
Function BabyMoonFloki.SetBuyBackMaxTimeForHistories(uint256) (#1043-1045) is not in mixedCase
Function BabyMoonFloki.SetBuyBackDivisor(uint256) (#1047-1049) is not in mixedCase
Function BabyMoonFloki.GetBuyBackTimeInterval() (#1051-1053) is not in mixedCase
Function BabyMoonFloki.SetBuyBackTimeInterval(uint256) (#1055-1057) is not in mixedCase
Function BabyMoonFloki.SetBuyBackRangeRate(uint256) (#1059-1062) is not in mixedCase
Function BabyMoonFloki.GetSwapMinutes() (#1064-1066) is not in mixedCase
Function BabyMoonFloki.SetSwapMinutes(uint256) (#1068-1070) is not in mixedCase
Parameter BabyMoonFloki.setNumTokensSellToAddToBuyBack(uint256)._minimumTokensBeforeSwap (#1102) is not in mixedCase
Parameter BabyMoonFloki.setMarketingAddress(address)._marketingAddress (#1106) is not in mixedCase
Parameter BabyMoonFloki.setSwapAndLiquifyEnabled(bool)._enabled (#1110) is not in mixedCase
Parameter BabyMoonFloki.setBuyBackEnabled(bool)._enabled (#1115) is not in mixedCase
Parameter BabyMoonFloki.setAutoBuyBackEnabled(bool)._enabled (#1120) is not in mixedCase
Parameter BabyMoonFloki.changeRouterVersion(address)._router (#1143) is not in mixedCase
Parameter BabyMoonFloki.transferForeignToken(address,address)._token (#1162) is not in mixedCase
Parameter BabyMoonFloki.transferForeignToken(address,address)._to (#1162) is not in mixedCase
Function BabyMoonFloki.Sweep() (#1168-1171) is not in mixedCase
Parameter BabyMoonFloki.setAddressFee(address,bool,uint256,uint256)._address (#1173) is not in mixedCase
Parameter BabyMoonFloki.setAddressFee(address,bool,uint256,uint256)._enable (#1173) is not in mixedCase
Parameter BabyMoonFloki.setAddressFee(address,bool,uint256,uint256)._addressTaxFee (#1173) is not in mixedCase
Parameter BabyMoonFloki.setAddressFee(address,bool,uint256,uint256)._addressLiquidityFee (#1173) is not in mixedCase
Parameter BabyMoonFloki.setBuyAddressFee(address,bool,uint256,uint256)._address (#1179) is not in mixedCase
Parameter BabyMoonFloki.setBuyAddressFee(address,bool,uint256,uint256)._enable (#1179) is not in mixedCase
Parameter BabyMoonFloki.setBuyAddressFee(address,bool,uint256,uint256)._addressTaxFee (#1179) is not in mixedCase
Parameter BabyMoonFloki.setBuyAddressFee(address,bool,uint256,uint256)._addressLiquidityFee (#1179) is not in mixedCase
Parameter BabyMoonFloki.setSellAddressFee(address,bool,uint256,uint256)._address (#1185) is not in mixedCase
Parameter BabyMoonFloki.setSellAddressFee(address,bool,uint256,uint256)._enable (#1185) is not in mixedCase
Parameter BabyMoonFloki.setSellAddressFee(address,bool,uint256,uint256)._addressTaxFee (#1185) is not in mixedCase
Parameter BabyMoonFloki.setSellAddressFee(address,bool,uint256,uint256)._addressLiquidityFee (#1185) is not in mixedCase
Variable BabyMoonFloki._taxFee (#453) is not in mixedCase
Variable BabyMoonFloki._liquidityFee (#456) is not in mixedCase
Variable BabyMoonFloki._buyTaxFee (#459) is not in mixedCase
Variable BabyMoonFloki._buyLiquidityFee (#460) is not in mixedCase
Variable BabyMoonFloki._sellTaxFee (#462) is not in mixedCase
Variable BabyMoonFloki._sellLiquidityFee (#463) is not in mixedCase
Variable BabyMoonFloki._startTimeForSwap (#465) is not in mixedCase
Variable BabyMoonFloki._intervalMinutesForSwap (#466) is not in mixedCase
Variable BabyMoonFloki._buyBackRangeRate (#468) is not in mixedCase
Variable BabyMoonFloki._addressFees (#471) is not in mixedCase
Variable BabyMoonFloki._maxTxAmount (#475) is not in mixedCase
Variable BabyMoonFloki._sellHistories (#480) is not in mixedCase
Variable BabyMoonFloki._isAutoBuyBack (#481) is not in mixedCase
Variable BabyMoonFloki._buyBackDivisor (#482) is not in mixedCase
Variable BabyMoonFloki._buyBackTimeInterval (#483) is not in mixedCase
Variable BabyMoonFloki._buyBackMaxTimeForHistories (#484) is not in mixedCase
Variable BabyMoonFloki._isEnabledBuyBackAndBurn (#493) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#15)" inContext (#9-18)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in BabyMoonFloki._transfer(address,address,uint256) (#670-787):
External calls:
- swapTokens(contractTokenBalance) (#699)
- recipient.transfer(amount) (#1140)
State variables written after the call(s):
- _removeOldSellHistories() (#726)
- _sellHistories[i].time = _sellHistories[j].time (#1027)
- _sellHistories[i].bnbAmount = _sellHistories[j].bnbAmount (#1028)
- _sellHistories.pop() (#1038)
Reentrancy in BabyMoonFloki._transfer(address,address,uint256) (#670-787):
External calls:
- swapTokens(contractTokenBalance) (#699)
- recipient.transfer(amount) (#1140)
External calls sending eth:
- swapTokens(contractTokenBalance) (#699)
- recipient.transfer(amount) (#1140)
- buyBackTokens(_bBSLimit) (#734)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#834-839)
State variables written after the call(s):
- removeAllFee() (#750)
- _liquidityFee = 0 (#987)
- _liquidityFee = _buyLiquidityFee (#752)
- removeAllFee() (#756)
- _liquidityFee = 0 (#987)
- _liquidityFee = _sellLiquidityFee (#758)
- removeAllFee() (#763)
- _liquidityFee = 0 (#987)
- _liquidityFee = _addressFees[from]._liquidityFee (#765)
- _liquidityFee = _addressFees[from]._sellLiquidityFee (#770)
- removeAllFee() (#777)
- _liquidityFee = 0 (#987)
- _liquidityFee = _addressFees[to]._buyLiquidityFee (#780)
- _tokenTransfer(from,to,amount,takeFee) (#786)
- _liquidityFee = _previousLiquidityFee (#992)
- _liquidityFee = 0 (#987)
- removeAllFee() (#750)
- _previousLiquidityFee = _liquidityFee (#984)
- removeAllFee() (#756)
- _previousLiquidityFee = _liquidityFee (#984)
- removeAllFee() (#763)
- _previousLiquidityFee = _liquidityFee (#984)
- removeAllFee() (#777)
- _previousLiquidityFee = _liquidityFee (#984)
- _tokenTransfer(from,to,amount,takeFee) (#786)
- _previousLiquidityFee = _liquidityFee (#984)
- removeAllFee() (#750)
- _previousTaxFee = _taxFee (#983)
- removeAllFee() (#756)
- _previousTaxFee = _taxFee (#983)
- removeAllFee() (#763)
- _previousTaxFee = _taxFee (#983)
- removeAllFee() (#777)
- _previousTaxFee = _taxFee (#983)
- _tokenTransfer(from,to,amount,takeFee) (#786)
- _previousTaxFee = _taxFee (#983)
- _tokenTransfer(from,to,amount,takeFee) (#786)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#963)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#879)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#888)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#880)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#899)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#909)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#890)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#900)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#911)
- _tokenTransfer(from,to,amount,takeFee) (#786)
- _rTotal = _rTotal.sub(rFee) (#918)
- _tokenTransfer(from,to,amount,takeFee) (#786)
- _tFeeTotal = _tFeeTotal.add(tFee) (#919)
- _tokenTransfer(from,to,amount,takeFee) (#786)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#965)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#908)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#898)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#889)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#910)
- removeAllFee() (#750)
- _taxFee = 0 (#986)
- _taxFee = _buyTaxFee (#751)
- removeAllFee() (#756)
- _taxFee = 0 (#986)
- _taxFee = _sellTaxFee (#757)
- removeAllFee() (#763)
- _taxFee = 0 (#986)
- _taxFee = _addressFees[from]._taxFee (#764)
- _taxFee = _addressFees[from]._sellTaxFee (#769)
- removeAllFee() (#777)
- _taxFee = 0 (#986)
- _taxFee = _addressFees[to]._buyTaxFee (#779)
- _tokenTransfer(from,to,amount,takeFee) (#786)
- _taxFee = _previousTaxFee (#991)
- _taxFee = 0 (#986)
- buyBackTokens(_bBSLimit) (#734)
- inSwapAndLiquify = true (#516)
- inSwapAndLiquify = false (#518)
Event emitted after the call(s):
- SwapETHForTokens(amount,path) (#841)
- buyBackTokens(_bBSLimit) (#734)
- Transfer(sender,recipient,tTransferAmount) (#883)
- _tokenTransfer(from,to,amount,takeFee) (#786)
- Transfer(sender,recipient,tTransferAmount) (#903)
- _tokenTransfer(from,to,amount,takeFee) (#786)
- Transfer(sender,recipient,tTransferAmount) (#893)
- _tokenTransfer(from,to,amount,takeFee) (#786)
- Transfer(sender,recipient,tTransferAmount) (#914)
- _tokenTransfer(from,to,amount,takeFee) (#786)
Reentrancy in BabyMoonFloki.transferFrom(address,address,uint256) (#580-584):
External calls:
- _transfer(sender,recipient,amount) (#581)
- recipient.transfer(amount) (#1140)
External calls sending eth:
- _transfer(sender,recipient,amount) (#581)
- recipient.transfer(amount) (#1140)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#834-839)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#582)
- _allowances[owner][spender] = amount (#666)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#667)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#582)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#284) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#285)
Variable BabyMoonFloki._transferFromExcluded(address,address,uint256).rTransferAmount (#897) is too similar to BabyMoonFloki._transferToExcluded(address,address,uint256).tTransferAmount (#887)
Variable BabyMoonFloki._transferBothExcluded(address,address,uint256).rTransferAmount (#907) is too similar to BabyMoonFloki._transferFromExcluded(address,address,uint256).tTransferAmount (#897)
Variable BabyMoonFloki._getValues(uint256).rTransferAmount (#924) is too similar to BabyMoonFloki._transferFromExcluded(address,address,uint256).tTransferAmount (#897)
Variable BabyMoonFloki._transferStandard(address,address,uint256).rTransferAmount (#878) is too similar to BabyMoonFloki._getTValues(uint256).tTransferAmount (#931)
Variable BabyMoonFloki._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#939) is too similar to BabyMoonFloki._getTValues(uint256).tTransferAmount (#931)
Variable BabyMoonFloki._transferToExcluded(address,address,uint256).rTransferAmount (#887) is too similar to BabyMoonFloki._transferFromExcluded(address,address,uint256).tTransferAmount (#897)
Variable BabyMoonFloki._transferFromExcluded(address,address,uint256).rTransferAmount (#897) is too similar to BabyMoonFloki._transferFromExcluded(address,address,uint256).tTransferAmount (#897)
Variable BabyMoonFloki._transferStandard(address,address,uint256).rTransferAmount (#878) is too similar to BabyMoonFloki._transferStandard(address,address,uint256).tTransferAmount (#878)
Variable BabyMoonFloki.reflectionFromToken(uint256,bool).rTransferAmount (#628) is too similar to BabyMoonFloki._getTValues(uint256).tTransferAmount (#931)
Variable BabyMoonFloki._transferBothExcluded(address,address,uint256).rTransferAmount (#907) is too similar to BabyMoonFloki._getTValues(uint256).tTransferAmount (#931)
Variable BabyMoonFloki._transferStandard(address,address,uint256).rTransferAmount (#878) is too similar to BabyMoonFloki._transferBothExcluded(address,address,uint256).tTransferAmount (#907)
Variable BabyMoonFloki._getValues(uint256).rTransferAmount (#924) is too similar to BabyMoonFloki._getTValues(uint256).tTransferAmount (#931)
Variable BabyMoonFloki._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#939) is too similar to BabyMoonFloki._transferBothExcluded(address,address,uint256).tTransferAmount (#907)
Variable BabyMoonFloki._transferStandard(address,address,uint256).rTransferAmount (#878) is too similar to BabyMoonFloki._transferToExcluded(address,address,uint256).tTransferAmount (#887)
Variable BabyMoonFloki._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#939) is too similar to BabyMoonFloki._transferToExcluded(address,address,uint256).tTransferAmount (#887)
Variable BabyMoonFloki.reflectionFromToken(uint256,bool).rTransferAmount (#628) is too similar to BabyMoonFloki._transferBothExcluded(address,address,uint256).tTransferAmount (#907)
Variable BabyMoonFloki._transferToExcluded(address,address,uint256).rTransferAmount (#887) is too similar to BabyMoonFloki._getTValues(uint256).tTransferAmount (#931)
Variable BabyMoonFloki._transferFromExcluded(address,address,uint256).rTransferAmount (#897) is too similar to BabyMoonFloki._getTValues(uint256).tTransferAmount (#931)
Variable BabyMoonFloki.reflectionFromToken(uint256,bool).rTransferAmount (#628) is too similar to BabyMoonFloki._transferToExcluded(address,address,uint256).tTransferAmount (#887)
Variable BabyMoonFloki._transferBothExcluded(address,address,uint256).rTransferAmount (#907) is too similar to BabyMoonFloki._transferBothExcluded(address,address,uint256).tTransferAmount (#907)
Variable BabyMoonFloki._getValues(uint256).rTransferAmount (#924) is too similar to BabyMoonFloki._transferBothExcluded(address,address,uint256).tTransferAmount (#907)
Variable BabyMoonFloki._transferStandard(address,address,uint256).rTransferAmount (#878) is too similar to BabyMoonFloki._transferFromExcluded(address,address,uint256).tTransferAmount (#897)
Variable BabyMoonFloki._transferBothExcluded(address,address,uint256).rTransferAmount (#907) is too similar to BabyMoonFloki._transferToExcluded(address,address,uint256).tTransferAmount (#887)
Variable BabyMoonFloki._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#939) is too similar to BabyMoonFloki._transferFromExcluded(address,address,uint256).tTransferAmount (#897)
Variable BabyMoonFloki._getValues(uint256).rTransferAmount (#924) is too similar to BabyMoonFloki._transferToExcluded(address,address,uint256).tTransferAmount (#887)
Variable BabyMoonFloki._transferFromExcluded(address,address,uint256).rTransferAmount (#897) is too similar to BabyMoonFloki._transferBothExcluded(address,address,uint256).tTransferAmount (#907)
Variable BabyMoonFloki.reflectionFromToken(uint256,bool).rTransferAmount (#628) is too similar to BabyMoonFloki._transferFromExcluded(address,address,uint256).tTransferAmount (#897)
Variable BabyMoonFloki._transferToExcluded(address,address,uint256).rTransferAmount (#887) is too similar to BabyMoonFloki._transferToExcluded(address,address,uint256).tTransferAmount (#887)
Variable BabyMoonFloki._transferFromExcluded(address,address,uint256).rTransferAmount (#897) is too similar to BabyMoonFloki._transferStandard(address,address,uint256).tTransferAmount (#878)
Variable BabyMoonFloki._transferToExcluded(address,address,uint256).rTransferAmount (#887) is too similar to BabyMoonFloki._transferBothExcluded(address,address,uint256).tTransferAmount (#907)
Variable BabyMoonFloki.reflectionFromToken(uint256,bool).rTransferAmount (#628) is too similar to BabyMoonFloki._getValues(uint256).tTransferAmount (#923)
Variable BabyMoonFloki._transferFromExcluded(address,address,uint256).rTransferAmount (#897) is too similar to BabyMoonFloki._getValues(uint256).tTransferAmount (#923)
Variable BabyMoonFloki._getValues(uint256).rTransferAmount (#924) is too similar to BabyMoonFloki._transferStandard(address,address,uint256).tTransferAmount (#878)
Variable BabyMoonFloki._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#939) is too similar to BabyMoonFloki._transferStandard(address,address,uint256).tTransferAmount (#878)
Variable BabyMoonFloki._transferBothExcluded(address,address,uint256).rTransferAmount (#907) is too similar to BabyMoonFloki._transferStandard(address,address,uint256).tTransferAmount (#878)
Variable BabyMoonFloki._transferStandard(address,address,uint256).rTransferAmount (#878) is too similar to BabyMoonFloki._getValues(uint256).tTransferAmount (#923)
Variable BabyMoonFloki._getValues(uint256).rTransferAmount (#924) is too similar to BabyMoonFloki._getValues(uint256).tTransferAmount (#923)
Variable BabyMoonFloki._transferToExcluded(address,address,uint256).rTransferAmount (#887) is too similar to BabyMoonFloki._transferStandard(address,address,uint256).tTransferAmount (#878)
Variable BabyMoonFloki._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#939) is too similar to BabyMoonFloki._getValues(uint256).tTransferAmount (#923)
Variable BabyMoonFloki._transferBothExcluded(address,address,uint256).rTransferAmount (#907) is too similar to BabyMoonFloki._getValues(uint256).tTransferAmount (#923)
Variable BabyMoonFloki._transferToExcluded(address,address,uint256).rTransferAmount (#887) is too similar to BabyMoonFloki._getValues(uint256).tTransferAmount (#923)
Variable BabyMoonFloki.reflectionFromToken(uint256,bool).rTransferAmount (#628) is too similar to BabyMoonFloki._transferStandard(address,address,uint256).tTransferAmount (#878)
Prevent variables from having similar names.
Additional information: link
BabyMoonFloki.prepareForPreSale() (#1125-1130) uses literals with too many digits:
- _maxTxAmount = 1000000000 * 10 ** 6 * 10 ** 9 (#1129)
BabyMoonFloki.afterPreSale() (#1132-1137) uses literals with too many digits:
- _maxTxAmount = 3000000 * 10 ** 6 * 10 ** 9 (#1136)
BabyMoonFloki.slitherConstructorVariables() (#414-1192) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#419)
BabyMoonFloki.slitherConstructorVariables() (#414-1192) uses literals with too many digits:
- _tTotal = 100000000000 * 10 ** 6 * 10 ** 9 (#430)
BabyMoonFloki.slitherConstructorVariables() (#414-1192) uses literals with too many digits:
- _maxTxAmount = 600000000 * 10 ** 6 * 10 ** 9 (#475)
BabyMoonFloki.slitherConstructorVariables() (#414-1192) uses literals with too many digits:
- minimumTokensBeforeSwap = 40000000 * 10 ** 6 * 10 ** 9 (#476)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
BabyMoonFloki._decimals (#436) should be constant
BabyMoonFloki._isEnabledBuyBackAndBurn (#493) should be constant
BabyMoonFloki._name (#434) should be constant
BabyMoonFloki._symbol (#435) should be constant
BabyMoonFloki._tTotal (#430) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#170-173)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#175-179)
getUnlockTime() should be declared external:
- Ownable.getUnlockTime() (#181-183)
getTime() should be declared external:
- Ownable.getTime() (#185-187)
lock(uint256) should be declared external:
- Ownable.lock(uint256) (#189-194)
unlock() should be declared external:
- Ownable.unlock() (#196-201)
name() should be declared external:
- BabyMoonFloki.name() (#545-547)
symbol() should be declared external:
- BabyMoonFloki.symbol() (#549-551)
decimals() should be declared external:
- BabyMoonFloki.decimals() (#553-555)
totalSupply() should be declared external:
- BabyMoonFloki.totalSupply() (#557-559)
transfer(address,uint256) should be declared external:
- BabyMoonFloki.transfer(address,uint256) (#566-569)
allowance(address,address) should be declared external:
- BabyMoonFloki.allowance(address,address) (#571-573)
approve(address,uint256) should be declared external:
- BabyMoonFloki.approve(address,uint256) (#575-578)
transferFrom(address,address,uint256) should be declared external:
- BabyMoonFloki.transferFrom(address,address,uint256) (#580-584)
increaseAllowance(address,uint256) should be declared external:
- BabyMoonFloki.increaseAllowance(address,uint256) (#586-589)
decreaseAllowance(address,uint256) should be declared external:
- BabyMoonFloki.decreaseAllowance(address,uint256) (#591-594)
isExcludedFromReward(address) should be declared external:
- BabyMoonFloki.isExcludedFromReward(address) (#596-598)
totalFees() should be declared external:
- BabyMoonFloki.totalFees() (#600-602)
minimumTokensBeforeSwapAmount() should be declared external:
- BabyMoonFloki.minimumTokensBeforeSwapAmount() (#604-606)
buyBackSellLimitAmount() should be declared external:
- BabyMoonFloki.buyBackSellLimitAmount() (#608-610)
deliver(uint256) should be declared external:
- BabyMoonFloki.deliver(uint256) (#612-619)
reflectionFromToken(uint256,bool) should be declared external:
- BabyMoonFloki.reflectionFromToken(uint256,bool) (#622-631)
excludeFromReward(address) should be declared external:
- BabyMoonFloki.excludeFromReward(address) (#639-647)
isExcludedFromFee(address) should be declared external:
- BabyMoonFloki.isExcludedFromFee(address) (#995-997)
excludeFromFee(address) should be declared external:
- BabyMoonFloki.excludeFromFee(address) (#999-1001)
includeInFee(address) should be declared external:
- BabyMoonFloki.includeInFee(address) (#1003-1005)
GetBuyBackTimeInterval() should be declared external:
- BabyMoonFloki.GetBuyBackTimeInterval() (#1051-1053)
GetSwapMinutes() should be declared external:
- BabyMoonFloki.GetSwapMinutes() (#1064-1066)
setBuyBackEnabled(bool) should be declared external:
- BabyMoonFloki.setBuyBackEnabled(bool) (#1115-1118)
setAutoBuyBackEnabled(bool) should be declared external:
- BabyMoonFloki.setAutoBuyBackEnabled(bool) (#1120-1123)
changeRouterVersion(address) should be declared external:
- BabyMoonFloki.changeRouterVersion(address) (#1143-1156)
transferForeignToken(address,address) should be declared external:
- BabyMoonFloki.transferForeignToken(address,address) (#1162-1166)
Use the external attribute for functions never called from the contract.
Additional information: link
Swap operations require suspiciously high gas. Contract logic is complex and may disguise some form of scam.
Token is deployed only at one blockchain
Contract has 8% buy tax and 7% sell tax.
Taxes are low and contract ownership is renounced.
Unable to find PancakeSwap trading pair to compute liquidity.
Unable to find PancakeSwap trading pair to compute number of swaps.
Unable to find token contract audit
Unable to find audit link on the website
Unable to find whitepaper link on the website
Unable to find code repository for the project
Alexa traffic rank is very low
Additional information: link
Young tokens have high risks of price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Token has relatively low CoinGecko rank
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account