BabyEgg Token Logo

BabyEgg Token

ALERT: rug pull scam

About BabyEgg

Listings

Not Found
Token 3 months

Website

Not Found

Description

Not Found

Social

Laser Scorebeta Last Audit: 19 February 2022

report
Code:


Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)

BabyEgg.addLiquidity(uint256,uint256) (#742-755) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in BabyEgg._transfer(address,address,uint256) (#651-689):
External calls:
- swapAndLiquify(contractTokenBalance) (#673)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#731-737)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#673)
- recipient.transfer(amount) (#615)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#676)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#684)
- finalAmount = takeFee(sender,recipient,amount) (#678-679)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#769)
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.

BabyEgg.addLiquidity(uint256,uint256) (#742-755) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
Ensure that all the return values of the function calls are used.

Additional information: link

BabyEgg.allowance(address,address).owner (#506) shadows:
- Ownable.owner() (#156-158) (function)
BabyEgg._approve(address,address,uint256).owner (#529) shadows:
- Ownable.owner() (#156-158) (function)
Rename the local variables that shadow another component.

Additional information: link

BabyEgg.setBuyTaxes(uint256,uint256,uint256) (#549-555) should emit an event for:
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyTeamFee) (#554)
BabyEgg.setSelTaxes(uint256,uint256,uint256) (#557-563) should emit an event for:
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellTeamFee) (#562)
BabyEgg.setDistributionSettings(uint256,uint256,uint256) (#565-571) should emit an event for:
- _liquidityShare = newLiquidityShare (#566)
- _teamShare = newTeamShare (#568)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_teamShare) (#570)
BabyEgg.setMaxTxAmount(uint256) (#573-575) should emit an event for:
- _maxTxAmount = maxTxAmount (#574)
BabyEgg.setWalletLimit(uint256) (#585-587) should emit an event for:
- _walletMax = newLimit (#586)
BabyEgg.setNumTokensBeforeSwap(uint256) (#589-591) should emit an event for:
- minimumTokensBeforeSwap = newLimit (#590)
Emit an event for critical parameter changes.

Additional information: link

BabyEgg.setMarketingWalletAddress(address).newAddress (#593) lacks a zero-check on :
- marketingWalletAddress = address(newAddress) (#594)
BabyEgg.setTeamWalletAddress(address).newAddress (#597) lacks a zero-check on :
- teamWalletAddress = address(newAddress) (#598)
Check that the address is not zero.

Additional information: link

Reentrancy in BabyEgg.changeRouterVersion(address) (#618-635):
External calls:
- newPairAddress = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#626-627)
State variables written after the call(s):
- isMarketPair[address(uniswapPair)] = true (#634)
- isWalletLimitExempt[address(uniswapPair)] = true (#633)
- uniswapPair = newPairAddress (#630)
- uniswapV2Router = _uniswapV2Router (#631)
Reentrancy in BabyEgg.constructor() (#455-484):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#460-461)
State variables written after the call(s):
- _allowances[address(this)][address(uniswapV2Router)] = _totalSupply (#464)
- _balances[_msgSender()] = _totalSupply (#482)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_teamShare) (#471)
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyTeamFee) (#469)
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellTeamFee) (#470)
- isExcludedFromFee[owner()] = true (#466)
- isExcludedFromFee[address(this)] = true (#467)
- isMarketPair[address(uniswapPair)] = true (#480)
- isTxLimitExempt[owner()] = true (#477)
- isTxLimitExempt[address(this)] = true (#478)
- isWalletLimitExempt[owner()] = true (#473)
- isWalletLimitExempt[address(uniswapPair)] = true (#474)
- isWalletLimitExempt[address(this)] = true (#475)
- uniswapV2Router = _uniswapV2Router (#463)
Reentrancy in BabyEgg.swapAndLiquify(uint256) (#698-720):
External calls:
- swapTokensForEth(tokensForSwap) (#703)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#731-737)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#719)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#713)
- recipient.transfer(amount) (#615)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#716)
- recipient.transfer(amount) (#615)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#719)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#719)
- _allowances[owner][spender] = amount (#533)
Reentrancy in BabyEgg.transferFrom(address,address,uint256) (#645-649):
External calls:
- _transfer(sender,recipient,amount) (#646)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#731-737)
External calls sending eth:
- _transfer(sender,recipient,amount) (#646)
- recipient.transfer(amount) (#615)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#647)
- _allowances[owner][spender] = amount (#533)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in BabyEgg._transfer(address,address,uint256) (#651-689):
External calls:
- swapAndLiquify(contractTokenBalance) (#673)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#731-737)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#673)
- recipient.transfer(amount) (#615)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#770)
- finalAmount = takeFee(sender,recipient,amount) (#678-679)
- Transfer(sender,recipient,finalAmount) (#686)
Reentrancy in BabyEgg.constructor() (#455-484):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#460-461)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_totalSupply) (#483)
Reentrancy in BabyEgg.swapAndLiquify(uint256) (#698-720):
External calls:
- swapTokensForEth(tokensForSwap) (#703)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#731-737)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#719)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#713)
- recipient.transfer(amount) (#615)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#716)
- recipient.transfer(amount) (#615)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#719)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#534)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#719)
Reentrancy in BabyEgg.swapTokensForEth(uint256) (#722-740):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#731-737)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (#739)
Reentrancy in BabyEgg.transferFrom(address,address,uint256) (#645-649):
External calls:
- _transfer(sender,recipient,amount) (#646)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#731-737)
External calls sending eth:
- _transfer(sender,recipient,amount) (#646)
- recipient.transfer(amount) (#615)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#534)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#647)
Apply the check-effects-interactions pattern.

Additional information: link

Address.isContract(address) (#87-96) uses assembly
- INLINE ASM (#94)
Address._functionCallWithValue(address,bytes,uint256,string) (#123-140) uses assembly
- INLINE ASM (#132-135)
Do not use evm assembly.

Additional information: link

Address._functionCallWithValue(address,bytes,uint256,string) (#123-140) is never used and should be removed
Address.functionCall(address,bytes) (#106-108) is never used and should be removed
Address.functionCall(address,bytes,string) (#110-112) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#114-116) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#118-121) is never used and should be removed
Address.isContract(address) (#87-96) is never used and should be removed
Address.sendValue(address,uint256) (#98-104) is never used and should be removed
Context._msgData() (#14-17) is never used and should be removed
SafeMath.mod(uint256,uint256) (#75-77) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#79-82) is never used and should be removed
Remove unused functions.

Additional information: link

BabyEgg._totalSupply (#419) is set pre-construction with a non-constant function or state variable:
- 10000 * 10 ** _decimals
BabyEgg._maxTxAmount (#420) is set pre-construction with a non-constant function or state variable:
- 20 * 10 ** _decimals
BabyEgg._walletMax (#421) is set pre-construction with a non-constant function or state variable:
- 100 * 10 ** _decimals
BabyEgg.minimumTokensBeforeSwap (#422) is set pre-construction with a non-constant function or state variable:
- 1 * 10 ** _decimals
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) (#98-104):
- (success) = recipient.call{value: amount}() (#102)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#123-140):
- (success,returndata) = target.call{value: weiValue}(data) (#126)
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() (#213) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#214) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#230) is not in mixedCase
Function IUniswapV2Router01.WETH() (#249) is not in mixedCase
Parameter BabyEgg.setSwapAndLiquifyEnabled(bool)._enabled (#601) is not in mixedCase
Variable BabyEgg._balances (#395) is not in mixedCase
Variable BabyEgg._buyLiquidityFee (#403) is not in mixedCase
Variable BabyEgg._buyMarketingFee (#404) is not in mixedCase
Variable BabyEgg._buyTeamFee (#405) is not in mixedCase
Variable BabyEgg._sellLiquidityFee (#407) is not in mixedCase
Variable BabyEgg._sellMarketingFee (#408) is not in mixedCase
Variable BabyEgg._sellTeamFee (#409) is not in mixedCase
Variable BabyEgg._liquidityShare (#411) is not in mixedCase
Variable BabyEgg._marketingShare (#412) is not in mixedCase
Variable BabyEgg._teamShare (#413) is not in mixedCase
Variable BabyEgg._totalTaxIfBuying (#415) is not in mixedCase
Variable BabyEgg._totalTaxIfSelling (#416) is not in mixedCase
Variable BabyEgg._totalDistributionShares (#417) is not in mixedCase
Variable BabyEgg._maxTxAmount (#420) is not in mixedCase
Variable BabyEgg._walletMax (#421) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (#15)" inContext (#8-18)
Remove redundant statements if they congest code but offer no value.

Additional information: link

Reentrancy in BabyEgg._transfer(address,address,uint256) (#651-689):
External calls:
- swapAndLiquify(contractTokenBalance) (#673)
- recipient.transfer(amount) (#615)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#673)
- recipient.transfer(amount) (#615)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#676)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#684)
- finalAmount = takeFee(sender,recipient,amount) (#678-679)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#769)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#770)
- finalAmount = takeFee(sender,recipient,amount) (#678-679)
- Transfer(sender,recipient,finalAmount) (#686)
Reentrancy in BabyEgg.swapAndLiquify(uint256) (#698-720):
External calls:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#713)
- recipient.transfer(amount) (#615)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#716)
- recipient.transfer(amount) (#615)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#713)
- recipient.transfer(amount) (#615)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#716)
- recipient.transfer(amount) (#615)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#719)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#719)
- _allowances[owner][spender] = amount (#533)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#534)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#719)
Reentrancy in BabyEgg.transferFrom(address,address,uint256) (#645-649):
External calls:
- _transfer(sender,recipient,amount) (#646)
- recipient.transfer(amount) (#615)
External calls sending eth:
- _transfer(sender,recipient,amount) (#646)
- recipient.transfer(amount) (#615)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#747-754)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#647)
- _allowances[owner][spender] = amount (#533)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#534)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#647)
Apply the check-effects-interactions pattern.

Additional information: link

Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#254) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#255)
Prevent variables from having similar names.

Additional information: link

Ownable.waiveOwnership() (#165-168) uses literals with too many digits:
- OwnershipTransferred(_owner,address(0x000000000000000000000000000000000000dEaD)) (#166)
Ownable.waiveOwnership() (#165-168) uses literals with too many digits:
- _owner = address(0x000000000000000000000000000000000000dEaD) (#167)
BabyEgg.slitherConstructorVariables() (#382-777) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#393)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

Ownable.asdasd (#145) is never used in BabyEgg (#382-777)
Ownable._lockTime (#146) is never used in BabyEgg (#382-777)
Remove unused state variables.

Additional information: link

BabyEgg._decimals (#389) should be constant
BabyEgg._name (#387) should be constant
BabyEgg._symbol (#388) should be constant
Ownable._lockTime (#146) should be constant
Ownable.asdasd (#145) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

waiveOwnership() should be declared external:
- Ownable.waiveOwnership() (#165-168)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#170-174)
getTime() should be declared external:
- Ownable.getTime() (#176-178)
name() should be declared external:
- BabyEgg.name() (#486-488)
symbol() should be declared external:
- BabyEgg.symbol() (#490-492)
decimals() should be declared external:
- BabyEgg.decimals() (#494-496)
totalSupply() should be declared external:
- BabyEgg.totalSupply() (#498-500)
allowance(address,address) should be declared external:
- BabyEgg.allowance(address,address) (#506-508)
increaseAllowance(address,uint256) should be declared external:
- BabyEgg.increaseAllowance(address,uint256) (#510-513)
decreaseAllowance(address,uint256) should be declared external:
- BabyEgg.decreaseAllowance(address,uint256) (#515-518)
minimumTokensBeforeSwapAmount() should be declared external:
- BabyEgg.minimumTokensBeforeSwapAmount() (#520-522)
approve(address,uint256) should be declared external:
- BabyEgg.approve(address,uint256) (#524-527)
setMarketPairStatus(address,bool) should be declared external:
- BabyEgg.setMarketPairStatus(address,bool) (#537-539)
setIsExcludedFromFee(address,bool) should be declared external:
- BabyEgg.setIsExcludedFromFee(address,bool) (#545-547)
setSwapAndLiquifyEnabled(bool) should be declared external:
- BabyEgg.setSwapAndLiquifyEnabled(bool) (#601-604)
setSwapAndLiquifyByLimitOnly(bool) should be declared external:
- BabyEgg.setSwapAndLiquifyByLimitOnly(bool) (#606-608)
getCirculatingSupply() should be declared external:
- BabyEgg.getCirculatingSupply() (#610-612)
changeRouterVersion(address) should be declared external:
- BabyEgg.changeRouterVersion(address) (#618-635)
transfer(address,uint256) should be declared external:
- BabyEgg.transfer(address,uint256) (#640-643)
transferFrom(address,address,uint256) should be declared external:
- BabyEgg.transferFrom(address,address,uint256) (#645-649)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


Token seems to be untradeable: there is no PancakeSwap trading pair and no trading volumes. Ignore for presale.


Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive.


Unable to find Twitter account


Telegram account has less than 100 subscribers


Unable to find Blog account (Reddit or Medium)


Unable to find Youtube account


Unable to find Discord account

Search:


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

Anti-Scam Checks

Price for BabyEgg