Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
XDRIP.swapBack() (#577-623) sends eth to arbitrary user
Dangerous calls:
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#606)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Too many vulnerabilities (Unchecked transfer, Reentrancy vulnerability, etc.). High risk of a scam. DYOR & manual audit are advised.
Reentrancy in XDRIP._transferFrom(address,address,uint256) (#468-516):
External calls:
- swapBack() (#495)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#588-594)
- distributor.deposit{value: amountBNBReflection}() (#605)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#606)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#607)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#613-620)
External calls sending eth:
- swapBack() (#495)
- distributor.deposit{value: amountBNBReflection}() (#605)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#606)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#607)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#613-620)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#498)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#501)
- amountReceived = takeFee(sender,amount,(recipient == pair)) (#500)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#539)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.distributeDividend(address) (#287-298) ignores return value by RWRD.transfer(shareholder,amount) (#293)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Contract ownership is not renounced (belongs to a wallet)
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.
XDRIP.swapBack().tmpSuccess (#606) is written in both
(tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#606)
(tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#607)
XDRIP.swapBack().tmpSuccess (#606) is written in both
(tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#607)
tmpSuccess = false (#610)
Fix or remove the writes.
Additional information: link
DividendDistributor.process(uint256) (#256-280) has costly operations inside a loop:
- currentIndex = 0 (#268)
DividendDistributor.distributeDividend(address) (#287-298) has costly operations inside a loop:
- totalDistributed = totalDistributed.add(amount) (#292)
DividendDistributor.process(uint256) (#256-280) has costly operations inside a loop:
- currentIndex ++ (#277)
Use a local variable to hold the loop computation result.
Additional information: link
XDRIP._maxTxAmount (#345) is set pre-construction with a non-constant function or state variable:
- _totalSupply
XDRIP._maxWalletToken (#346) is set pre-construction with a non-constant function or state variable:
- _totalSupply
XDRIP.totalFee (#364) is set pre-construction with a non-constant function or state variable:
- marketingFee + reflectionFee + liquidityFee + devFee
XDRIP.swapThreshold (#389) 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 XDRIP.swapBack() (#577-623):
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#606)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#607)
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() (#112) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minPeriod (#215) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minDistribution (#215) is not in mixedCase
Variable DividendDistributor._token (#168) is not in mixedCase
Variable DividendDistributor.RWRD (#176) is not in mixedCase
Variable DividendDistributor.WBNB (#177) is not in mixedCase
Function XDRIP.setMaxWalletPercent_base1000(uint256) (#456-458) is not in mixedCase
Parameter XDRIP.setMaxWalletPercent_base1000(uint256).maxWallPercent_base1000 (#456) is not in mixedCase
Function XDRIP.setMaxTxPercent_base1000(uint256) (#459-461) is not in mixedCase
Parameter XDRIP.setMaxTxPercent_base1000(uint256).maxTXPercentage_base1000 (#459) is not in mixedCase
Function XDRIP.clearStuckBalance_sender(uint256) (#557-560) is not in mixedCase
Function XDRIP.set_sell_multiplier(uint256) (#562-564) is not in mixedCase
Parameter XDRIP.set_sell_multiplier(uint256).Multiplier (#562) is not in mixedCase
Parameter XDRIP.tradingStatus(bool)._status (#567) is not in mixedCase
Parameter XDRIP.cooldownEnabled(bool,uint8)._status (#572) is not in mixedCase
Parameter XDRIP.cooldownEnabled(bool,uint8)._interval (#572) is not in mixedCase
Function XDRIP.enable_blacklist(bool) (#636-638) is not in mixedCase
Parameter XDRIP.enable_blacklist(bool)._status (#636) is not in mixedCase
Function XDRIP.manage_blacklist(address[],bool) (#640-644) is not in mixedCase
Parameter XDRIP.setFees(uint256,uint256,uint256,uint256)._liquidityFee (#659) is not in mixedCase
Parameter XDRIP.setFees(uint256,uint256,uint256,uint256)._reflectionFee (#659) is not in mixedCase
Parameter XDRIP.setFees(uint256,uint256,uint256,uint256)._marketingFee (#659) is not in mixedCase
Parameter XDRIP.setFees(uint256,uint256,uint256,uint256)._feeDenominator (#659) is not in mixedCase
Parameter XDRIP.setFeeReceivers(address,address)._autoLiquidityReceiver (#669) is not in mixedCase
Parameter XDRIP.setFeeReceivers(address,address)._marketingFeeReceiver (#669) is not in mixedCase
Parameter XDRIP.setSwapBackSettings(bool,uint256)._enabled (#675) is not in mixedCase
Parameter XDRIP.setSwapBackSettings(bool,uint256)._amount (#675) is not in mixedCase
Parameter XDRIP.setTargetLiquidity(uint256,uint256)._target (#680) is not in mixedCase
Parameter XDRIP.setTargetLiquidity(uint256,uint256)._denominator (#680) is not in mixedCase
Parameter XDRIP.setDistributionCriteria(uint256,uint256)._minPeriod (#685) is not in mixedCase
Parameter XDRIP.setDistributionCriteria(uint256,uint256)._minDistribution (#685) is not in mixedCase
Function XDRIP.multiTransfer_fixed(address,address[],uint256) (#735-754) is not in mixedCase
Variable XDRIP.WBNB (#334) is not in mixedCase
Variable XDRIP.DEAD (#335) is not in mixedCase
Variable XDRIP.ZERO (#336) is not in mixedCase
Variable XDRIP.DEV (#337) is not in mixedCase
Constant XDRIP._name (#339) is not in UPPER_CASE_WITH_UNDERSCORES
Constant XDRIP._symbol (#340) is not in UPPER_CASE_WITH_UNDERSCORES
Constant XDRIP._decimals (#341) is not in UPPER_CASE_WITH_UNDERSCORES
Variable XDRIP._totalSupply (#343) is not in mixedCase
Variable XDRIP._maxTxAmount (#345) is not in mixedCase
Variable XDRIP._maxWalletToken (#346) is not in mixedCase
Variable XDRIP._balances (#348) is not in mixedCase
Variable XDRIP._allowances (#349) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#117) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#118)
Prevent variables from having similar names.
Additional information: link
XDRIP.slitherConstructorVariables() (#331-759) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#335)
XDRIP.slitherConstructorVariables() (#331-759) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#336)
XDRIP.slitherConstructorVariables() (#331-759) uses literals with too many digits:
- _totalSupply = 1000000000 * 10 ** 6 * 10 ** _decimals (#343)
XDRIP.slitherConstructorVariables() (#331-759) uses literals with too many digits:
- distributorGas = 500000 (#382)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
DividendDistributor.WBNB (#177) should be constant
DividendDistributor.dividendsPerShareAccuracyFactor (#190) should be constant
XDRIP.DEAD (#335) should be constant
XDRIP.DEV (#337) should be constant
XDRIP.WBNB (#334) should be constant
XDRIP.ZERO (#336) should be constant
XDRIP._totalSupply (#343) 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) (#81-83)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#85-87)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#97-101)
tradingStatus(bool) should be declared external:
- XDRIP.tradingStatus(bool) (#567-569)
cooldownEnabled(bool,uint8) should be declared external:
- XDRIP.cooldownEnabled(bool,uint8) (#572-575)
enable_blacklist(bool) should be declared external:
- XDRIP.enable_blacklist(bool) (#636-638)
manage_blacklist(address[],bool) should be declared external:
- XDRIP.manage_blacklist(address[],bool) (#640-644)
Use the external attribute for functions never called from the contract.
Additional information: link
DividendDistributor.shouldDistribute(address) (#282-285) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#283-284)
XDRIP._transferFrom(address,address,uint256) (#468-516) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(cooldownTimer[recipient] < block.timestamp,Please wait for 1min between two buys) (#488)
Avoid relying on block.timestamp.
Additional information: link
Reentrancy in DividendDistributor.distributeDividend(address) (#287-298):
External calls:
- RWRD.transfer(shareholder,amount) (#293)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (#295)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#296)
Reentrancy in DividendDistributor.process(uint256) (#256-280):
External calls:
- distributeDividend(shareholders[currentIndex]) (#272)
- RWRD.transfer(shareholder,amount) (#293)
State variables written after the call(s):
- currentIndex ++ (#277)
Reentrancy in DividendDistributor.setShare(address,uint256) (#220-234):
External calls:
- distributeDividend(shareholder) (#222)
- RWRD.transfer(shareholder,amount) (#293)
State variables written after the call(s):
- shares[shareholder].amount = amount (#232)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#233)
Apply the check-effects-interactions pattern.
Additional information: link
XDRIP.manage_blacklist(address[],bool).i (#641) 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
XDRIP.swapBack() (#577-623) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#613-620)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendDistributor.setDistributionCriteria(uint256,uint256) (#215-218) should emit an event for:
- minPeriod = _minPeriod (#216)
- minDistribution = _minDistribution (#217)
XDRIP.setMaxTxPercent_base1000(uint256) (#459-461) should emit an event for:
- _maxTxAmount = (_totalSupply * maxTXPercentage_base1000) / 1000 (#460)
XDRIP.setTxLimit(uint256) (#463-465) should emit an event for:
- _maxTxAmount = amount (#464)
XDRIP.set_sell_multiplier(uint256) (#562-564) should emit an event for:
- sellMultiplier = Multiplier (#563)
XDRIP.setFees(uint256,uint256,uint256,uint256) (#659-667) should emit an event for:
- liquidityFee = _liquidityFee (#660)
- reflectionFee = _reflectionFee (#661)
- marketingFee = _marketingFee (#662)
- totalFee = _liquidityFee.add(_reflectionFee).add(_marketingFee).add(devFee) (#664)
- feeDenominator = _feeDenominator (#665)
XDRIP.setSwapBackSettings(bool,uint256) (#675-678) should emit an event for:
- swapThreshold = _amount (#677)
XDRIP.setTargetLiquidity(uint256,uint256) (#680-683) should emit an event for:
- targetLiquidity = _target (#681)
- targetLiquidityDenominator = _denominator (#682)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#97) lacks a zero-check on :
- owner = adr (#98)
XDRIP.setFeeReceivers(address,address)._autoLiquidityReceiver (#669) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#670)
XDRIP.setFeeReceivers(address,address)._marketingFeeReceiver (#669) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#671)
Check that the address is not zero.
Additional information: link
DividendDistributor.distributeDividend(address) (#287-298) has external calls inside a loop: RWRD.transfer(shareholder,amount) (#293)
XDRIP.multiTransfer(address,address[],uint256[]) (#709-733) has external calls inside a loop: distributor.setShare(addresses[i_scope_0],_balances[addresses[i_scope_0]]) (#725)
XDRIP.multiTransfer_fixed(address,address[],uint256) (#735-754) has external calls inside a loop: distributor.setShare(addresses[i],_balances[addresses[i]]) (#746)
Favor pull over push strategy for external calls.
Additional information: link
Reentrancy in XDRIP.constructor() (#393-422):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#395)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = uint256(- 1) (#396)
- _balances[msg.sender] = _totalSupply (#420)
- autoLiquidityReceiver = msg.sender (#416)
- devFeeReceiver = address(DEV) (#418)
- distributor = new DividendDistributor(address(router)) (#398)
- isDividendExempt[pair] = true (#411)
- isDividendExempt[address(this)] = true (#412)
- isDividendExempt[address(DEV)] = false (#413)
- isDividendExempt[DEAD] = true (#414)
- isFeeExempt[msg.sender] = true (#400)
- isFeeExempt[address(DEV)] = true (#401)
- isTimelockExempt[msg.sender] = true (#405)
- isTimelockExempt[address(DEV)] = true (#406)
- isTimelockExempt[DEAD] = true (#407)
- isTimelockExempt[address(this)] = true (#408)
- isTimelockExempt[address(DEV)] = true (#409)
- isTxLimitExempt[msg.sender] = true (#402)
- isTxLimitExempt[address(DEV)] = true (#403)
- marketingFeeReceiver = msg.sender (#417)
Reentrancy in DividendDistributor.deposit() (#236-254):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (#243-248)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (#253)
- totalDividends = totalDividends.add(amount) (#252)
Reentrancy in DividendDistributor.distributeDividend(address) (#287-298):
External calls:
- RWRD.transfer(shareholder,amount) (#293)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#294)
Reentrancy in DividendDistributor.setShare(address,uint256) (#220-234):
External calls:
- distributeDividend(shareholder) (#222)
- RWRD.transfer(shareholder,amount) (#293)
State variables written after the call(s):
- addShareholder(shareholder) (#226)
- shareholderIndexes[shareholder] = shareholders.length (#320)
- removeShareholder(shareholder) (#228)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#326)
- addShareholder(shareholder) (#226)
- shareholders.push(shareholder) (#321)
- removeShareholder(shareholder) (#228)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#325)
- shareholders.pop() (#327)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#231)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in XDRIP._transferFrom(address,address,uint256) (#468-516):
External calls:
- swapBack() (#495)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#588-594)
- distributor.deposit{value: amountBNBReflection}() (#605)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#606)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#607)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#613-620)
- distributor.setShare(sender,_balances[sender]) (#505)
- distributor.setShare(recipient,_balances[recipient]) (#509)
- distributor.process(distributorGas) (#512)
External calls sending eth:
- swapBack() (#495)
- distributor.deposit{value: amountBNBReflection}() (#605)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#606)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#607)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#613-620)
Event emitted after the call(s):
- Transfer(sender,recipient,amountReceived) (#514)
Reentrancy in XDRIP._transferFrom(address,address,uint256) (#468-516):
External calls:
- swapBack() (#495)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#588-594)
- distributor.deposit{value: amountBNBReflection}() (#605)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#606)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#607)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#613-620)
External calls sending eth:
- swapBack() (#495)
- distributor.deposit{value: amountBNBReflection}() (#605)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#606)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#607)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#613-620)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#540)
- amountReceived = takeFee(sender,amount,(recipient == pair)) (#500)
Reentrancy in XDRIP.constructor() (#393-422):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#395)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#421)
Reentrancy in XDRIP.swapBack() (#577-623):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#588-594)
- distributor.deposit{value: amountBNBReflection}() (#605)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#606)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#607)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#613-620)
External calls sending eth:
- distributor.deposit{value: amountBNBReflection}() (#605)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#606)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#607)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#613-620)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#621)
Apply the check-effects-interactions pattern.
Additional information: link
Unable to find website, listings and other project-related information
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Unable to find Telegram and Twitter accounts