BabyPIGS Token Logo

BabyPIGS Token

About BabyPIGS

Listings

Not Found
Token 2 years

Website

Not Found

Description

Not Found

Social

Laser Scorebeta Last Audit: 4 February 2022

report
Token seems to be anonymous. As long as we are unable to find website score is limited.


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

BabyPIGS.swapBack() (#626-670) sends eth to arbitrary user
Dangerous calls:
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#654)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in BabyPIGS._transferFrom(address,address,uint256) (#526-574):
External calls:
- swapBack() (#553)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#637-643)
- distributor.deposit{value: amountBNBReflection}() (#653)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#654)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#660-667)
External calls sending eth:
- swapBack() (#553)
- distributor.deposit{value: amountBNBReflection}() (#653)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#654)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#660-667)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#556)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#559)
- amountReceived = takeFee(sender,amount) (#558)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#594)
Apply the check-effects-interactions pattern.

Additional information: link

DividendDistributor.distributeDividend(address) (#356-367) ignores return value by REWARD_TOKEN.transfer(shareholder,amount) (#362)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.

Additional information: link


Too many vulnerabilities (Unchecked transfer, Reentrancy vulnerability, etc.). High risk of a scam. DYOR & manual audit are advised.

BabyPIGS.swapBack().tmpSuccess (#654) is written in both
(tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#654)
tmpSuccess = false (#657)
Fix or remove the writes.

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.


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.

Reentrancy in DividendDistributor.distributeDividend(address) (#356-367):
External calls:
- REWARD_TOKEN.transfer(shareholder,amount) (#362)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (#364)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#365)
Reentrancy in DividendDistributor.process(uint256) (#325-349):
External calls:
- distributeDividend(shareholders[currentIndex]) (#341)
- REWARD_TOKEN.transfer(shareholder,amount) (#362)
State variables written after the call(s):
- currentIndex ++ (#346)
Reentrancy in DividendDistributor.setShare(address,uint256) (#289-303):
External calls:
- distributeDividend(shareholder) (#291)
- REWARD_TOKEN.transfer(shareholder,amount) (#362)
State variables written after the call(s):
- shares[shareholder].amount = amount (#301)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#302)
Apply the check-effects-interactions pattern.

Additional information: link

BabyPIGS.swapBack() (#626-670) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#660-667)
Ensure that all the return values of the function calls are used.

Additional information: link

DividendDistributor.setDistributionCriteria(uint256,uint256) (#284-287) should emit an event for:
- minPeriod = _minPeriod (#285)
- minDistribution = _minDistribution (#286)
BabyPIGS.setTxLimit(uint256) (#673-675) should emit an event for:
- _maxTxAmount = amount (#674)
BabyPIGS.setFees(uint256,uint256,uint256,uint256) (#721-728) should emit an event for:
- liquidityFee = _liquidityFee (#722)
- reflectionFee = _reflectionFee (#723)
- marketingFee = _marketingFee (#724)
- totalFee = _liquidityFee.add(_reflectionFee).add(_marketingFee) (#725)
- feeDenominator = _feeDenominator (#726)
BabyPIGS.setSwapBackSettings(bool,uint256) (#735-738) should emit an event for:
- swapThreshold = _amount (#737)
BabyPIGS.setTargetLiquidity(uint256,uint256) (#740-743) should emit an event for:
- targetLiquidity = _target (#741)
- targetLiquidityDenominator = _denominator (#742)
Emit an event for critical parameter changes.

Additional information: link

Auth.transferOwnership(address).adr (#165) lacks a zero-check on :
- owner = adr (#166)
BabyPIGS.setFeeReceivers(address,address)._autoLiquidityReceiver (#730) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#731)
BabyPIGS.setFeeReceivers(address,address)._marketingFeeReceiver (#730) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#732)
Check that the address is not zero.

Additional information: link

DividendDistributor.distributeDividend(address) (#356-367) has external calls inside a loop: REWARD_TOKEN.transfer(shareholder,amount) (#362)
BabyPIGS.airdrop(address,address[],uint256[]) (#771-794) has external calls inside a loop: distributor.setShare(addresses[i_scope_0],_balances[addresses[i_scope_0]]) (#786)
Favor pull over push strategy for external calls.

Additional information: link

Reentrancy in BabyPIGS.constructor() (#463-487):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#465)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = uint256(- 1) (#466)
- _balances[msg.sender] = _totalSupply (#485)
- autoLiquidityReceiver = msg.sender (#482)
- distributor = new DividendDistributor(address(router)) (#468)
- isDividendExempt[pair] = true (#478)
- isDividendExempt[address(this)] = true (#479)
- isDividendExempt[DEAD] = true (#480)
- isFeeExempt[msg.sender] = true (#470)
- isTimelockExempt[msg.sender] = true (#474)
- isTimelockExempt[DEAD] = true (#475)
- isTimelockExempt[address(this)] = true (#476)
- isTxLimitExempt[msg.sender] = true (#471)
- marketingFeeReceiver = msg.sender (#483)
Reentrancy in DividendDistributor.deposit() (#305-323):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (#312-317)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (#322)
- totalDividends = totalDividends.add(amount) (#321)
Reentrancy in DividendDistributor.distributeDividend(address) (#356-367):
External calls:
- REWARD_TOKEN.transfer(shareholder,amount) (#362)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#363)
Reentrancy in DividendDistributor.setShare(address,uint256) (#289-303):
External calls:
- distributeDividend(shareholder) (#291)
- REWARD_TOKEN.transfer(shareholder,amount) (#362)
State variables written after the call(s):
- addShareholder(shareholder) (#295)
- shareholderIndexes[shareholder] = shareholders.length (#389)
- removeShareholder(shareholder) (#297)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#395)
- addShareholder(shareholder) (#295)
- shareholders.push(shareholder) (#390)
- removeShareholder(shareholder) (#297)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#394)
- shareholders.pop() (#396)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#300)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in BabyPIGS._transferFrom(address,address,uint256) (#526-574):
External calls:
- swapBack() (#553)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#637-643)
- distributor.deposit{value: amountBNBReflection}() (#653)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#654)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#660-667)
- distributor.setShare(sender,_balances[sender]) (#563)
- distributor.setShare(recipient,_balances[recipient]) (#567)
- distributor.process(distributorGas) (#570)
External calls sending eth:
- swapBack() (#553)
- distributor.deposit{value: amountBNBReflection}() (#653)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#654)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#660-667)
Event emitted after the call(s):
- Transfer(sender,recipient,amountReceived) (#572)
Reentrancy in BabyPIGS._transferFrom(address,address,uint256) (#526-574):
External calls:
- swapBack() (#553)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#637-643)
- distributor.deposit{value: amountBNBReflection}() (#653)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#654)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#660-667)
External calls sending eth:
- swapBack() (#553)
- distributor.deposit{value: amountBNBReflection}() (#653)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#654)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#660-667)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#595)
- amountReceived = takeFee(sender,amount) (#558)
Reentrancy in BabyPIGS.constructor() (#463-487):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#465)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#486)
Reentrancy in BabyPIGS.swapBack() (#626-670):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#637-643)
- distributor.deposit{value: amountBNBReflection}() (#653)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#654)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#660-667)
External calls sending eth:
- distributor.deposit{value: amountBNBReflection}() (#653)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#654)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#660-667)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#668)
Apply the check-effects-interactions pattern.

Additional information: link

DividendDistributor.shouldDistribute(address) (#351-354) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#352-353)
BabyPIGS._transferFrom(address,address,uint256) (#526-574) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(cooldownTimer[recipient] < block.timestamp,Please wait for cooldown between buys) (#544)
Avoid relying on block.timestamp.

Additional information: link

DividendDistributor.process(uint256) (#325-349) has costly operations inside a loop:
- currentIndex = 0 (#337)
DividendDistributor.distributeDividend(address) (#356-367) has costly operations inside a loop:
- totalDistributed = totalDistributed.add(amount) (#361)
DividendDistributor.process(uint256) (#325-349) has costly operations inside a loop:
- currentIndex ++ (#346)
Use a local variable to hold the loop computation result.

Additional information: link

BabyPIGS._maxTxAmount (#413) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 2 / 100
BabyPIGS.init_maxTxAmount (#414) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 2 / 100
BabyPIGS._maxWalletToken (#415) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 100) / 100
BabyPIGS.init_maxWalletToken (#416) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 100) / 100
BabyPIGS.swapThreshold (#459) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 5 / 10000
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.7.4 (#48) 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 BabyPIGS.swapBack() (#626-670):
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#654)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

Function IDEXRouter.WETH() (#180) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minPeriod (#284) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minDistribution (#284) is not in mixedCase
Variable DividendDistributor._token (#236) is not in mixedCase
Variable DividendDistributor.REWARD_TOKEN (#244) is not in mixedCase
Variable DividendDistributor.WBNB (#245) is not in mixedCase
Parameter BabyPIGS.tradingStatus(bool)._status (#614) is not in mixedCase
Parameter BabyPIGS.cooldownEnabled(bool,uint8)._status (#619) is not in mixedCase
Parameter BabyPIGS.cooldownEnabled(bool,uint8)._interval (#619) is not in mixedCase
Parameter BabyPIGS.setFees(uint256,uint256,uint256,uint256)._liquidityFee (#721) is not in mixedCase
Parameter BabyPIGS.setFees(uint256,uint256,uint256,uint256)._reflectionFee (#721) is not in mixedCase
Parameter BabyPIGS.setFees(uint256,uint256,uint256,uint256)._marketingFee (#721) is not in mixedCase
Parameter BabyPIGS.setFees(uint256,uint256,uint256,uint256)._feeDenominator (#721) is not in mixedCase
Parameter BabyPIGS.setFeeReceivers(address,address)._autoLiquidityReceiver (#730) is not in mixedCase
Parameter BabyPIGS.setFeeReceivers(address,address)._marketingFeeReceiver (#730) is not in mixedCase
Parameter BabyPIGS.setSwapBackSettings(bool,uint256)._enabled (#735) is not in mixedCase
Parameter BabyPIGS.setSwapBackSettings(bool,uint256)._amount (#735) is not in mixedCase
Parameter BabyPIGS.setTargetLiquidity(uint256,uint256)._target (#740) is not in mixedCase
Parameter BabyPIGS.setTargetLiquidity(uint256,uint256)._denominator (#740) is not in mixedCase
Parameter BabyPIGS.setDistributionCriteria(uint256,uint256)._minPeriod (#745) is not in mixedCase
Parameter BabyPIGS.setDistributionCriteria(uint256,uint256)._minDistribution (#745) is not in mixedCase
Variable BabyPIGS.REWARD_TOKEN (#403) is not in mixedCase
Variable BabyPIGS.WBNB (#404) is not in mixedCase
Variable BabyPIGS.DEAD (#405) is not in mixedCase
Variable BabyPIGS.ZERO (#406) is not in mixedCase
Constant BabyPIGS._name (#408) is not in UPPER_CASE_WITH_UNDERSCORES
Constant BabyPIGS._symbol (#409) is not in UPPER_CASE_WITH_UNDERSCORES
Constant BabyPIGS._decimals (#410) is not in UPPER_CASE_WITH_UNDERSCORES
Variable BabyPIGS._totalSupply (#412) is not in mixedCase
Variable BabyPIGS._maxTxAmount (#413) is not in mixedCase
Variable BabyPIGS.init_maxTxAmount (#414) is not in mixedCase
Variable BabyPIGS._maxWalletToken (#415) is not in mixedCase
Variable BabyPIGS.init_maxWalletToken (#416) is not in mixedCase
Variable BabyPIGS._balances (#418) is not in mixedCase
Variable BabyPIGS._allowances (#419) is not in mixedCase
Variable BabyPIGS.init_liquidityFee (#432) is not in mixedCase
Variable BabyPIGS.init_reflectionFee (#433) is not in mixedCase
Variable BabyPIGS.init_marketingFee (#434) is not in mixedCase
Variable BabyPIGS.init_totalFee (#435) is not in mixedCase
Variable BabyPIGS.init_feeDenominator (#436) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#185) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#186)
Prevent variables from having similar names.

Additional information: link

BabyPIGS.slitherConstructorVariables() (#400-799) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#405)
BabyPIGS.slitherConstructorVariables() (#400-799) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#406)
BabyPIGS.slitherConstructorVariables() (#400-799) uses literals with too many digits:
- distributorGas = 500000 (#451)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

BabyPIGS.REWARD_TOKEN (#403) is never used in BabyPIGS (#400-799)
Remove unused state variables.

Additional information: link

BabyPIGS.DEAD (#405) should be constant
BabyPIGS.REWARD_TOKEN (#403) should be constant
BabyPIGS.WBNB (#404) should be constant
BabyPIGS.ZERO (#406) should be constant
BabyPIGS._totalSupply (#412) should be constant
BabyPIGS.init_feeDenominator (#436) should be constant
BabyPIGS.init_liquidityFee (#432) should be constant
BabyPIGS.init_marketingFee (#434) should be constant
BabyPIGS.init_reflectionFee (#433) should be constant
BabyPIGS.init_totalFee (#435) should be constant
BabyPIGS.launchedAt (#447) should be constant
DividendDistributor.WBNB (#245) should be constant
DividendDistributor.dividendsPerShareAccuracyFactor (#258) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

authorize(address) should be declared external:
- Auth.authorize(address) (#137-139)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#144-146)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#165-169)
tradingStatus(bool) should be declared external:
- BabyPIGS.tradingStatus(bool) (#614-616)
cooldownEnabled(bool,uint8) should be declared external:
- BabyPIGS.cooldownEnabled(bool,uint8) (#619-622)
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. Ignore for presale.


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


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

Price for BabyPIGS