The friendly tiny dinosaur Baby Yooshi. will finish the mission and reunite baby Mario with his brother luigi. and will fly us to the moon. w built or contract with AutoBoost function that has been built into Baby Yooshi mathematically to do variable buybacks that adjust based on volume in order to maintain price stability. and the BabyYooShi name and image are inspired by a dinosaur in Super Mario, whose name is Yoshi. He is the child of this dinosaur. we are the Baby of the big Token Yooshi.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
BabyYooshi.addLiquidity(uint256,uint256) (#840-853) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#845-852)
BabyYooshi.swapETHForTokens(uint256) (#823-838) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#830-835)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
BabyYooshi._transfer(address,address,uint256) (#666-783) uses a weak PRNG: "_bBSLimit = _bBSLimitMin + uint256(keccak256(bytes)(abi.encodePacked(block.timestamp,block.difficulty))) % (_bBSLimitMax - _bBSLimitMin + 1) (#727)"
Do not use block.timestamp, now or blockhash as a source of randomness
Additional information: link
Reentrancy in BabyYooshi._transfer(address,address,uint256) (#666-783):
External calls:
- swapTokens(contractTokenBalance) (#695)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#812-818)
- buyBackTokens(_bBSLimit) (#730)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#830-835)
External calls sending eth:
- swapTokens(contractTokenBalance) (#695)
- recipient.transfer(amount) (#1136)
- buyBackTokens(_bBSLimit) (#730)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#830-835)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#782)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#959)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#875)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#884)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#895)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#905)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#876)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#886)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#896)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#907)
- _tokenTransfer(from,to,amount,takeFee) (#782)
- _rTotal = _rTotal.sub(rFee) (#914)
- _tokenTransfer(from,to,amount,takeFee) (#782)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#961)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#894)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#904)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#885)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#906)
- buyBackTokens(_bBSLimit) (#730)
- inSwapAndLiquify = true (#512)
- inSwapAndLiquify = false (#514)
Reentrancy in BabyYooshi._transfer(address,address,uint256) (#666-783):
External calls:
- swapTokens(contractTokenBalance) (#695)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#812-818)
External calls sending eth:
- swapTokens(contractTokenBalance) (#695)
- recipient.transfer(amount) (#1136)
State variables written after the call(s):
- _removeOldSellHistories() (#722)
- _sellHistories[i].time = _sellHistories[j].time (#1023)
- _sellHistories[i].bnbAmount = _sellHistories[j].bnbAmount (#1024)
- _sellHistories.pop() (#1034)
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.
Contract ownership is not renounced (belongs to a wallet)
BabyYooshi._transfer(address,address,uint256).sellHistory (#682) 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
Redundant expression "this (#11)" inContext (#5-14)
Remove redundant statements if they congest code but offer no value.
Additional information: link
BabyYooshi.includeInReward(address) (#645-656) has costly operations inside a loop:
- _excluded.pop() (#652)
Use a local variable to hold the loop computation result.
Additional information: link
Variable BabyYooshi.reflectionFromToken(uint256,bool).rTransferAmount (#624) is too similar to BabyYooshi._transferToExcluded(address,address,uint256).tTransferAmount (#883)
Variable BabyYooshi.reflectionFromToken(uint256,bool).rTransferAmount (#624) is too similar to BabyYooshi._transferBothExcluded(address,address,uint256).tTransferAmount (#903)
Variable BabyYooshi._transferStandard(address,address,uint256).rTransferAmount (#874) is too similar to BabyYooshi._transferFromExcluded(address,address,uint256).tTransferAmount (#893)
Variable BabyYooshi._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#935) is too similar to BabyYooshi._transferBothExcluded(address,address,uint256).tTransferAmount (#903)
Variable BabyYooshi._transferBothExcluded(address,address,uint256).rTransferAmount (#903) is too similar to BabyYooshi._transferBothExcluded(address,address,uint256).tTransferAmount (#903)
Variable BabyYooshi._transferStandard(address,address,uint256).rTransferAmount (#874) is too similar to BabyYooshi._transferBothExcluded(address,address,uint256).tTransferAmount (#903)
Variable BabyYooshi._transferFromExcluded(address,address,uint256).rTransferAmount (#893) is too similar to BabyYooshi._transferBothExcluded(address,address,uint256).tTransferAmount (#903)
Variable BabyYooshi._transferFromExcluded(address,address,uint256).rTransferAmount (#893) is too similar to BabyYooshi._transferStandard(address,address,uint256).tTransferAmount (#874)
Variable BabyYooshi._transferToExcluded(address,address,uint256).rTransferAmount (#883) is too similar to BabyYooshi._transferBothExcluded(address,address,uint256).tTransferAmount (#903)
Variable BabyYooshi._transferBothExcluded(address,address,uint256).rTransferAmount (#903) is too similar to BabyYooshi._transferToExcluded(address,address,uint256).tTransferAmount (#883)
Variable BabyYooshi._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#935) is too similar to BabyYooshi._getValues(uint256).tTransferAmount (#919)
Variable BabyYooshi._transferStandard(address,address,uint256).rTransferAmount (#874) is too similar to BabyYooshi._transferStandard(address,address,uint256).tTransferAmount (#874)
Variable BabyYooshi._getValues(uint256).rTransferAmount (#920) is too similar to BabyYooshi._getValues(uint256).tTransferAmount (#919)
Variable BabyYooshi._transferToExcluded(address,address,uint256).rTransferAmount (#883) is too similar to BabyYooshi._transferToExcluded(address,address,uint256).tTransferAmount (#883)
Variable BabyYooshi._transferStandard(address,address,uint256).rTransferAmount (#874) is too similar to BabyYooshi._getValues(uint256).tTransferAmount (#919)
Variable BabyYooshi._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#935) is too similar to BabyYooshi._transferStandard(address,address,uint256).tTransferAmount (#874)
Variable BabyYooshi._transferBothExcluded(address,address,uint256).rTransferAmount (#903) is too similar to BabyYooshi._transferFromExcluded(address,address,uint256).tTransferAmount (#893)
Variable BabyYooshi.reflectionFromToken(uint256,bool).rTransferAmount (#624) is too similar to BabyYooshi._transferFromExcluded(address,address,uint256).tTransferAmount (#893)
Variable BabyYooshi._getValues(uint256).rTransferAmount (#920) is too similar to BabyYooshi._transferToExcluded(address,address,uint256).tTransferAmount (#883)
Variable BabyYooshi._getValues(uint256).rTransferAmount (#920) is too similar to BabyYooshi._transferFromExcluded(address,address,uint256).tTransferAmount (#893)
Variable BabyYooshi.reflectionFromToken(uint256,bool).rTransferAmount (#624) is too similar to BabyYooshi._getTValues(uint256).tTransferAmount (#927)
Variable BabyYooshi._transferBothExcluded(address,address,uint256).rTransferAmount (#903) is too similar to BabyYooshi._getValues(uint256).tTransferAmount (#919)
Variable BabyYooshi._getValues(uint256).rTransferAmount (#920) is too similar to BabyYooshi._transferBothExcluded(address,address,uint256).tTransferAmount (#903)
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#280) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#281)
Variable BabyYooshi._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#935) is too similar to BabyYooshi._transferFromExcluded(address,address,uint256).tTransferAmount (#893)
Variable BabyYooshi._transferBothExcluded(address,address,uint256).rTransferAmount (#903) is too similar to BabyYooshi._getTValues(uint256).tTransferAmount (#927)
Variable BabyYooshi._transferStandard(address,address,uint256).rTransferAmount (#874) is too similar to BabyYooshi._getTValues(uint256).tTransferAmount (#927)
Variable BabyYooshi._transferToExcluded(address,address,uint256).rTransferAmount (#883) is too similar to BabyYooshi._transferStandard(address,address,uint256).tTransferAmount (#874)
Variable BabyYooshi._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#935) is too similar to BabyYooshi._transferToExcluded(address,address,uint256).tTransferAmount (#883)
Variable BabyYooshi._transferFromExcluded(address,address,uint256).rTransferAmount (#893) is too similar to BabyYooshi._transferFromExcluded(address,address,uint256).tTransferAmount (#893)
Variable BabyYooshi.reflectionFromToken(uint256,bool).rTransferAmount (#624) is too similar to BabyYooshi._getValues(uint256).tTransferAmount (#919)
Variable BabyYooshi._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#935) is too similar to BabyYooshi._getTValues(uint256).tTransferAmount (#927)
Variable BabyYooshi._transferToExcluded(address,address,uint256).rTransferAmount (#883) is too similar to BabyYooshi._transferFromExcluded(address,address,uint256).tTransferAmount (#893)
Variable BabyYooshi._transferToExcluded(address,address,uint256).rTransferAmount (#883) is too similar to BabyYooshi._getValues(uint256).tTransferAmount (#919)
Variable BabyYooshi._transferToExcluded(address,address,uint256).rTransferAmount (#883) is too similar to BabyYooshi._getTValues(uint256).tTransferAmount (#927)
Variable BabyYooshi.reflectionFromToken(uint256,bool).rTransferAmount (#624) is too similar to BabyYooshi._transferStandard(address,address,uint256).tTransferAmount (#874)
Variable BabyYooshi._transferFromExcluded(address,address,uint256).rTransferAmount (#893) is too similar to BabyYooshi._transferToExcluded(address,address,uint256).tTransferAmount (#883)
Variable BabyYooshi._getValues(uint256).rTransferAmount (#920) is too similar to BabyYooshi._getTValues(uint256).tTransferAmount (#927)
Variable BabyYooshi._transferFromExcluded(address,address,uint256).rTransferAmount (#893) is too similar to BabyYooshi._getValues(uint256).tTransferAmount (#919)
Variable BabyYooshi._transferFromExcluded(address,address,uint256).rTransferAmount (#893) is too similar to BabyYooshi._getTValues(uint256).tTransferAmount (#927)
Variable BabyYooshi._transferStandard(address,address,uint256).rTransferAmount (#874) is too similar to BabyYooshi._transferToExcluded(address,address,uint256).tTransferAmount (#883)
Variable BabyYooshi._transferBothExcluded(address,address,uint256).rTransferAmount (#903) is too similar to BabyYooshi._transferStandard(address,address,uint256).tTransferAmount (#874)
Variable BabyYooshi._getValues(uint256).rTransferAmount (#920) is too similar to BabyYooshi._transferStandard(address,address,uint256).tTransferAmount (#874)
Prevent variables from having similar names.
Additional information: link
Reentrancy in BabyYooshi._transfer(address,address,uint256) (#666-783):
External calls:
- swapTokens(contractTokenBalance) (#695)
- recipient.transfer(amount) (#1136)
External calls sending eth:
- swapTokens(contractTokenBalance) (#695)
- recipient.transfer(amount) (#1136)
- buyBackTokens(_bBSLimit) (#730)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#830-835)
State variables written after the call(s):
- removeAllFee() (#746)
- _liquidityFee = 0 (#983)
- _liquidityFee = _buyLiquidityFee (#748)
- removeAllFee() (#752)
- _liquidityFee = 0 (#983)
- _liquidityFee = _sellLiquidityFee (#754)
- removeAllFee() (#759)
- _liquidityFee = 0 (#983)
- _liquidityFee = _addressFees[from]._liquidityFee (#761)
- _liquidityFee = _addressFees[from]._sellLiquidityFee (#766)
- removeAllFee() (#773)
- _liquidityFee = 0 (#983)
- _liquidityFee = _addressFees[to]._buyLiquidityFee (#776)
- _tokenTransfer(from,to,amount,takeFee) (#782)
- _liquidityFee = _previousLiquidityFee (#988)
- _liquidityFee = 0 (#983)
- removeAllFee() (#746)
- _previousLiquidityFee = _liquidityFee (#980)
- removeAllFee() (#752)
- _previousLiquidityFee = _liquidityFee (#980)
- removeAllFee() (#759)
- _previousLiquidityFee = _liquidityFee (#980)
- removeAllFee() (#773)
- _previousLiquidityFee = _liquidityFee (#980)
- _tokenTransfer(from,to,amount,takeFee) (#782)
- _previousLiquidityFee = _liquidityFee (#980)
- removeAllFee() (#746)
- _previousTaxFee = _taxFee (#979)
- removeAllFee() (#752)
- _previousTaxFee = _taxFee (#979)
- removeAllFee() (#759)
- _previousTaxFee = _taxFee (#979)
- removeAllFee() (#773)
- _previousTaxFee = _taxFee (#979)
- _tokenTransfer(from,to,amount,takeFee) (#782)
- _previousTaxFee = _taxFee (#979)
- _tokenTransfer(from,to,amount,takeFee) (#782)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#959)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#875)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#884)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#895)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#905)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#876)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#886)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#896)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#907)
- _tokenTransfer(from,to,amount,takeFee) (#782)
- _rTotal = _rTotal.sub(rFee) (#914)
- _tokenTransfer(from,to,amount,takeFee) (#782)
- _tFeeTotal = _tFeeTotal.add(tFee) (#915)
- _tokenTransfer(from,to,amount,takeFee) (#782)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#961)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#894)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#904)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#885)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#906)
- removeAllFee() (#746)
- _taxFee = 0 (#982)
- _taxFee = _buyTaxFee (#747)
- removeAllFee() (#752)
- _taxFee = 0 (#982)
- _taxFee = _sellTaxFee (#753)
- removeAllFee() (#759)
- _taxFee = 0 (#982)
- _taxFee = _addressFees[from]._taxFee (#760)
- _taxFee = _addressFees[from]._sellTaxFee (#765)
- removeAllFee() (#773)
- _taxFee = 0 (#982)
- _taxFee = _addressFees[to]._buyTaxFee (#775)
- _tokenTransfer(from,to,amount,takeFee) (#782)
- _taxFee = _previousTaxFee (#987)
- _taxFee = 0 (#982)
- buyBackTokens(_bBSLimit) (#730)
- inSwapAndLiquify = true (#512)
- inSwapAndLiquify = false (#514)
Event emitted after the call(s):
- SwapETHForTokens(amount,path) (#837)
- buyBackTokens(_bBSLimit) (#730)
- Transfer(sender,recipient,tTransferAmount) (#879)
- _tokenTransfer(from,to,amount,takeFee) (#782)
- Transfer(sender,recipient,tTransferAmount) (#889)
- _tokenTransfer(from,to,amount,takeFee) (#782)
- Transfer(sender,recipient,tTransferAmount) (#899)
- _tokenTransfer(from,to,amount,takeFee) (#782)
- Transfer(sender,recipient,tTransferAmount) (#910)
- _tokenTransfer(from,to,amount,takeFee) (#782)
Reentrancy in BabyYooshi.transferFrom(address,address,uint256) (#576-580):
External calls:
- _transfer(sender,recipient,amount) (#577)
- recipient.transfer(amount) (#1136)
External calls sending eth:
- _transfer(sender,recipient,amount) (#577)
- recipient.transfer(amount) (#1136)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#830-835)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#578)
- _allowances[owner][spender] = amount (#662)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#663)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#578)
Reentrancy in BabyYooshi._transfer(address,address,uint256) (#666-783):
External calls:
- swapTokens(contractTokenBalance) (#695)
- recipient.transfer(amount) (#1136)
State variables written after the call(s):
- _removeOldSellHistories() (#722)
- _sellHistories[i].time = _sellHistories[j].time (#1023)
- _sellHistories[i].bnbAmount = _sellHistories[j].bnbAmount (#1024)
- _sellHistories.pop() (#1034)
Apply the check-effects-interactions pattern.
Additional information: link
BabyYooshi.afterPreSale() (#1128-1133) uses literals with too many digits:
- _maxTxAmount = 3000000 * 10 ** 6 * 10 ** 9 (#1132)
BabyYooshi.prepareForPreSale() (#1121-1126) uses literals with too many digits:
- _maxTxAmount = 1000000000 * 10 ** 6 * 10 ** 9 (#1125)
BabyYooshi.slitherConstructorVariables() (#410-1188) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#415)
BabyYooshi.slitherConstructorVariables() (#410-1188) uses literals with too many digits:
- _tTotal = 1000000 * 10 ** 9 * 10 ** 9 (#426)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
BabyYooshi._decimals (#432) should be constant
BabyYooshi._tTotal (#426) should be constant
BabyYooshi._symbol (#431) should be constant
BabyYooshi._isEnabledBuyBackAndBurn (#489) should be constant
BabyYooshi._name (#430) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
transfer(address,uint256) should be declared external:
- BabyYooshi.transfer(address,uint256) (#562-565)
decreaseAllowance(address,uint256) should be declared external:
- BabyYooshi.decreaseAllowance(address,uint256) (#587-590)
totalFees() should be declared external:
- BabyYooshi.totalFees() (#596-598)
changeRouterVersion(address) should be declared external:
- BabyYooshi.changeRouterVersion(address) (#1139-1152)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#166-169)
deliver(uint256) should be declared external:
- BabyYooshi.deliver(uint256) (#608-615)
setBuyBackEnabled(bool) should be declared external:
- BabyYooshi.setBuyBackEnabled(bool) (#1111-1114)
reflectionFromToken(uint256,bool) should be declared external:
- BabyYooshi.reflectionFromToken(uint256,bool) (#618-627)
buyBackSellLimitAmount() should be declared external:
- BabyYooshi.buyBackSellLimitAmount() (#604-606)
GetBuyBackTimeInterval() should be declared external:
- BabyYooshi.GetBuyBackTimeInterval() (#1047-1049)
excludeFromFee(address) should be declared external:
- BabyYooshi.excludeFromFee(address) (#995-997)
setAutoBuyBackEnabled(bool) should be declared external:
- BabyYooshi.setAutoBuyBackEnabled(bool) (#1116-1119)
transferFrom(address,address,uint256) should be declared external:
- BabyYooshi.transferFrom(address,address,uint256) (#576-580)
approve(address,uint256) should be declared external:
- BabyYooshi.approve(address,uint256) (#571-574)
name() should be declared external:
- BabyYooshi.name() (#541-543)
excludeFromReward(address) should be declared external:
- BabyYooshi.excludeFromReward(address) (#635-643)
isExcludedFromFee(address) should be declared external:
- BabyYooshi.isExcludedFromFee(address) (#991-993)
getTime() should be declared external:
- Ownable.getTime() (#181-183)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#171-175)
allowance(address,address) should be declared external:
- BabyYooshi.allowance(address,address) (#567-569)
transferForeignToken(address,address) should be declared external:
- BabyYooshi.transferForeignToken(address,address) (#1158-1162)
minimumTokensBeforeSwapAmount() should be declared external:
- BabyYooshi.minimumTokensBeforeSwapAmount() (#600-602)
GetSwapMinutes() should be declared external:
- BabyYooshi.GetSwapMinutes() (#1060-1062)
totalSupply() should be declared external:
- BabyYooshi.totalSupply() (#553-555)
isExcludedFromReward(address) should be declared external:
- BabyYooshi.isExcludedFromReward(address) (#592-594)
unlock() should be declared external:
- Ownable.unlock() (#192-197)
includeInFee(address) should be declared external:
- BabyYooshi.includeInFee(address) (#999-1001)
increaseAllowance(address,uint256) should be declared external:
- BabyYooshi.increaseAllowance(address,uint256) (#582-585)
symbol() should be declared external:
- BabyYooshi.symbol() (#545-547)
lock(uint256) should be declared external:
- Ownable.lock(uint256) (#185-190)
getUnlockTime() should be declared external:
- Ownable.getUnlockTime() (#177-179)
decimals() should be declared external:
- BabyYooshi.decimals() (#549-551)
Use the external attribute for functions never called from the contract.
Additional information: link
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#124-141):
- (success,returndata) = target.call{value: weiValue}(data) (#127)
Low level call in Address.sendValue(address,uint256) (#98-104):
- (success) = recipient.call{value: amount}() (#102)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
BabyYooshi.addLiquidity(uint256,uint256) (#840-853) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#845-852)
Ensure that all the return values of the function calls are used.
Additional information: link
BabyYooshi._approve(address,address,uint256).owner (#658) shadows:
- Ownable.owner() (#157-159) (function)
BabyYooshi.allowance(address,address).owner (#567) shadows:
- Ownable.owner() (#157-159) (function)
Rename the local variables that shadow another component.
Additional information: link
BabyYooshi.setLiquidityFeePercent(uint256) (#1082-1084) should emit an event for:
- _liquidityFee = liquidityFee (#1083)
BabyYooshi.SetBuyBackRangeRate(uint256) (#1055-1058) should emit an event for:
- _buyBackRangeRate = newPercent (#1057)
BabyYooshi.setMaxTxAmount(uint256) (#1090-1092) should emit an event for:
- _maxTxAmount = maxTxAmount (#1091)
BabyYooshi.setTaxFeePercent(uint256) (#1068-1070) should emit an event for:
- _taxFee = taxFee (#1069)
BabyYooshi.setBuyFee(uint256,uint256) (#1072-1075) should emit an event for:
- _buyTaxFee = buyTaxFee (#1073)
- _buyLiquidityFee = buyLiquidityFee (#1074)
BabyYooshi.SetBuyBackDivisor(uint256) (#1043-1045) should emit an event for:
- _buyBackDivisor = newDivisor (#1044)
BabyYooshi.setSellFee(uint256,uint256) (#1077-1080) should emit an event for:
- _sellTaxFee = sellTaxFee (#1078)
- _sellLiquidityFee = sellLiquidityFee (#1079)
BabyYooshi.SetBuyBackTimeInterval(uint256) (#1051-1053) should emit an event for:
- _buyBackTimeInterval = newMinutes * 60 (#1052)
BabyYooshi.setNumTokensSellToAddToBuyBack(uint256) (#1098-1100) should emit an event for:
- minimumTokensBeforeSwap = _minimumTokensBeforeSwap (#1099)
BabyYooshi.SetBuyBackMaxTimeForHistories(uint256) (#1039-1041) should emit an event for:
- _buyBackMaxTimeForHistories = newMinutes * 60 (#1040)
BabyYooshi.SetSwapMinutes(uint256) (#1064-1066) should emit an event for:
- _intervalMinutesForSwap = newMinutes * 60 (#1065)
BabyYooshi.setMarketingDivisor(uint256) (#1094-1096) should emit an event for:
- marketingDivisor = divisor (#1095)
BabyYooshi.setBuyBackSellLimit(uint256) (#1086-1088) should emit an event for:
- buyBackSellLimit = buyBackSellSetLimit (#1087)
Emit an event for critical parameter changes.
Additional information: link
BabyYooshi.setMarketingAddress(address)._marketingAddress (#1102) lacks a zero-check on :
- marketingAddress = address(_marketingAddress) (#1103)
Check that the address is not zero.
Additional information: link
Reentrancy in BabyYooshi._transfer(address,address,uint256) (#666-783):
External calls:
- swapTokens(contractTokenBalance) (#695)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#812-818)
- buyBackTokens(_bBSLimit) (#730)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#830-835)
External calls sending eth:
- swapTokens(contractTokenBalance) (#695)
- recipient.transfer(amount) (#1136)
- buyBackTokens(_bBSLimit) (#730)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#830-835)
State variables written after the call(s):
- removeAllFee() (#746)
- _liquidityFee = 0 (#983)
- _liquidityFee = _buyLiquidityFee (#748)
- removeAllFee() (#752)
- _liquidityFee = 0 (#983)
- _liquidityFee = _sellLiquidityFee (#754)
- removeAllFee() (#759)
- _liquidityFee = 0 (#983)
- _liquidityFee = _addressFees[from]._liquidityFee (#761)
- _liquidityFee = _addressFees[from]._sellLiquidityFee (#766)
- removeAllFee() (#773)
- _liquidityFee = 0 (#983)
- _liquidityFee = _addressFees[to]._buyLiquidityFee (#776)
- _tokenTransfer(from,to,amount,takeFee) (#782)
- _liquidityFee = _previousLiquidityFee (#988)
- _liquidityFee = 0 (#983)
- removeAllFee() (#746)
- _previousLiquidityFee = _liquidityFee (#980)
- removeAllFee() (#752)
- _previousLiquidityFee = _liquidityFee (#980)
- removeAllFee() (#759)
- _previousLiquidityFee = _liquidityFee (#980)
- removeAllFee() (#773)
- _previousLiquidityFee = _liquidityFee (#980)
- _tokenTransfer(from,to,amount,takeFee) (#782)
- _previousLiquidityFee = _liquidityFee (#980)
- removeAllFee() (#746)
- _previousTaxFee = _taxFee (#979)
- removeAllFee() (#752)
- _previousTaxFee = _taxFee (#979)
- removeAllFee() (#759)
- _previousTaxFee = _taxFee (#979)
- removeAllFee() (#773)
- _previousTaxFee = _taxFee (#979)
- _tokenTransfer(from,to,amount,takeFee) (#782)
- _previousTaxFee = _taxFee (#979)
- _tokenTransfer(from,to,amount,takeFee) (#782)
- _tFeeTotal = _tFeeTotal.add(tFee) (#915)
- removeAllFee() (#746)
- _taxFee = 0 (#982)
- _taxFee = _buyTaxFee (#747)
- removeAllFee() (#752)
- _taxFee = 0 (#982)
- _taxFee = _sellTaxFee (#753)
- removeAllFee() (#759)
- _taxFee = 0 (#982)
- _taxFee = _addressFees[from]._taxFee (#760)
- _taxFee = _addressFees[from]._sellTaxFee (#765)
- removeAllFee() (#773)
- _taxFee = 0 (#982)
- _taxFee = _addressFees[to]._buyTaxFee (#775)
- _tokenTransfer(from,to,amount,takeFee) (#782)
- _taxFee = _previousTaxFee (#987)
- _taxFee = 0 (#982)
Reentrancy in BabyYooshi.changeRouterVersion(address) (#1139-1152):
External calls:
- _pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1145-1146)
State variables written after the call(s):
- uniswapV2Pair = _pair (#1148)
- uniswapV2Router = _uniswapV2Router (#1151)
Reentrancy in BabyYooshi.transferFrom(address,address,uint256) (#576-580):
External calls:
- _transfer(sender,recipient,amount) (#577)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#830-835)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#812-818)
External calls sending eth:
- _transfer(sender,recipient,amount) (#577)
- recipient.transfer(amount) (#1136)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#830-835)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#578)
- _allowances[owner][spender] = amount (#662)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in BabyYooshi.transferFrom(address,address,uint256) (#576-580):
External calls:
- _transfer(sender,recipient,amount) (#577)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#830-835)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#812-818)
External calls sending eth:
- _transfer(sender,recipient,amount) (#577)
- recipient.transfer(amount) (#1136)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#830-835)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#663)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#578)
Reentrancy in BabyYooshi.swapTokensForEth(uint256) (#803-821):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#812-818)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (#820)
Reentrancy in BabyYooshi.swapETHForTokens(uint256) (#823-838):
External calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#830-835)
Event emitted after the call(s):
- SwapETHForTokens(amount,path) (#837)
Reentrancy in BabyYooshi._transfer(address,address,uint256) (#666-783):
External calls:
- swapTokens(contractTokenBalance) (#695)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#812-818)
- buyBackTokens(_bBSLimit) (#730)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#830-835)
External calls sending eth:
- swapTokens(contractTokenBalance) (#695)
- recipient.transfer(amount) (#1136)
- buyBackTokens(_bBSLimit) (#730)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#830-835)
Event emitted after the call(s):
- SwapETHForTokens(amount,path) (#837)
- buyBackTokens(_bBSLimit) (#730)
- Transfer(sender,recipient,tTransferAmount) (#879)
- _tokenTransfer(from,to,amount,takeFee) (#782)
- Transfer(sender,recipient,tTransferAmount) (#899)
- _tokenTransfer(from,to,amount,takeFee) (#782)
- Transfer(sender,recipient,tTransferAmount) (#889)
- _tokenTransfer(from,to,amount,takeFee) (#782)
- Transfer(sender,recipient,tTransferAmount) (#910)
- _tokenTransfer(from,to,amount,takeFee) (#782)
Apply the check-effects-interactions pattern.
Additional information: link
BabyYooshi._removeOldSellHistories() (#1015-1037) uses timestamp for comparisons
Dangerous comparisons:
- _sellHistories[j].time >= maxStartTimeForHistories (#1021)
Ownable.unlock() (#192-197) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp > _lockTime,Contract is locked until 7 days) (#194)
BabyYooshi._transfer(address,address,uint256) (#666-783) uses timestamp for comparisons
Dangerous comparisons:
- overMinimumTokenBalance && _startTimeForSwap + _intervalMinutesForSwap <= block.timestamp (#692)
- _sellHistories[i].time >= startTime (#712)
- balance > _bBSLimit (#729)
BabyYooshi.buyBackTokens(uint256) (#797-801) uses timestamp for comparisons
Dangerous comparisons:
- amount > 0 (#798)
Avoid relying on block.timestamp.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#124-141) uses assembly
- INLINE ASM (#133-136)
Address.isContract(address) (#87-96) uses assembly
- INLINE ASM (#94)
Do not use evm assembly.
Additional information: link
Address.sendValue(address,uint256) (#98-104) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#115-117) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#79-82) is never used and should be removed
BabyYooshi.addLiquidity(uint256,uint256) (#840-853) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#119-122) is never used and should be removed
Context._msgData() (#10-13) is never used and should be removed
SafeMath.mod(uint256,uint256) (#75-77) is never used and should be removed
Address._functionCallWithValue(address,bytes,uint256,string) (#124-141) is never used and should be removed
Address.isContract(address) (#87-96) is never used and should be removed
Address.functionCall(address,bytes,string) (#111-113) is never used and should be removed
Address.functionCall(address,bytes) (#107-109) is never used and should be removed
Remove unused functions.
Additional information: link
BabyYooshi._previousLiquidityFee (#453) is set pre-construction with a non-constant function or state variable:
- _liquidityFee
BabyYooshi._rTotal (#427) is set pre-construction with a non-constant function or state variable:
- (MAX - (MAX % _tTotal))
BabyYooshi._previousTaxFee (#450) is set pre-construction with a non-constant function or state variable:
- _taxFee
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 BabyYooshi.GetSwapMinutes() (#1060-1062) is not in mixedCase
Parameter BabyYooshi.setSellAddressFee(address,bool,uint256,uint256)._address (#1181) is not in mixedCase
Parameter BabyYooshi.setSellAddressFee(address,bool,uint256,uint256)._addressLiquidityFee (#1181) is not in mixedCase
Variable BabyYooshi._isAutoBuyBack (#477) is not in mixedCase
Variable BabyYooshi._buyBackTimeInterval (#479) is not in mixedCase
Function BabyYooshi.SetBuyBackTimeInterval(uint256) (#1051-1053) is not in mixedCase
Variable BabyYooshi._isEnabledBuyBackAndBurn (#489) is not in mixedCase
Parameter BabyYooshi.setMarketingAddress(address)._marketingAddress (#1102) is not in mixedCase
Parameter BabyYooshi.transferForeignToken(address,address)._token (#1158) is not in mixedCase
Variable BabyYooshi._liquidityFee (#452) is not in mixedCase
Parameter BabyYooshi.setAddressFee(address,bool,uint256,uint256)._enable (#1169) is not in mixedCase
Parameter BabyYooshi.setSellAddressFee(address,bool,uint256,uint256)._enable (#1181) is not in mixedCase
Function BabyYooshi.Sweep() (#1164-1167) is not in mixedCase
Variable BabyYooshi._intervalMinutesForSwap (#462) is not in mixedCase
Parameter BabyYooshi.calculateTaxFee(uint256)._amount (#964) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#238) is not in mixedCase
Function BabyYooshi.SetSwapMinutes(uint256) (#1064-1066) is not in mixedCase
Variable BabyYooshi._maxTxAmount (#471) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#254) is not in mixedCase
Function BabyYooshi.GetBuyBackTimeInterval() (#1047-1049) is not in mixedCase
Variable BabyYooshi._buyBackRangeRate (#464) is not in mixedCase
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#237) is not in mixedCase
Variable BabyYooshi._buyTaxFee (#455) is not in mixedCase
Parameter BabyYooshi.calculateLiquidityFee(uint256)._amount (#970) is not in mixedCase
Parameter BabyYooshi.setSwapAndLiquifyEnabled(bool)._enabled (#1106) is not in mixedCase
Variable BabyYooshi._buyLiquidityFee (#456) is not in mixedCase
Variable BabyYooshi._addressFees (#467) is not in mixedCase
Parameter BabyYooshi.changeRouterVersion(address)._router (#1139) is not in mixedCase
Parameter BabyYooshi.setNumTokensSellToAddToBuyBack(uint256)._minimumTokensBeforeSwap (#1098) is not in mixedCase
Function BabyYooshi.SetBuyBackMaxTimeForHistories(uint256) (#1039-1041) is not in mixedCase
Parameter BabyYooshi.setAutoBuyBackEnabled(bool)._enabled (#1116) is not in mixedCase
Parameter BabyYooshi.setBuyBackEnabled(bool)._enabled (#1111) is not in mixedCase
Variable BabyYooshi._sellLiquidityFee (#459) is not in mixedCase
Variable BabyYooshi._startTimeForSwap (#461) is not in mixedCase
Parameter BabyYooshi.setBuyAddressFee(address,bool,uint256,uint256)._addressLiquidityFee (#1175) is not in mixedCase
Parameter BabyYooshi.setAddressFee(address,bool,uint256,uint256)._address (#1169) is not in mixedCase
Function BabyYooshi.SetBuyBackRangeRate(uint256) (#1055-1058) is not in mixedCase
Parameter BabyYooshi.setAddressFee(address,bool,uint256,uint256)._addressLiquidityFee (#1169) is not in mixedCase
Variable BabyYooshi._buyBackDivisor (#478) is not in mixedCase
Variable BabyYooshi._taxFee (#449) is not in mixedCase
Parameter BabyYooshi.transferForeignToken(address,address)._to (#1158) is not in mixedCase
Parameter BabyYooshi.setSellAddressFee(address,bool,uint256,uint256)._addressTaxFee (#1181) is not in mixedCase
Function IUniswapV2Router01.WETH() (#275) is not in mixedCase
Parameter BabyYooshi.setAddressFee(address,bool,uint256,uint256)._addressTaxFee (#1169) is not in mixedCase
Parameter BabyYooshi.setBuyAddressFee(address,bool,uint256,uint256)._address (#1175) is not in mixedCase
Variable BabyYooshi._buyBackMaxTimeForHistories (#480) is not in mixedCase
Variable BabyYooshi._sellHistories (#476) is not in mixedCase
Function BabyYooshi.SetBuyBackDivisor(uint256) (#1043-1045) is not in mixedCase
Parameter BabyYooshi.setBuyAddressFee(address,bool,uint256,uint256)._enable (#1175) is not in mixedCase
Variable BabyYooshi._sellTaxFee (#458) is not in mixedCase
Parameter BabyYooshi.setBuyAddressFee(address,bool,uint256,uint256)._addressTaxFee (#1175) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Token is deployed only at one blockchain
Unable to find PancakeSwap trading pair to compute liquidity.
Unable to find PancakeSwap trading pair to compute number of swaps.
Unable to find PancakeSwap trading pair to compute volume.
Token was delisted from CoinGecko
Additional information: link
Unable to find token contract audit
Token is not listed at Mobula.Finance
Additional information: link
Unable to find audit link on the website
Unable to find whitepaper link on the website
Unable to find token on CoinHunt
Additional information: link
Unable to find Telegram link on the website
Unable to find Twitter link on the website
Token is marked as scam (rug pull, honeypot, phishing, etc.)
Additional information: link
Token has no active CoinGecko listing / rank
Token has a considerable age, but social accounts / website are missing or have few users
Token has a considerable age, but average PancakeSwap 30d trading volume is low
Token has relatively low CoinMarketCap rank
Young tokens have high risks of price dump / death
Twitter account seems to be suspended
Additional information: link
Unable to find Youtube account
Unable to find Discord account