Fairy Token just launched! 👸 from the same team that created the 🧜♀️ Mermaid Token (which did 1500x in 3 weeks🚀) have now launched their 2nd token. Known for the teams steady organic growth, daily holder growth and always being available in the telegram chat. We have 4 big goals on our roadmap.... 💥 NFT Staking 💥Hit $1 value per token 💥List on CMC & CG 💥CEX Listing _____________________________________ Tokenomics 🤯 3% BTC rewards (Bep20 BTCB) ⭐️ 5% Marketing 🔥 2% Liquidity 💫Recommended buy slippage - 14-16% 👩👦👦 Total Supply: 1,000,000
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Too many vulnerabilities (Unchecked transfer, Reentrancy vulnerability, etc.). High risk of a scam. DYOR & manual audit are advised.
FairyToken.swapBack() (#579-625) sends eth to arbitrary user
Dangerous calls:
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#608)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#609)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in FairyToken._transferFrom(address,address,uint256) (#470-518):
External calls:
- swapBack() (#497)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#590-596)
- distributor.deposit{value: amountBNBReflection}() (#607)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#608)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#609)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#615-622)
External calls sending eth:
- swapBack() (#497)
- distributor.deposit{value: amountBNBReflection}() (#607)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#608)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#609)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#615-622)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#500)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#503)
- amountReceived = takeFee(sender,amount,(recipient == pair)) (#502)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#541)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.distributeDividend(address) (#295-306) ignores return value by RWRD.transfer(shareholder,amount) (#301)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
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.
FairyToken.swapBack().tmpSuccess (#608) is written in both
(tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#608)
(tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#609)
FairyToken.swapBack().tmpSuccess (#608) is written in both
(tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#609)
tmpSuccess = false (#612)
Fix or remove the writes.
Additional information: link
FairyToken.slitherConstructorVariables() (#339-761) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#343)
FairyToken.slitherConstructorVariables() (#339-761) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#344)
FairyToken.slitherConstructorVariables() (#339-761) uses literals with too many digits:
- distributorGas = 500000 (#389)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
DividendDistributor.WBNB (#185) should be constant
DividendDistributor.dividendsPerShareAccuracyFactor (#198) should be constant
FairyToken.DEAD (#343) should be constant
FairyToken.WBNB (#342) should be constant
FairyToken.ZERO (#344) should be constant
FairyToken._totalSupply (#350) 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) (#89-91)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#93-95)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#105-109)
tradingStatus(bool) should be declared external:
- FairyToken.tradingStatus(bool) (#569-571)
cooldownEnabled(bool,uint8) should be declared external:
- FairyToken.cooldownEnabled(bool,uint8) (#574-577)
enable_blacklist(bool) should be declared external:
- FairyToken.enable_blacklist(bool) (#638-640)
manage_blacklist(address[],bool) should be declared external:
- FairyToken.manage_blacklist(address[],bool) (#642-646)
Use the external attribute for functions never called from the contract.
Additional information: link
Reentrancy in DividendDistributor.distributeDividend(address) (#295-306):
External calls:
- RWRD.transfer(shareholder,amount) (#301)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (#303)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#304)
Reentrancy in DividendDistributor.process(uint256) (#264-288):
External calls:
- distributeDividend(shareholders[currentIndex]) (#280)
- RWRD.transfer(shareholder,amount) (#301)
State variables written after the call(s):
- currentIndex ++ (#285)
Reentrancy in DividendDistributor.setShare(address,uint256) (#228-242):
External calls:
- distributeDividend(shareholder) (#230)
- RWRD.transfer(shareholder,amount) (#301)
State variables written after the call(s):
- shares[shareholder].amount = amount (#240)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#241)
Apply the check-effects-interactions pattern.
Additional information: link
FairyToken.manage_blacklist(address[],bool).i (#643) 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
FairyToken.swapBack() (#579-625) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#615-622)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendDistributor.setDistributionCriteria(uint256,uint256) (#223-226) should emit an event for:
- minPeriod = _minPeriod (#224)
- minDistribution = _minDistribution (#225)
FairyToken.setMaxTxPercent_base1000(uint256) (#461-463) should emit an event for:
- _maxTxAmount = (_totalSupply * maxTXPercentage_base1000) / 1000 (#462)
FairyToken.setTxLimit(uint256) (#465-467) should emit an event for:
- _maxTxAmount = amount (#466)
FairyToken.set_sell_multiplier(uint256) (#564-566) should emit an event for:
- sellMultiplier = Multiplier (#565)
FairyToken.setFees(uint256,uint256,uint256,uint256,uint256) (#661-669) should emit an event for:
- liquidityFee = _liquidityFee (#662)
- reflectionFee = _reflectionFee (#663)
- marketingFee = _marketingFee (#664)
- devFee = _devFee (#665)
- totalFee = _liquidityFee.add(_reflectionFee).add(_marketingFee).add(_devFee) (#666)
- feeDenominator = _feeDenominator (#667)
FairyToken.setSwapBackSettings(bool,uint256) (#677-680) should emit an event for:
- swapThreshold = _amount (#679)
FairyToken.setTargetLiquidity(uint256,uint256) (#682-685) should emit an event for:
- targetLiquidity = _target (#683)
- targetLiquidityDenominator = _denominator (#684)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#105) lacks a zero-check on :
- owner = adr (#106)
FairyToken.setFeeReceivers(address,address,address)._autoLiquidityReceiver (#671) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#672)
FairyToken.setFeeReceivers(address,address,address)._marketingFeeReceiver (#671) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#673)
FairyToken.setFeeReceivers(address,address,address)._devFeeReceiver (#671) lacks a zero-check on :
- devFeeReceiver = _devFeeReceiver (#674)
Check that the address is not zero.
Additional information: link
DividendDistributor.distributeDividend(address) (#295-306) has external calls inside a loop: RWRD.transfer(shareholder,amount) (#301)
FairyToken.multiTransfer(address,address[],uint256[]) (#711-735) has external calls inside a loop: distributor.setShare(addresses[i_scope_0],_balances[addresses[i_scope_0]]) (#727)
FairyToken.multiTransfer_fixed(address,address[],uint256) (#737-756) has external calls inside a loop: distributor.setShare(addresses[i],_balances[addresses[i]]) (#748)
Favor pull over push strategy for external calls.
Additional information: link
Reentrancy in FairyToken.constructor() (#400-424):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#402)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = uint256(- 1) (#403)
- _balances[msg.sender] = _totalSupply (#422)
- autoLiquidityReceiver = msg.sender (#418)
- devFeeReceiver = msg.sender (#420)
- distributor = new DividendDistributor(address(router)) (#405)
- isDividendExempt[pair] = true (#414)
- isDividendExempt[address(this)] = true (#415)
- isDividendExempt[DEAD] = true (#416)
- isFeeExempt[msg.sender] = true (#407)
- isTimelockExempt[msg.sender] = true (#410)
- isTimelockExempt[DEAD] = true (#411)
- isTimelockExempt[address(this)] = true (#412)
- isTxLimitExempt[msg.sender] = true (#408)
- marketingFeeReceiver = msg.sender (#419)
Reentrancy in DividendDistributor.deposit() (#244-262):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (#251-256)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (#261)
- totalDividends = totalDividends.add(amount) (#260)
Reentrancy in DividendDistributor.distributeDividend(address) (#295-306):
External calls:
- RWRD.transfer(shareholder,amount) (#301)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#302)
Reentrancy in DividendDistributor.setShare(address,uint256) (#228-242):
External calls:
- distributeDividend(shareholder) (#230)
- RWRD.transfer(shareholder,amount) (#301)
State variables written after the call(s):
- addShareholder(shareholder) (#234)
- shareholderIndexes[shareholder] = shareholders.length (#328)
- removeShareholder(shareholder) (#236)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#334)
- addShareholder(shareholder) (#234)
- shareholders.push(shareholder) (#329)
- removeShareholder(shareholder) (#236)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#333)
- shareholders.pop() (#335)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#239)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in FairyToken._transferFrom(address,address,uint256) (#470-518):
External calls:
- swapBack() (#497)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#590-596)
- distributor.deposit{value: amountBNBReflection}() (#607)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#608)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#609)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#615-622)
- distributor.setShare(sender,_balances[sender]) (#507)
- distributor.setShare(recipient,_balances[recipient]) (#511)
- distributor.process(distributorGas) (#514)
External calls sending eth:
- swapBack() (#497)
- distributor.deposit{value: amountBNBReflection}() (#607)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#608)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#609)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#615-622)
Event emitted after the call(s):
- Transfer(sender,recipient,amountReceived) (#516)
Reentrancy in FairyToken._transferFrom(address,address,uint256) (#470-518):
External calls:
- swapBack() (#497)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#590-596)
- distributor.deposit{value: amountBNBReflection}() (#607)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#608)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#609)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#615-622)
External calls sending eth:
- swapBack() (#497)
- distributor.deposit{value: amountBNBReflection}() (#607)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#608)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#609)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#615-622)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#542)
- amountReceived = takeFee(sender,amount,(recipient == pair)) (#502)
Reentrancy in FairyToken.constructor() (#400-424):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#402)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#423)
Reentrancy in FairyToken.swapBack() (#579-625):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#590-596)
- distributor.deposit{value: amountBNBReflection}() (#607)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#608)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#609)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#615-622)
External calls sending eth:
- distributor.deposit{value: amountBNBReflection}() (#607)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#608)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#609)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#615-622)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#623)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.shouldDistribute(address) (#290-293) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#291-292)
FairyToken._transferFrom(address,address,uint256) (#470-518) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(cooldownTimer[recipient] < block.timestamp,Please wait for 1min between two buys) (#490)
Avoid relying on block.timestamp.
Additional information: link
DividendDistributor.process(uint256) (#264-288) has costly operations inside a loop:
- currentIndex = 0 (#276)
DividendDistributor.distributeDividend(address) (#295-306) has costly operations inside a loop:
- totalDistributed = totalDistributed.add(amount) (#300)
DividendDistributor.process(uint256) (#264-288) has costly operations inside a loop:
- currentIndex ++ (#285)
Use a local variable to hold the loop computation result.
Additional information: link
FairyToken._maxTxAmount (#352) is set pre-construction with a non-constant function or state variable:
- _totalSupply
FairyToken._maxWalletToken (#353) is set pre-construction with a non-constant function or state variable:
- _totalSupply
FairyToken.totalFee (#371) is set pre-construction with a non-constant function or state variable:
- marketingFee + reflectionFee + liquidityFee + devFee
FairyToken.swapThreshold (#396) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 30 / 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
Low level call in FairyToken.swapBack() (#579-625):
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#608)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#609)
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() (#120) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minPeriod (#223) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minDistribution (#223) is not in mixedCase
Variable DividendDistributor._token (#176) is not in mixedCase
Variable DividendDistributor.RWRD (#184) is not in mixedCase
Variable DividendDistributor.WBNB (#185) is not in mixedCase
Function FairyToken.setMaxWalletPercent_base1000(uint256) (#458-460) is not in mixedCase
Parameter FairyToken.setMaxWalletPercent_base1000(uint256).maxWallPercent_base1000 (#458) is not in mixedCase
Function FairyToken.setMaxTxPercent_base1000(uint256) (#461-463) is not in mixedCase
Parameter FairyToken.setMaxTxPercent_base1000(uint256).maxTXPercentage_base1000 (#461) is not in mixedCase
Function FairyToken.clearStuckBalance_sender(uint256) (#559-562) is not in mixedCase
Function FairyToken.set_sell_multiplier(uint256) (#564-566) is not in mixedCase
Parameter FairyToken.set_sell_multiplier(uint256).Multiplier (#564) is not in mixedCase
Parameter FairyToken.tradingStatus(bool)._status (#569) is not in mixedCase
Parameter FairyToken.cooldownEnabled(bool,uint8)._status (#574) is not in mixedCase
Parameter FairyToken.cooldownEnabled(bool,uint8)._interval (#574) is not in mixedCase
Function FairyToken.enable_blacklist(bool) (#638-640) is not in mixedCase
Parameter FairyToken.enable_blacklist(bool)._status (#638) is not in mixedCase
Function FairyToken.manage_blacklist(address[],bool) (#642-646) is not in mixedCase
Parameter FairyToken.setFees(uint256,uint256,uint256,uint256,uint256)._liquidityFee (#661) is not in mixedCase
Parameter FairyToken.setFees(uint256,uint256,uint256,uint256,uint256)._reflectionFee (#661) is not in mixedCase
Parameter FairyToken.setFees(uint256,uint256,uint256,uint256,uint256)._marketingFee (#661) is not in mixedCase
Parameter FairyToken.setFees(uint256,uint256,uint256,uint256,uint256)._devFee (#661) is not in mixedCase
Parameter FairyToken.setFees(uint256,uint256,uint256,uint256,uint256)._feeDenominator (#661) is not in mixedCase
Parameter FairyToken.setFeeReceivers(address,address,address)._autoLiquidityReceiver (#671) is not in mixedCase
Parameter FairyToken.setFeeReceivers(address,address,address)._marketingFeeReceiver (#671) is not in mixedCase
Parameter FairyToken.setFeeReceivers(address,address,address)._devFeeReceiver (#671) is not in mixedCase
Parameter FairyToken.setSwapBackSettings(bool,uint256)._enabled (#677) is not in mixedCase
Parameter FairyToken.setSwapBackSettings(bool,uint256)._amount (#677) is not in mixedCase
Parameter FairyToken.setTargetLiquidity(uint256,uint256)._target (#682) is not in mixedCase
Parameter FairyToken.setTargetLiquidity(uint256,uint256)._denominator (#682) is not in mixedCase
Parameter FairyToken.setDistributionCriteria(uint256,uint256)._minPeriod (#687) is not in mixedCase
Parameter FairyToken.setDistributionCriteria(uint256,uint256)._minDistribution (#687) is not in mixedCase
Function FairyToken.multiTransfer_fixed(address,address[],uint256) (#737-756) is not in mixedCase
Variable FairyToken.WBNB (#342) is not in mixedCase
Variable FairyToken.DEAD (#343) is not in mixedCase
Variable FairyToken.ZERO (#344) is not in mixedCase
Constant FairyToken._name (#346) is not in UPPER_CASE_WITH_UNDERSCORES
Constant FairyToken._symbol (#347) is not in UPPER_CASE_WITH_UNDERSCORES
Constant FairyToken._decimals (#348) is not in UPPER_CASE_WITH_UNDERSCORES
Variable FairyToken._totalSupply (#350) is not in mixedCase
Variable FairyToken._maxTxAmount (#352) is not in mixedCase
Variable FairyToken._maxWalletToken (#353) is not in mixedCase
Variable FairyToken._balances (#355) is not in mixedCase
Variable FairyToken._allowances (#356) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#125) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#126)
Prevent variables from having similar names.
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 token contract audit
Unable to find audit link on the website
Unable to find whitepaper link on the website
Unable to find Twitter link on the website
Unable to find token on CoinGecko
Additional information: link
Unable to find token on CoinMarketCap
Additional information: link
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
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 Twitter account
Telegram account has relatively few subscribers
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account