In 2100, an asteroid hits Earth’s atmosphere, creates an impressive fireball, burns up everything, and destroys the world. Human and other species’ life is facing extinction. However, the 5 types of doge breeding in secret laboratories will incredibly alter the natural world. With a gene variant, these Fantasy Doge could absorb the unique energy from meteorites and the evolution brings them new strength and superpower that Fantasy Doge can cast spells.
Leaving the laboratory, Fantasy Doge has the adventure to search for the life left in the world. But what are the biggest challenges that they will face in the future?
Let’s discover this in the Fantasy Doge’s story.
What's Fantasy Doge Ecosystem?
Fantasy Doge Ecosystem is the world’s first Doge Gaming Union for players. NFT Gaming and Defi combine perfectly to cheer the players and enable the users to earn a passive income. The Fantasy Doge ecosystem includes Fantasy Doge Game, Fantasy Doge Swap and 8% Redistribution in Reward Mechanism.
Fantasy Doge Game
Fantasy Doge Game is not just a game. Fantasy Doge is also the remaining population in the destroyed world, the last 5 fantasy Doge survivors trying to find a way to save their world.
With 2 modes, including PVE and PVP, players can choose the mode and build a powerful army for themselves, fight to win the crown. In-game items will be collected in battles with value will depend on the rarity. Besides, the crown and items for characters are available in the Fantasy Doge Marketplace that players can buy or sell them.
Fantasy Doge Swap
Fantasy Swap focus on security and support to launch new token in crypto.
Players can buy or sell tokens $FTD and another newly listed token on Fantasy Swap with security, low gas fee and high transaction speed.
Tokenmetrics
Presale: 35% locked in 5 months
Liquidity: 21% locked in 5 months
Team: 4% locked in 10 days
Marketing: 6% locked in 7 days
Game development fund: 10% locked in 20 days
Game promotion: 10% locked in 70days till game launch
Burning: 14%
Tokenomics
Buy Fee: 9% / Sell Fee: 11% ~ 14%
4% BUSD rewards: 4% from every transaction will be redistributed to holders’ wallets every 60 minutes (automatically or claimed on the website)
Liquidity Pool: To control the token price, 2% of every transaction will be used to buyback and add in the liquidity pool.
Marketing wallet: For the longevity of the project, 2%-5% from every transaction will go directly to the marketing wallets
Antibot: Prevent from the sniping bot dump and dump the chart
Sell Limitation: In the first 5 minutes after launch, the dev team will limit the maximum sell orders:
Cooldown for selling: Each sales transaction need to wait 10 minutes until the next sell
Roadmap
• Phase 1 (Quarter 4 of 2021) Website Launch KYC Deploy Smart Contract Whitepaper Release Audit Marketing Presale + Listing on Pancakeswap CMC, CGC application
•
• Phase 2: (Quarter 1 of 2022) Update website Launch Fantasy Doge Swap and Staking Connect with social media KOLs such as Youtuber, Instagram KOLs, etc
• Phase 3: (Quarter 1 of 2022) Release Fantasy Doge Game Beta (Testnet) Announce partnership Focus on building a strong community
• Phase 4: (Quarter 2 of 2022) Release Fantasy Doge Game Release Fantasy Doge Market Listing in top CEX Further ecosystem development
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
FantasyDoge.swapBack(bool) (#651-699) sends eth to arbitrary user
Dangerous calls:
- distributor.deposit{value: amountBNBReflection}() (#683)
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (#684)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#689-696)
FantasyDoge.buyTokens(uint256,address) (#733-744) sends eth to arbitrary user
Dangerous calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (#738-743)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in FantasyDoge._transferFrom(address,address,uint256) (#549-582):
External calls:
- pinkAntiBot.onPreTransferCheck(sender,recipient,amount) (#551)
- swapBack(recipient == pair) (#559)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#667-673)
- distributor.deposit{value: amountBNBReflection}() (#683)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#689-696)
- triggerAutoBuyback() (#560)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (#738-743)
External calls sending eth:
- swapBack(recipient == pair) (#559)
- distributor.deposit{value: amountBNBReflection}() (#683)
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (#684)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#689-696)
- triggerAutoBuyback() (#560)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (#738-743)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#564)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#568)
- amountReceived = takeFee(sender,recipient,amount) (#566)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#638)
- triggerAutoBuyback() (#560)
- inSwap = true (#482)
- inSwap = false (#482)
Reentrancy in FantasyDoge._transferFrom(address,address,uint256) (#549-582):
External calls:
- pinkAntiBot.onPreTransferCheck(sender,recipient,amount) (#551)
- swapBack(recipient == pair) (#559)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#667-673)
- distributor.deposit{value: amountBNBReflection}() (#683)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#689-696)
- triggerAutoBuyback() (#560)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (#738-743)
- distributor.setShare(sender,_balances[sender]) (#570)
- distributor.setShare(recipient,_balances[recipient]) (#571)
- distributor.process(distributorGas) (#573)
External calls sending eth:
- swapBack(recipient == pair) (#559)
- distributor.deposit{value: amountBNBReflection}() (#683)
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (#684)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#689-696)
- triggerAutoBuyback() (#560)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (#738-743)
State variables written after the call(s):
- lastSellTime[sender] = block.timestamp (#578)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.distributeDividend(address) (#360-371) ignores return value by RWBUSD.transfer(shareholder,amount) (#366)
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.
Reentrancy in FantasyDoge.constructor(address,address) (#484-514):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#489)
State variables written after the call(s):
- WBNB = router.WETH() (#491)
Reentrancy in DividendDistributor.distributeDividend(address) (#360-371):
External calls:
- RWBUSD.transfer(shareholder,amount) (#366)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (#368)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#369)
Reentrancy in DividendDistributor.process(uint256) (#329-353):
External calls:
- distributeDividend(shareholders[currentIndex]) (#345)
- RWBUSD.transfer(shareholder,amount) (#366)
State variables written after the call(s):
- currentIndex ++ (#350)
Reentrancy in DividendDistributor.setShare(address,uint256) (#293-307):
External calls:
- distributeDividend(shareholder) (#295)
- RWBUSD.transfer(shareholder,amount) (#366)
State variables written after the call(s):
- shares[shareholder].amount = amount (#305)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#306)
Apply the check-effects-interactions pattern.
Additional information: link
FantasyDoge.swapBack(bool) (#651-699) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#689-696)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendDistributor.setDistributionCriteria(uint256,uint256) (#288-291) should emit an event for:
- minPeriod = _minPeriod (#289)
- minDistribution = _minDistribution (#290)
FantasyDoge.setTimeLimit(bool,uint256) (#605-608) should emit an event for:
- timeLimit = _timeLimit (#607)
FantasyDoge.setAutoBuybackSettings(bool,uint256,uint256,uint256) (#746-753) should emit an event for:
- autoBuybackCap = _cap (#748)
- autoBuybackAmount = _amount (#750)
FantasyDoge.setBuybackMultiplierSettings(uint256,uint256,uint256) (#755-760) should emit an event for:
- buybackMultiplierNumerator = numerator (#757)
- buybackMultiplierDenominator = denominator (#758)
- buybackMultiplierLength = length (#759)
FantasyDoge.setTxLimit(uint256) (#772-775) should emit an event for:
- _maxTxAmount = amount (#774)
FantasyDoge.setBuyFees(uint256,uint256,uint256,uint256,uint256) (#795-803) should emit an event for:
- liquidityBuyFee = _liquidityFee (#796)
- reflectionBuyFee = _reflectionFee (#798)
- marketingBuyFee = _marketingFee (#799)
- totalBuyFee = _liquidityFee.add(_buybackFee).add(_reflectionFee).add(_marketingFee) (#800)
- buyFeeDenominator = _feeDenominator (#801)
FantasyDoge.setSellFees(uint256,uint256,uint256,uint256,uint256) (#805-813) should emit an event for:
- liquiditySellFee = _liquidityFee (#806)
- reflectionSellFee = _reflectionFee (#808)
- marketingSellFee = _marketingFee (#809)
- totalSellFee = _liquidityFee.add(_buybackFee).add(_reflectionFee).add(_marketingFee) (#810)
- sellFeeDenominator = _feeDenominator (#811)
FantasyDoge.setSwapBackSettings(bool,uint256) (#820-823) should emit an event for:
- swapThreshold = _amount (#822)
FantasyDoge.setTargetLiquidity(uint256,uint256) (#825-828) should emit an event for:
- targetLiquidity = _target (#826)
- targetLiquidityDenominator = _denominator (#827)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#160) lacks a zero-check on :
- owner = adr (#161)
FantasyDoge.sweep()._owner (#718) lacks a zero-check on :
- _owner.transfer(address(this).balance) (#719)
FantasyDoge.setFeeReceivers(address,address)._autoLiquidityReceiver (#815) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#816)
FantasyDoge.setFeeReceivers(address,address)._marketingFeeReceiver (#815) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#817)
Check that the address is not zero.
Additional information: link
Reentrancy in FantasyDoge._transferFrom(address,address,uint256) (#549-582):
External calls:
- pinkAntiBot.onPreTransferCheck(sender,recipient,amount) (#551)
State variables written after the call(s):
- _basicTransfer(sender,recipient,amount) (#554)
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#585)
- _balances[recipient] = _balances[recipient].add(amount) (#586)
Reentrancy in FantasyDoge.constructor(address,address) (#484-514):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#489)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = _totalSupply (#490)
- approve(_dexRouter,_totalSupply) (#506)
- _allowances[msg.sender][spender] = amount (#528)
- approve(address(pair),_totalSupply) (#507)
- _allowances[msg.sender][spender] = amount (#528)
- _balances[msg.sender] = _totalSupply (#508)
- antiBotEnabled = true (#510)
- autoLiquidityReceiver = msg.sender (#503)
- buyBacker[msg.sender] = true (#501)
- distributor = new DividendDistributor(_dexRouter) (#492)
- distributorAddress = address(distributor) (#493)
- isDividendExempt[pair] = true (#498)
- isDividendExempt[address(this)] = true (#499)
- isDividendExempt[DEAD] = true (#500)
- isFeeExempt[msg.sender] = true (#495)
- isTxLimitExempt[msg.sender] = true (#496)
- isTxLimitExempt[pair] = true (#497)
- marketingFeeReceiver = msg.sender (#504)
- pinkAntiBot = IPinkAntiBot(pinkAntiBot_) (#511)
Reentrancy in DividendDistributor.deposit() (#309-327):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (#316-321)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (#326)
- totalDividends = totalDividends.add(amount) (#325)
Reentrancy in DividendDistributor.distributeDividend(address) (#360-371):
External calls:
- RWBUSD.transfer(shareholder,amount) (#366)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#367)
Reentrancy in DividendDistributor.setShare(address,uint256) (#293-307):
External calls:
- distributeDividend(shareholder) (#295)
- RWBUSD.transfer(shareholder,amount) (#366)
State variables written after the call(s):
- addShareholder(shareholder) (#299)
- shareholderIndexes[shareholder] = shareholders.length (#393)
- removeShareholder(shareholder) (#301)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#399)
- addShareholder(shareholder) (#299)
- shareholders.push(shareholder) (#394)
- removeShareholder(shareholder) (#301)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#398)
- shareholders.pop() (#400)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#304)
Reentrancy in FantasyDoge.triggerAutoBuyback() (#726-731):
External calls:
- buyTokens(autoBuybackAmount,DEAD) (#727)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (#738-743)
State variables written after the call(s):
- autoBuybackAccumulator = autoBuybackAccumulator.add(autoBuybackAmount) (#729)
- autoBuybackBlockLast = block.number (#728)
- autoBuybackEnabled = false (#730)
Reentrancy in FantasyDoge.triggerZeusBuyback(uint256,bool) (#709-715):
External calls:
- buyTokens(amount,DEAD) (#710)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (#738-743)
State variables written after the call(s):
- buybackMultiplierTriggeredAt = block.timestamp (#712)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in FantasyDoge._transferFrom(address,address,uint256) (#549-582):
External calls:
- pinkAntiBot.onPreTransferCheck(sender,recipient,amount) (#551)
- swapBack(recipient == pair) (#559)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#667-673)
- distributor.deposit{value: amountBNBReflection}() (#683)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#689-696)
External calls sending eth:
- swapBack(recipient == pair) (#559)
- distributor.deposit{value: amountBNBReflection}() (#683)
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (#684)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#689-696)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#697)
- swapBack(recipient == pair) (#559)
Reentrancy in FantasyDoge._transferFrom(address,address,uint256) (#549-582):
External calls:
- pinkAntiBot.onPreTransferCheck(sender,recipient,amount) (#551)
- swapBack(recipient == pair) (#559)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#667-673)
- distributor.deposit{value: amountBNBReflection}() (#683)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#689-696)
- triggerAutoBuyback() (#560)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (#738-743)
- distributor.setShare(sender,_balances[sender]) (#570)
- distributor.setShare(recipient,_balances[recipient]) (#571)
- distributor.process(distributorGas) (#573)
External calls sending eth:
- swapBack(recipient == pair) (#559)
- distributor.deposit{value: amountBNBReflection}() (#683)
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (#684)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#689-696)
- triggerAutoBuyback() (#560)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (#738-743)
Event emitted after the call(s):
- Transfer(sender,recipient,amountReceived) (#575)
Reentrancy in FantasyDoge._transferFrom(address,address,uint256) (#549-582):
External calls:
- pinkAntiBot.onPreTransferCheck(sender,recipient,amount) (#551)
- swapBack(recipient == pair) (#559)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#667-673)
- distributor.deposit{value: amountBNBReflection}() (#683)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#689-696)
- triggerAutoBuyback() (#560)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (#738-743)
External calls sending eth:
- swapBack(recipient == pair) (#559)
- distributor.deposit{value: amountBNBReflection}() (#683)
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (#684)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#689-696)
- triggerAutoBuyback() (#560)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (#738-743)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#639)
- amountReceived = takeFee(sender,recipient,amount) (#566)
Reentrancy in FantasyDoge.constructor(address,address) (#484-514):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#489)
Event emitted after the call(s):
- Approval(msg.sender,spender,amount) (#529)
- approve(address(pair),_totalSupply) (#507)
- Approval(msg.sender,spender,amount) (#529)
- approve(_dexRouter,_totalSupply) (#506)
Reentrancy in FantasyDoge.constructor(address,address) (#484-514):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#489)
- pinkAntiBot.setTokenOwner(msg.sender) (#512)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#513)
Reentrancy in FantasyDoge.swapBack(bool) (#651-699):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#667-673)
- distributor.deposit{value: amountBNBReflection}() (#683)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#689-696)
External calls sending eth:
- distributor.deposit{value: amountBNBReflection}() (#683)
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (#684)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#689-696)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#697)
Reentrancy in FantasyDoge.triggerZeusBuyback(uint256,bool) (#709-715):
External calls:
- buyTokens(amount,DEAD) (#710)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (#738-743)
Event emitted after the call(s):
- BuybackMultiplierActive(buybackMultiplierLength) (#713)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.shouldDistribute(address) (#355-358) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#356-357)
FantasyDoge.checkTimeLimit(address) (#599-603) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp - lastSellTime[sender] > timeLimit,Time Limit Exceeded) (#601)
FantasyDoge.getMultipliedFee() (#622-631) uses timestamp for comparisons
Dangerous comparisons:
- launchedAtTimestamp + 86400 > block.timestamp (#623)
- buybackMultiplierTriggeredAt.add(buybackMultiplierLength) > block.timestamp (#625)
FantasyDoge.shouldSwapBack() (#644-649) uses timestamp for comparisons
Dangerous comparisons:
- msg.sender != pair && ! inSwap && swapEnabled && _balances[address(this)] >= swapThreshold (#645-648)
FantasyDoge.isOverLiquified(uint256,uint256) (#847-849) uses timestamp for comparisons
Dangerous comparisons:
- getLiquidityBacking(accuracy) > target (#848)
Avoid relying on block.timestamp.
Additional information: link
FantasyDoge.onlyBuybacker() (#523) compares to a boolean constant:
-require(bool,string)(buyBacker[msg.sender] == true,) (#523)
Remove the equality to the boolean constant.
Additional information: link
DividendDistributor.process(uint256) (#329-353) has costly operations inside a loop:
- currentIndex = 0 (#341)
DividendDistributor.process(uint256) (#329-353) has costly operations inside a loop:
- currentIndex ++ (#350)
Use a local variable to hold the loop computation result.
Additional information: link
FantasyDoge.launched() (#762-764) is never used and should be removed
SafeMath.div(uint256,uint256,string) (#76-81) is never used and should be removed
SafeMath.mod(uint256,uint256) (#65-67) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#83-88) is never used and should be removed
SafeMath.tryAdd(uint256,uint256) (#8-14) is never used and should be removed
SafeMath.tryDiv(uint256,uint256) (#35-40) is never used and should be removed
SafeMath.tryMod(uint256,uint256) (#42-47) is never used and should be removed
SafeMath.tryMul(uint256,uint256) (#23-33) is never used and should be removed
SafeMath.trySub(uint256,uint256) (#16-21) is never used and should be removed
Remove unused functions.
Additional information: link
FantasyDoge._maxTxAmount (#418) is set pre-construction with a non-constant function or state variable:
- _totalSupply.div(400)
FantasyDoge.swapThreshold (#476) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 2000
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.8.0 (#2) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6
solc-0.8.0 is not recommended for deployment
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
Function IDEXRouter.WETH() (#175) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minPeriod (#288) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minDistribution (#288) is not in mixedCase
Variable DividendDistributor._token (#241) is not in mixedCase
Variable DividendDistributor.RWBUSD (#249) is not in mixedCase
Variable DividendDistributor.WBNB (#250) is not in mixedCase
Parameter FantasyDoge.setEnableAntiBot(bool)._enable (#591) is not in mixedCase
Parameter FantasyDoge.setTimeLimit(bool,uint256)._enable (#605) is not in mixedCase
Parameter FantasyDoge.setTimeLimit(bool,uint256)._timeLimit (#605) is not in mixedCase
Parameter FantasyDoge.setAutoBuybackSettings(bool,uint256,uint256,uint256)._enabled (#746) is not in mixedCase
Parameter FantasyDoge.setAutoBuybackSettings(bool,uint256,uint256,uint256)._cap (#746) is not in mixedCase
Parameter FantasyDoge.setAutoBuybackSettings(bool,uint256,uint256,uint256)._amount (#746) is not in mixedCase
Parameter FantasyDoge.setAutoBuybackSettings(bool,uint256,uint256,uint256)._period (#746) is not in mixedCase
Parameter FantasyDoge.setBuyFees(uint256,uint256,uint256,uint256,uint256)._liquidityFee (#795) is not in mixedCase
Parameter FantasyDoge.setBuyFees(uint256,uint256,uint256,uint256,uint256)._buybackFee (#795) is not in mixedCase
Parameter FantasyDoge.setBuyFees(uint256,uint256,uint256,uint256,uint256)._reflectionFee (#795) is not in mixedCase
Parameter FantasyDoge.setBuyFees(uint256,uint256,uint256,uint256,uint256)._marketingFee (#795) is not in mixedCase
Parameter FantasyDoge.setBuyFees(uint256,uint256,uint256,uint256,uint256)._feeDenominator (#795) is not in mixedCase
Parameter FantasyDoge.setSellFees(uint256,uint256,uint256,uint256,uint256)._liquidityFee (#805) is not in mixedCase
Parameter FantasyDoge.setSellFees(uint256,uint256,uint256,uint256,uint256)._buybackFee (#805) is not in mixedCase
Parameter FantasyDoge.setSellFees(uint256,uint256,uint256,uint256,uint256)._reflectionFee (#805) is not in mixedCase
Parameter FantasyDoge.setSellFees(uint256,uint256,uint256,uint256,uint256)._marketingFee (#805) is not in mixedCase
Parameter FantasyDoge.setSellFees(uint256,uint256,uint256,uint256,uint256)._feeDenominator (#805) is not in mixedCase
Parameter FantasyDoge.setFeeReceivers(address,address)._autoLiquidityReceiver (#815) is not in mixedCase
Parameter FantasyDoge.setFeeReceivers(address,address)._marketingFeeReceiver (#815) is not in mixedCase
Parameter FantasyDoge.setSwapBackSettings(bool,uint256)._enabled (#820) is not in mixedCase
Parameter FantasyDoge.setSwapBackSettings(bool,uint256)._amount (#820) is not in mixedCase
Parameter FantasyDoge.setTargetLiquidity(uint256,uint256)._target (#825) is not in mixedCase
Parameter FantasyDoge.setTargetLiquidity(uint256,uint256)._denominator (#825) is not in mixedCase
Parameter FantasyDoge.setDistributionCriteria(uint256,uint256)._minPeriod (#830) is not in mixedCase
Parameter FantasyDoge.setDistributionCriteria(uint256,uint256)._minDistribution (#830) is not in mixedCase
Constant FantasyDoge.mask (#407) is not in UPPER_CASE_WITH_UNDERSCORES
Variable FantasyDoge.WBNB (#408) is not in mixedCase
Variable FantasyDoge.DEAD (#409) is not in mixedCase
Variable FantasyDoge.ZERO (#410) is not in mixedCase
Variable FantasyDoge.DEAD_NON_CHECKSUM (#411) is not in mixedCase
Constant FantasyDoge._name (#413) is not in UPPER_CASE_WITH_UNDERSCORES
Constant FantasyDoge._symbol (#414) is not in UPPER_CASE_WITH_UNDERSCORES
Constant FantasyDoge._decimals (#415) is not in UPPER_CASE_WITH_UNDERSCORES
Variable FantasyDoge._totalSupply (#417) is not in mixedCase
Variable FantasyDoge._maxTxAmount (#418) is not in mixedCase
Variable FantasyDoge._balances (#420) is not in mixedCase
Variable FantasyDoge._allowances (#421) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Reentrancy in FantasyDoge._transferFrom(address,address,uint256) (#549-582):
External calls:
- swapBack(recipient == pair) (#559)
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (#684)
External calls sending eth:
- swapBack(recipient == pair) (#559)
- distributor.deposit{value: amountBNBReflection}() (#683)
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (#684)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#689-696)
- triggerAutoBuyback() (#560)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (#738-743)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#564)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#568)
- amountReceived = takeFee(sender,recipient,amount) (#566)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#638)
- triggerAutoBuyback() (#560)
- autoBuybackAccumulator = autoBuybackAccumulator.add(autoBuybackAmount) (#729)
- triggerAutoBuyback() (#560)
- autoBuybackBlockLast = block.number (#728)
- triggerAutoBuyback() (#560)
- autoBuybackEnabled = false (#730)
- triggerAutoBuyback() (#560)
- inSwap = true (#482)
- inSwap = false (#482)
- lastSellTime[sender] = block.timestamp (#578)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#639)
- amountReceived = takeFee(sender,recipient,amount) (#566)
- Transfer(sender,recipient,amountReceived) (#575)
Reentrancy in FantasyDoge.swapBack(bool) (#651-699):
External calls:
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (#684)
External calls sending eth:
- distributor.deposit{value: amountBNBReflection}() (#683)
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (#684)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#689-696)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#697)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#180) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#181)
Prevent variables from having similar names.
Additional information: link
FantasyDoge.slitherConstructorVariables() (#404-854) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#409)
FantasyDoge.slitherConstructorVariables() (#404-854) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#410)
FantasyDoge.slitherConstructorVariables() (#404-854) uses literals with too many digits:
- DEAD_NON_CHECKSUM = 0x000000000000000000000000000000000000dEaD (#411)
FantasyDoge.slitherConstructorVariables() (#404-854) uses literals with too many digits:
- distributorGas = 500000 (#473)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
FantasyDoge.DEAD_NON_CHECKSUM (#411) is never used in FantasyDoge (#404-854)
Remove unused state variables.
Additional information: link
DividendDistributor.WBNB (#250) should be constant
DividendDistributor.dividendsPerShareAccuracyFactor (#263) should be constant
FantasyDoge.DEAD (#409) should be constant
FantasyDoge.DEAD_NON_CHECKSUM (#411) should be constant
FantasyDoge.ZERO (#410) should be constant
FantasyDoge._totalSupply (#417) 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) (#132-134)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#139-141)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#160-164)
launch() should be declared external:
- FantasyDoge.launch() (#766-770)
Use the external attribute for functions never called from the contract.
Additional information: link
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Number of Binance Smart Chain (BSC) token holders is low.
Token is deployed only at one blockchain
Token has only one trading pair
Unable to find PancakeSwap trading pair to compute liquidity.
Unable to find PancakeSwap trading pair to compute volume.
Unable to find PancakeSwap trading pair to compute number of swaps.
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Token was delisted (assigned to inactive / untracked listing) from CoinMarketCap
Additional information: link
Unable to find token contract audit
Unable to verify token contract address on the website
Unable to find audit link on the website
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
Young tokens have high risks of price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Token has no active CoinMarketCap listing / rank
Token has relatively low CoinGecko rank
Twitter account link seems to be invalid
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account