BabySwap Token Logo

BABY [BabySwap] Token

About BABY

Listings

Token 3 years
CoinGecko 3 years
CoinMarketCap 3 years
white paper

The best AMM+NFT decentralized exchange for newborn projects on Binance Smart Chain (BSC).

Social

Laser Scorebeta Last Audit: 21 July 2024

report
Token seems to be legit.

BabyToken._writeCheckpoint(address,uint32,uint256,uint256) (contracts/token/BabyToken.sol#221-239) uses a dangerous strict equality:
- nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber (contracts/token/BabyToken.sol#231)
Don't use strict equality to determine if an account has enough Ether or tokens.

Additional information: link

Redundant expression "this (@openzeppelin/contracts/utils/Context.sol#21)" inContext (@openzeppelin/contracts/utils/Context.sol#15-24)
Remove redundant statements if they congest code but offer no value.

Additional information: link

BEP20.allowance(address,address).owner (contracts/token/BEP20.sol#122) shadows:
- Ownable.owner() (@openzeppelin/contracts/access/Ownable.sol#35-37) (function)
BEP20._approve(address,address,uint256).owner (contracts/token/BEP20.sol#294) shadows:
- Ownable.owner() (@openzeppelin/contracts/access/Ownable.sol#35-37) (function)
Rename the local variables that shadow another component.

Additional information: link

BabyToken.delegateBySig(address,uint256,uint256,uint8,bytes32,bytes32) (contracts/token/BabyToken.sol#87-128) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp <= expiry,CAKE::delegateBySig: signature expired) (contracts/token/BabyToken.sol#126)
Avoid relying on block.timestamp.

Additional information: link

Low level call in Address.sendValue(address,uint256) (contracts/libraries/Address.sol#55-61):
- (success) = recipient.call{value: amount}() (contracts/libraries/Address.sol#59)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (contracts/libraries/Address.sol#134-160):
- (success,returndata) = target.call{value: weiValue}(data) (contracts/libraries/Address.sol#143)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link


Contract ownership is semi-renounced (passed to a contract)

Address.isContract(address) (contracts/libraries/Address.sol#26-37) uses assembly
- INLINE ASM (contracts/libraries/Address.sol#33-35)
BabyToken.getChainId() (contracts/token/BabyToken.sol#246-250) uses assembly
- INLINE ASM (contracts/token/BabyToken.sol#248)
Address._functionCallWithValue(address,bytes,uint256,string) (contracts/libraries/Address.sol#134-160) uses assembly
- INLINE ASM (contracts/libraries/Address.sol#152-155)
Do not use evm assembly.

Additional information: link

Different versions of Solidity are used:
- Version used: ['>0.6.6', '>=0.4.0', '>=0.6.0<0.8.0', '>=0.6.6']
- >=0.6.0<0.8.0 (@openzeppelin/contracts/access/Ownable.sol#3)
- >=0.6.0<0.8.0 (@openzeppelin/contracts/utils/Context.sol#3)
- >=0.4.0 (contracts/interfaces/IBEP20.sol#3)
- >=0.6.6 (contracts/libraries/Address.sol#3)
- >=0.4.0 (contracts/libraries/SafeMath.sol#3)
- >=0.4.0 (contracts/token/BEP20.sol#3)
- >0.6.6 (contracts/token/BabyToken.sol#3)
Use one Solidity version.

Additional information: link

SafeMath.mul(uint256,uint256) (contracts/libraries/SafeMath.sol#81-93) is never used and should be removed
Address.sendValue(address,uint256) (contracts/libraries/Address.sol#55-61) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (contracts/libraries/Address.sol#110-116) is never used and should be removed
SafeMath.sqrt(uint256) (contracts/libraries/SafeMath.sol#177-188) is never used and should be removed
BEP20._burnFrom(address,uint256) (contracts/token/BEP20.sol#311-318) is never used and should be removed
BEP20._burn(address,uint256) (contracts/token/BEP20.sol#272-278) is never used and should be removed
SafeMath.min(uint256,uint256) (contracts/libraries/SafeMath.sol#172-174) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (contracts/libraries/SafeMath.sol#163-170) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (contracts/libraries/Address.sol#124-132) is never used and should be removed
SafeMath.div(uint256,uint256,string) (contracts/libraries/SafeMath.sol#123-133) is never used and should be removed
Context._msgData() (@openzeppelin/contracts/utils/Context.sol#20-23) is never used and should be removed
SafeMath.mod(uint256,uint256) (contracts/libraries/SafeMath.sol#147-149) is never used and should be removed
SafeMath.div(uint256,uint256) (contracts/libraries/SafeMath.sol#107-109) is never used and should be removed
Address._functionCallWithValue(address,bytes,uint256,string) (contracts/libraries/Address.sol#134-160) is never used and should be removed
Address.isContract(address) (contracts/libraries/Address.sol#26-37) is never used and should be removed
Address.functionCall(address,bytes,string) (contracts/libraries/Address.sol#91-97) is never used and should be removed
Address.functionCall(address,bytes) (contracts/libraries/Address.sol#81-83) is never used and should be removed
Remove unused functions.

Additional information: link

solc-0.7.4 is not recommended for deployment
Pragma version>=0.6.0<0.8.0 (@openzeppelin/contracts/access/Ownable.sol#3) is too complex
Pragma version>=0.6.6 (contracts/libraries/Address.sol#3) allows old versions
Pragma version>=0.4.0 (contracts/libraries/SafeMath.sol#3) allows old versions
Pragma version>0.6.6 (contracts/token/BabyToken.sol#3) allows old versions
Pragma version>=0.6.0<0.8.0 (@openzeppelin/contracts/utils/Context.sol#3) is too complex
Pragma version>=0.4.0 (contracts/token/BEP20.sol#3) allows old versions
Pragma version>=0.4.0 (contracts/interfaces/IBEP20.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

Parameter BabyToken.mintFor(address,uint256)._amount (contracts/token/BabyToken.sol#12) is not in mixedCase
Constant BabyToken.maxSupply (contracts/token/BabyToken.sol#10) is not in UPPER_CASE_WITH_UNDERSCORES
Variable BabyToken._delegates (contracts/token/BabyToken.sol#30) is not in mixedCase
Parameter BabyToken.mintFor(address,uint256)._to (contracts/token/BabyToken.sol#12) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

transfer(address,uint256) should be declared external:
- BEP20.transfer(address,uint256) (contracts/token/BEP20.sol#114-117)
symbol() should be declared external:
- BEP20.symbol() (contracts/token/BEP20.sol#88-90)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (@openzeppelin/contracts/access/Ownable.sol#54-57)
approve(address,uint256) should be declared external:
- BEP20.approve(address,uint256) (contracts/token/BEP20.sol#133-136)
transferFrom(address,address,uint256) should be declared external:
- BEP20.transferFrom(address,address,uint256) (contracts/token/BEP20.sol#150-162)
mint(uint256) should be declared external:
- BEP20.mint(uint256) (contracts/token/BEP20.sol#212-215)
- BabyToken.mint(uint256) (contracts/token/BabyToken.sol#18-22)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (@openzeppelin/contracts/access/Ownable.sol#63-67)
allowance(address,address) should be declared external:
- BEP20.allowance(address,address) (contracts/token/BEP20.sol#122-124)
decimals() should be declared external:
- BEP20.decimals() (contracts/token/BEP20.sol#81-83)
increaseAllowance(address,uint256) should be declared external:
- BEP20.increaseAllowance(address,uint256) (contracts/token/BEP20.sol#176-179)
decreaseAllowance(address,uint256) should be declared external:
- BEP20.decreaseAllowance(address,uint256) (contracts/token/BEP20.sol#195-202)
mintFor(address,uint256) should be declared external:
- BabyToken.mintFor(address,uint256) (contracts/token/BabyToken.sol#12-16)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.


Average 30d number of PancakeSwap swaps is less than 1. Token is either dead or inactive.


Token is deployed only at one blockchain


Twitter account link seems to be invalid


Unable to find Youtube account


Unable to find token on CoinHunt

Additional information: link


Token has no active CoinGecko listing / rank

Price for BABY