DividendDistributor.distributeDividend(address) (#311-322) ignores return value by MATIC.transfer(shareholder,amount) (#317)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Too many vulnerabilities (Unchecked transfer, Reentrancy vulnerability, etc.). High risk of a scam. DYOR & manual audit are advised.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Dragon.swapBack() (#581-626) sends eth to arbitrary user
Dangerous calls:
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#609)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in Dragon._transferFrom(address,address,uint256) (#481-529):
External calls:
- swapBack() (#508)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#592-598)
- distributor.deposit{value: amountBNBReflection}() (#608)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#609)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#615-622)
External calls sending eth:
- swapBack() (#508)
- distributor.deposit{value: amountBNBReflection}() (#608)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#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) (#511)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#514)
- amountReceived = takeFee(sender,amount) (#513)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#549)
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.
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.
Contract ownership is not renounced (belongs to a wallet)
Dragon.swapBack().tmpSuccess (#609) is written in both
(tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#609)
tmpSuccess = false (#612)
Fix or remove the writes.
Additional information: link
Dragon.slitherConstructorVariables() (#355-703) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#360)
Dragon.slitherConstructorVariables() (#355-703) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#361)
Dragon.slitherConstructorVariables() (#355-703) uses literals with too many digits:
- distributorGas = 500000 (#400)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Dragon.MATIC (#358) is never used in Dragon (#355-703)
Remove unused state variables.
Additional information: link
DividendDistributor.WBNB (#200) should be constant
DividendDistributor.dividendsPerShareAccuracyFactor (#213) should be constant
Dragon.DEAD (#360) should be constant
Dragon.MATIC (#358) should be constant
Dragon.WBNB (#359) should be constant
Dragon.ZERO (#361) should be constant
Dragon._totalSupply (#367) should be constant
Dragon.launchedAt (#396) 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) (#92-94)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#99-101)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#120-124)
tradingStatus(bool) should be declared external:
- Dragon.tradingStatus(bool) (#569-571)
cooldownEnabled(bool,uint8) should be declared external:
- Dragon.cooldownEnabled(bool,uint8) (#574-577)
Use the external attribute for functions never called from the contract.
Additional information: link
Not a direct threat, but may indicate unreliable intentions of developer. Widespread names (e.g. Elon, King, Moon, Doge) are common among meme-tokens and scams. The allow to gain free hype and attract unexperienced investors.
DividendDistributor.distributeDividend(address) (#311-322) has external calls inside a loop: MATIC.transfer(shareholder,amount) (#317)
Favor pull over push strategy for external calls.
Additional information: link
Reentrancy in DividendDistributor.distributeDividend(address) (#311-322):
External calls:
- MATIC.transfer(shareholder,amount) (#317)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (#319)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#320)
Reentrancy in DividendDistributor.process(uint256) (#280-304):
External calls:
- distributeDividend(shareholders[currentIndex]) (#296)
- MATIC.transfer(shareholder,amount) (#317)
State variables written after the call(s):
- currentIndex ++ (#301)
Reentrancy in DividendDistributor.setShare(address,uint256) (#244-258):
External calls:
- distributeDividend(shareholder) (#246)
- MATIC.transfer(shareholder,amount) (#317)
State variables written after the call(s):
- shares[shareholder].amount = amount (#256)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#257)
Apply the check-effects-interactions pattern.
Additional information: link
Dragon.swapBack() (#581-626) 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) (#239-242) should emit an event for:
- minPeriod = _minPeriod (#240)
- minDistribution = _minDistribution (#241)
Dragon.setTxLimit(uint256) (#629-631) should emit an event for:
- _maxTxAmount = amount (#630)
Dragon.setFees(uint256,uint256,uint256,uint256) (#655-662) should emit an event for:
- liquidityFee = _liquidityFee (#656)
- reflectionFee = _reflectionFee (#657)
- marketingFee = _marketingFee (#658)
- totalFee = _liquidityFee.add(_reflectionFee).add(_marketingFee) (#659)
- feeDenominator = _feeDenominator (#660)
Dragon.setSwapBackSettings(bool,uint256) (#669-672) should emit an event for:
- swapThreshold = _amount (#671)
Dragon.setTargetLiquidity(uint256,uint256) (#674-677) should emit an event for:
- targetLiquidity = _target (#675)
- targetLiquidityDenominator = _denominator (#676)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#120) lacks a zero-check on :
- owner = adr (#121)
Dragon.setFeeReceivers(address,address)._autoLiquidityReceiver (#664) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#665)
Dragon.setFeeReceivers(address,address)._marketingFeeReceiver (#664) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#666)
Check that the address is not zero.
Additional information: link
Reentrancy in Dragon.constructor() (#412-442):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#414)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = uint256(- 1) (#415)
- _balances[msg.sender] = _totalSupply (#440)
- autoLiquidityReceiver = DEAD (#437)
- distributor = new DividendDistributor(address(router)) (#417)
- isDividendExempt[pair] = true (#432)
- isDividendExempt[address(this)] = true (#433)
- isDividendExempt[DEAD] = true (#434)
- isFeeExempt[msg.sender] = true (#419)
- isTimelockExempt[msg.sender] = true (#423)
- isTimelockExempt[DEAD] = true (#424)
- isTimelockExempt[address(this)] = true (#425)
- isTxLimitExempt[msg.sender] = true (#420)
- marketingFeeReceiver = msg.sender (#438)
Reentrancy in DividendDistributor.deposit() (#260-278):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (#267-272)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (#277)
- totalDividends = totalDividends.add(amount) (#276)
Reentrancy in DividendDistributor.distributeDividend(address) (#311-322):
External calls:
- MATIC.transfer(shareholder,amount) (#317)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#318)
Reentrancy in DividendDistributor.setShare(address,uint256) (#244-258):
External calls:
- distributeDividend(shareholder) (#246)
- MATIC.transfer(shareholder,amount) (#317)
State variables written after the call(s):
- addShareholder(shareholder) (#250)
- shareholderIndexes[shareholder] = shareholders.length (#344)
- removeShareholder(shareholder) (#252)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#350)
- addShareholder(shareholder) (#250)
- shareholders.push(shareholder) (#345)
- removeShareholder(shareholder) (#252)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#349)
- shareholders.pop() (#351)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#255)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Dragon._transferFrom(address,address,uint256) (#481-529):
External calls:
- swapBack() (#508)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#592-598)
- distributor.deposit{value: amountBNBReflection}() (#608)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#609)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#615-622)
- distributor.setShare(sender,_balances[sender]) (#518)
- distributor.setShare(recipient,_balances[recipient]) (#522)
- distributor.process(distributorGas) (#525)
External calls sending eth:
- swapBack() (#508)
- distributor.deposit{value: amountBNBReflection}() (#608)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#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) (#527)
Reentrancy in Dragon._transferFrom(address,address,uint256) (#481-529):
External calls:
- swapBack() (#508)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#592-598)
- distributor.deposit{value: amountBNBReflection}() (#608)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#609)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#615-622)
External calls sending eth:
- swapBack() (#508)
- distributor.deposit{value: amountBNBReflection}() (#608)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#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) (#550)
- amountReceived = takeFee(sender,amount) (#513)
Reentrancy in Dragon.constructor() (#412-442):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#414)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#441)
Reentrancy in Dragon.swapBack() (#581-626):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#592-598)
- distributor.deposit{value: amountBNBReflection}() (#608)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#609)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#615-622)
External calls sending eth:
- distributor.deposit{value: amountBNBReflection}() (#608)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#609)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#615-622)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#624)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.shouldDistribute(address) (#306-309) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#307-308)
Dragon._transferFrom(address,address,uint256) (#481-529) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(cooldownTimer[recipient] < block.timestamp,Please wait for cooldown between buys) (#499)
Avoid relying on block.timestamp.
Additional information: link
DividendDistributor.process(uint256) (#280-304) has costly operations inside a loop:
- currentIndex = 0 (#292)
DividendDistributor.distributeDividend(address) (#311-322) has costly operations inside a loop:
- totalDistributed = totalDistributed.add(amount) (#316)
DividendDistributor.process(uint256) (#280-304) has costly operations inside a loop:
- currentIndex ++ (#301)
Use a local variable to hold the loop computation result.
Additional information: link
Dragon._maxTxAmount (#368) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 1 / 100
Dragon._maxWalletToken (#371) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 2) / 100
Dragon.swapThreshold (#408) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 10 / 10000
Remove any initialization of state variables via non-constant state variables or function calls. If variables must be set upon contract deployment, locate initialization in the constructor instead.
Additional information: link
Pragma version^0.7.4 (#3) allows old versions
solc-0.7.4 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
Low level call in Dragon.swapBack() (#581-626):
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#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() (#135) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minPeriod (#239) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minDistribution (#239) is not in mixedCase
Variable DividendDistributor._token (#191) is not in mixedCase
Variable DividendDistributor.MATIC (#199) is not in mixedCase
Variable DividendDistributor.WBNB (#200) is not in mixedCase
Parameter Dragon.tradingStatus(bool)._status (#569) is not in mixedCase
Parameter Dragon.cooldownEnabled(bool,uint8)._status (#574) is not in mixedCase
Parameter Dragon.cooldownEnabled(bool,uint8)._interval (#574) is not in mixedCase
Parameter Dragon.setFees(uint256,uint256,uint256,uint256)._liquidityFee (#655) is not in mixedCase
Parameter Dragon.setFees(uint256,uint256,uint256,uint256)._reflectionFee (#655) is not in mixedCase
Parameter Dragon.setFees(uint256,uint256,uint256,uint256)._marketingFee (#655) is not in mixedCase
Parameter Dragon.setFees(uint256,uint256,uint256,uint256)._feeDenominator (#655) is not in mixedCase
Parameter Dragon.setFeeReceivers(address,address)._autoLiquidityReceiver (#664) is not in mixedCase
Parameter Dragon.setFeeReceivers(address,address)._marketingFeeReceiver (#664) is not in mixedCase
Parameter Dragon.setSwapBackSettings(bool,uint256)._enabled (#669) is not in mixedCase
Parameter Dragon.setSwapBackSettings(bool,uint256)._amount (#669) is not in mixedCase
Parameter Dragon.setTargetLiquidity(uint256,uint256)._target (#674) is not in mixedCase
Parameter Dragon.setTargetLiquidity(uint256,uint256)._denominator (#674) is not in mixedCase
Parameter Dragon.setDistributionCriteria(uint256,uint256)._minPeriod (#679) is not in mixedCase
Parameter Dragon.setDistributionCriteria(uint256,uint256)._minDistribution (#679) is not in mixedCase
Variable Dragon.MATIC (#358) is not in mixedCase
Variable Dragon.WBNB (#359) is not in mixedCase
Variable Dragon.DEAD (#360) is not in mixedCase
Variable Dragon.ZERO (#361) is not in mixedCase
Constant Dragon._name (#363) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Dragon._symbol (#364) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Dragon._decimals (#365) is not in UPPER_CASE_WITH_UNDERSCORES
Variable Dragon._totalSupply (#367) is not in mixedCase
Variable Dragon._maxTxAmount (#368) is not in mixedCase
Variable Dragon._maxWalletToken (#371) is not in mixedCase
Variable Dragon._balances (#373) is not in mixedCase
Variable Dragon._allowances (#374) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#140) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#141)
Prevent variables from having similar names.
Additional information: link
Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive. Ignore for presale.
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.
Average 30d PancakeSwap volume is less than $100. Token is either dead or inactive.
Average 30d number of PancakeSwap swaps is less than 1. Token is either dead or inactive.
Token is deployed only at one blockchain
Contract has 10% buy tax and 5% sell tax.
Taxes are low but contract ownership is not renounced. Token has a high risk of becoming a honeypot.
Token has only one trading pair
Unable to find website, listings and other project-related information
Token is marked as scam (rug pull, honeypot, phishing, etc.)
Additional information: link
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Telegram account link seems to be invalid
Twitter account has less than 100 followers
Last post in Twitter was more than 180 days ago
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account
Twitter account has few posts