What is Babyloki?
BABY LOKI is a deflationary token designed to become rarer and rarer over time. All holders of Babyloki will receive more Babyloki that is set to send to your wallet by simply holding Babyloki coins in your wallet. Observing the number of token Babyloki increase continuously in your wallet as Babyloki coin holders automatically receive a 2% fee from every Babyloki’s on chain transaction. Therefore, the community receives more Babyloki coins from the fees generated from each transaction.
BABYLOKI.sendETHToFee(uint256) (#302-305) sends eth to arbitrary user
Dangerous calls:
- _developmentAddress.transfer(amount.div(2)) (#303)
- _marketingAddress.transfer(amount.div(2)) (#304)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in BABYLOKI._transfer(address,address,uint256) (#249-286):
External calls:
- swapTokensForEth(contractTokenBalance) (#261)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#293-299)
External calls sending eth:
- sendETHToFee(address(this).balance) (#264)
- _developmentAddress.transfer(amount.div(2)) (#303)
- _marketingAddress.transfer(amount.div(2)) (#304)
State variables written after the call(s):
- _tokenTransfer(from,to,amount) (#285)
- _rOwned[address(this)] = _rOwned[address(this)].add(rTeam) (#343)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#333)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#334)
- _tokenTransfer(from,to,amount) (#285)
- _rTotal = _rTotal.sub(rFee) (#347)
Apply the check-effects-interactions pattern.
Additional information: link
BABYLOKI.rescueForeignTokens(address,address,uint256) (#312-315) ignores return value by Token(_tokenAddr).transfer(_to,_amount) (#314)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Contract ownership is not renounced (belongs to a wallet)
Combination 1: Reentrancy vulnerabilities + Functions that send Ether to arbitraty destination. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
Combination 2: Unchecked transfer + Functions that send Ether to arbitraty destination. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
Combination 3: Reentrancy vulnerabilities + Unchecked transfer vulnerability. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
Ownable.transferOwnership(address).newOwner (#128) lacks a zero-check on :
- _owner = newOwner (#130)
BABYLOKI.setNewDevAddress(address).dev (#318) lacks a zero-check on :
- _developmentAddress = dev (#320)
BABYLOKI.setNewMarketingAddress(address).markt (#325) lacks a zero-check on :
- _marketingAddress = markt (#327)
Check that the address is not zero.
Additional information: link
Ownable._previousOwner (#105) is never used in BABYLOKI (#135-449)
BABYLOKI._tOwned (#139) is never used in BABYLOKI (#135-449)
Remove unused state variables.
Additional information: link
Ownable._previousOwner (#105) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
BABYLOKI.allowance(address,address).owner (#221) shadows:
- Ownable.owner() (#113-115) (function)
BABYLOKI._approve(address,address,uint256).owner (#242) shadows:
- Ownable.owner() (#113-115) (function)
Rename the local variables that shadow another component.
Additional information: link
Reentrancy in BABYLOKI._transfer(address,address,uint256) (#249-286):
External calls:
- swapTokensForEth(contractTokenBalance) (#261)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#293-299)
External calls sending eth:
- sendETHToFee(address(this).balance) (#264)
- _developmentAddress.transfer(amount.div(2)) (#303)
- _marketingAddress.transfer(amount.div(2)) (#304)
State variables written after the call(s):
- _redisFee = _redisFeeOnBuy (#269)
- _redisFee = _redisFeeOnSell (#274)
- _redisFee = 0 (#279)
- _tokenTransfer(from,to,amount) (#285)
- _tFeeTotal = _tFeeTotal.add(tFee) (#348)
- _taxFee = _taxFeeOnBuy (#270)
- _taxFee = _taxFeeOnSell (#275)
- _taxFee = 0 (#280)
Reentrancy in BABYLOKI.constructor() (#175-189):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#180-181)
State variables written after the call(s):
- _isExcludedFromFee[owner()] = true (#183)
- _isExcludedFromFee[address(this)] = true (#184)
- _isExcludedFromFee[_developmentAddress] = true (#185)
- _isExcludedFromFee[_marketingAddress] = true (#186)
Reentrancy in BABYLOKI.transferFrom(address,address,uint256) (#230-234):
External calls:
- _transfer(sender,recipient,amount) (#231)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#293-299)
External calls sending eth:
- _transfer(sender,recipient,amount) (#231)
- _developmentAddress.transfer(amount.div(2)) (#303)
- _marketingAddress.transfer(amount.div(2)) (#304)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#232)
- _allowances[owner][spender] = amount (#245)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in BABYLOKI._transfer(address,address,uint256) (#249-286):
External calls:
- swapTokensForEth(contractTokenBalance) (#261)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#293-299)
External calls sending eth:
- sendETHToFee(address(this).balance) (#264)
- _developmentAddress.transfer(amount.div(2)) (#303)
- _marketingAddress.transfer(amount.div(2)) (#304)
Event emitted after the call(s):
- Transfer(sender,recipient,tTransferAmount) (#337)
- _tokenTransfer(from,to,amount) (#285)
Reentrancy in BABYLOKI.constructor() (#175-189):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#180-181)
Event emitted after the call(s):
- Transfer(address(0x0000000000000000000000000000000000000000),_msgSender(),_tTotal) (#188)
Reentrancy in BABYLOKI.transferFrom(address,address,uint256) (#230-234):
External calls:
- _transfer(sender,recipient,amount) (#231)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#293-299)
External calls sending eth:
- _transfer(sender,recipient,amount) (#231)
- _developmentAddress.transfer(amount.div(2)) (#303)
- _marketingAddress.transfer(amount.div(2)) (#304)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#246)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#232)
Apply the check-effects-interactions pattern.
Additional information: link
BABYLOKI._rTotal (#145) is set pre-construction with a non-constant function or state variable:
- (MAX - (MAX % _tTotal))
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
Function IUniswapV2Router02.WETH() (#46) is not in mixedCase
Event BABYLOKItokensRescued(address,address,uint256) (#311) is not in CapWords
Event BABYLOKIdevAddressUpdated(address,address) (#317) is not in CapWords
Event BABYLOKImarketingAddressUpdated(address,address) (#324) is not in CapWords
Parameter BABYLOKI.rescueForeignTokens(address,address,uint256)._tokenAddr (#312) is not in mixedCase
Parameter BABYLOKI.rescueForeignTokens(address,address,uint256)._to (#312) is not in mixedCase
Parameter BABYLOKI.rescueForeignTokens(address,address,uint256)._amount (#312) is not in mixedCase
Parameter BABYLOKI.toggleSwap(bool)._swapEnabled (#410) is not in mixedCase
Constant BABYLOKI._name (#157) is not in UPPER_CASE_WITH_UNDERSCORES
Constant BABYLOKI._symbol (#158) is not in UPPER_CASE_WITH_UNDERSCORES
Constant BABYLOKI._decimals (#159) is not in UPPER_CASE_WITH_UNDERSCORES
Follow the Solidity naming convention.
Additional information: link
Reentrancy in BABYLOKI._transfer(address,address,uint256) (#249-286):
External calls:
- sendETHToFee(address(this).balance) (#264)
- _developmentAddress.transfer(amount.div(2)) (#303)
- _marketingAddress.transfer(amount.div(2)) (#304)
State variables written after the call(s):
- _tokenTransfer(from,to,amount) (#285)
- _rOwned[address(this)] = _rOwned[address(this)].add(rTeam) (#343)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#333)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#334)
- _tokenTransfer(from,to,amount) (#285)
- _rTotal = _rTotal.sub(rFee) (#347)
- _redisFee = _redisFeeOnBuy (#269)
- _redisFee = _redisFeeOnSell (#274)
- _redisFee = 0 (#279)
- _tokenTransfer(from,to,amount) (#285)
- _tFeeTotal = _tFeeTotal.add(tFee) (#348)
- _taxFee = _taxFeeOnBuy (#270)
- _taxFee = _taxFeeOnSell (#275)
- _taxFee = 0 (#280)
Event emitted after the call(s):
- Transfer(sender,recipient,tTransferAmount) (#337)
- _tokenTransfer(from,to,amount) (#285)
Reentrancy in BABYLOKI.transferFrom(address,address,uint256) (#230-234):
External calls:
- _transfer(sender,recipient,amount) (#231)
- _developmentAddress.transfer(amount.div(2)) (#303)
- _marketingAddress.transfer(amount.div(2)) (#304)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#232)
- _allowances[owner][spender] = amount (#245)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#246)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#232)
Apply the check-effects-interactions pattern.
Additional information: link
Variable BABYLOKI._transferStandard(address,address,uint256).rTransferAmount (#332) is too similar to BABYLOKI._getValues(uint256).tTransferAmount (#354)
Variable BABYLOKI._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#371) is too similar to BABYLOKI._getTValues(uint256,uint256,uint256).tTransferAmount (#363)
Variable BABYLOKI._transferStandard(address,address,uint256).rTransferAmount (#332) is too similar to BABYLOKI._transferStandard(address,address,uint256).tTransferAmount (#332)
Variable BABYLOKI._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#371) is too similar to BABYLOKI._getValues(uint256).tTransferAmount (#354)
Variable BABYLOKI._transferStandard(address,address,uint256).rTransferAmount (#332) is too similar to BABYLOKI._getTValues(uint256,uint256,uint256).tTransferAmount (#363)
Variable BABYLOKI._getValues(uint256).rTransferAmount (#356) is too similar to BABYLOKI._getTValues(uint256,uint256,uint256).tTransferAmount (#363)
Variable BABYLOKI._getValues(uint256).rTransferAmount (#356) is too similar to BABYLOKI._getValues(uint256).tTransferAmount (#354)
Variable BABYLOKI._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#371) is too similar to BABYLOKI._transferStandard(address,address,uint256).tTransferAmount (#332)
Variable BABYLOKI._getValues(uint256).rTransferAmount (#356) is too similar to BABYLOKI._transferStandard(address,address,uint256).tTransferAmount (#332)
Prevent variables from having similar names.
Additional information: link
BABYLOKI.constructor() (#175-189) uses literals with too many digits:
- Transfer(address(0x0000000000000000000000000000000000000000),_msgSender(),_tTotal) (#188)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#122-125)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#128-131)
name() should be declared external:
- BABYLOKI.name() (#196-198)
symbol() should be declared external:
- BABYLOKI.symbol() (#200-202)
decimals() should be declared external:
- BABYLOKI.decimals() (#204-206)
totalSupply() should be declared external:
- BABYLOKI.totalSupply() (#208-210)
transfer(address,uint256) should be declared external:
- BABYLOKI.transfer(address,uint256) (#216-219)
allowance(address,address) should be declared external:
- BABYLOKI.allowance(address,address) (#221-223)
approve(address,uint256) should be declared external:
- BABYLOKI.approve(address,uint256) (#225-228)
transferFrom(address,address,uint256) should be declared external:
- BABYLOKI.transferFrom(address,address,uint256) (#230-234)
rescueForeignTokens(address,address,uint256) should be declared external:
- BABYLOKI.rescueForeignTokens(address,address,uint256) (#312-315)
setNewDevAddress(address) should be declared external:
- BABYLOKI.setNewDevAddress(address) (#318-322)
setNewMarketingAddress(address) should be declared external:
- BABYLOKI.setNewMarketingAddress(address) (#325-329)
setFee(uint256,uint256,uint256,uint256) should be declared external:
- BABYLOKI.setFee(uint256,uint256,uint256,uint256) (#399-408)
toggleSwap(bool) should be declared external:
- BABYLOKI.toggleSwap(bool) (#410-412)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- BABYLOKI.excludeMultipleAccountsFromFees(address[],bool) (#414-418)
Use the external attribute for functions never called from the contract.
Additional information: link
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Unable to find token/project description on the website or on BscScan, CoinMarketCap
Unable to find audit link on the website
Unable to find whitepaper link on the website
Unable to find token on CoinGecko
Additional information: link
Unable to find token on CoinMarketCap
Additional information: link
Token is not listed at Mobula.Finance
Additional information: link
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
Young tokens have high risks of scam / price dump / death
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
Token has no active CoinMarketCap listing / rank
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account