Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Nudecoinproject.swapBack() (#609-653) sends eth to arbitrary user
Dangerous calls:
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#637)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in Nudecoinproject._transferFrom(address,address,uint256) (#499-557):
External calls:
- swapBack() (#530)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#620-626)
- distributor.deposit{value: amountBNBReflection}() (#636)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#637)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#643-650)
External calls sending eth:
- swapBack() (#530)
- distributor.deposit{value: amountBNBReflection}() (#636)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#637)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#643-650)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#539)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#542)
- amountReceived = takeFee(sender,amount) (#541)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#577)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.distributeDividend(address) (#331-342) ignores return value by BUSD.transfer(shareholder,amount) (#337)
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.
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.
Nudecoinproject.swapBack().tmpSuccess (#637) is written in both
(tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#637)
tmpSuccess = false (#640)
Fix or remove the writes.
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 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 DividendDistributor.distributeDividend(address) (#331-342):
External calls:
- BUSD.transfer(shareholder,amount) (#337)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (#339)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#340)
Reentrancy in DividendDistributor.process(uint256) (#300-324):
External calls:
- distributeDividend(shareholders[currentIndex]) (#316)
- BUSD.transfer(shareholder,amount) (#337)
State variables written after the call(s):
- currentIndex ++ (#321)
Reentrancy in DividendDistributor.setShare(address,uint256) (#264-278):
External calls:
- distributeDividend(shareholder) (#266)
- BUSD.transfer(shareholder,amount) (#337)
State variables written after the call(s):
- shares[shareholder].amount = amount (#276)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#277)
Apply the check-effects-interactions pattern.
Additional information: link
Nudecoinproject.swapBack() (#609-653) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#643-650)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendDistributor.setDistributionCriteria(uint256,uint256) (#259-262) should emit an event for:
- minPeriod = _minPeriod (#260)
- minDistribution = _minDistribution (#261)
Nudecoinproject.setTxLimit(uint256) (#665-667) should emit an event for:
- _maxTxAmount = amount (#666)
Nudecoinproject.setFees(uint256,uint256,uint256,uint256) (#691-698) should emit an event for:
- liquidityFee = _liquidityFee (#692)
- reflectionFee = _reflectionFee (#693)
- marketingFee = _marketingFee (#694)
- totalFee = _liquidityFee.add(_reflectionFee).add(_marketingFee) (#695)
- feeDenominator = _feeDenominator (#696)
Nudecoinproject.setSwapBackSettings(bool,uint256) (#705-708) should emit an event for:
- swapThreshold = _amount (#707)
Nudecoinproject.setTargetLiquidity(uint256,uint256) (#710-713) should emit an event for:
- targetLiquidity = _target (#711)
- targetLiquidityDenominator = _denominator (#712)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#140) lacks a zero-check on :
- owner = adr (#141)
Nudecoinproject.setFeeReceivers(address,address)._autoLiquidityReceiver (#700) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#701)
Nudecoinproject.setFeeReceivers(address,address)._marketingFeeReceiver (#700) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#702)
Check that the address is not zero.
Additional information: link
Reentrancy in Nudecoinproject._transferFrom(address,address,uint256) (#499-557):
External calls:
- swapBack() (#530)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#620-626)
- distributor.deposit{value: amountBNBReflection}() (#636)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#637)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#643-650)
External calls sending eth:
- swapBack() (#530)
- distributor.deposit{value: amountBNBReflection}() (#636)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#637)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#643-650)
State variables written after the call(s):
- launch() (#535)
- launchedAt = block.number (#662)
Reentrancy in Nudecoinproject.constructor() (#431-457):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#433)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = uint256(- 1) (#434)
- _balances[msg.sender] = _totalSupply (#455)
- autoLiquidityReceiver = DEAD (#452)
- distributor = new DividendDistributor(address(router)) (#436)
- isDividendExempt[pair] = true (#447)
- isDividendExempt[address(this)] = true (#448)
- isDividendExempt[DEAD] = true (#449)
- isFeeExempt[msg.sender] = true (#438)
- isTimelockExempt[msg.sender] = true (#442)
- isTimelockExempt[DEAD] = true (#443)
- isTimelockExempt[address(this)] = true (#444)
- isTxLimitExempt[msg.sender] = true (#439)
- marketingFeeReceiver = msg.sender (#453)
Reentrancy in DividendDistributor.deposit() (#280-298):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (#287-292)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (#297)
- totalDividends = totalDividends.add(amount) (#296)
Reentrancy in DividendDistributor.distributeDividend(address) (#331-342):
External calls:
- BUSD.transfer(shareholder,amount) (#337)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#338)
Reentrancy in DividendDistributor.setShare(address,uint256) (#264-278):
External calls:
- distributeDividend(shareholder) (#266)
- BUSD.transfer(shareholder,amount) (#337)
State variables written after the call(s):
- addShareholder(shareholder) (#270)
- shareholderIndexes[shareholder] = shareholders.length (#364)
- removeShareholder(shareholder) (#272)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#370)
- addShareholder(shareholder) (#270)
- shareholders.push(shareholder) (#365)
- removeShareholder(shareholder) (#272)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#369)
- shareholders.pop() (#371)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#275)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Nudecoinproject._transferFrom(address,address,uint256) (#499-557):
External calls:
- swapBack() (#530)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#620-626)
- distributor.deposit{value: amountBNBReflection}() (#636)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#637)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#643-650)
- distributor.setShare(sender,_balances[sender]) (#546)
- distributor.setShare(recipient,_balances[recipient]) (#550)
- distributor.process(distributorGas) (#553)
External calls sending eth:
- swapBack() (#530)
- distributor.deposit{value: amountBNBReflection}() (#636)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#637)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#643-650)
Event emitted after the call(s):
- Transfer(sender,recipient,amountReceived) (#555)
Reentrancy in Nudecoinproject._transferFrom(address,address,uint256) (#499-557):
External calls:
- swapBack() (#530)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#620-626)
- distributor.deposit{value: amountBNBReflection}() (#636)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#637)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#643-650)
External calls sending eth:
- swapBack() (#530)
- distributor.deposit{value: amountBNBReflection}() (#636)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#637)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#643-650)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#578)
- amountReceived = takeFee(sender,amount) (#541)
Reentrancy in Nudecoinproject.constructor() (#431-457):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#433)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#456)
Reentrancy in Nudecoinproject.swapBack() (#609-653):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#620-626)
- distributor.deposit{value: amountBNBReflection}() (#636)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#637)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#643-650)
External calls sending eth:
- distributor.deposit{value: amountBNBReflection}() (#636)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#637)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#643-650)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#651)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.shouldDistribute(address) (#326-329) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#327-328)
Nudecoinproject._transferFrom(address,address,uint256) (#499-557) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(cooldownTimer[recipient] < block.timestamp,Please wait for cooldown between buys) (#521)
Avoid relying on block.timestamp.
Additional information: link
DividendDistributor.process(uint256) (#300-324) has costly operations inside a loop:
- currentIndex = 0 (#312)
DividendDistributor.distributeDividend(address) (#331-342) has costly operations inside a loop:
- totalDistributed = totalDistributed.add(amount) (#336)
DividendDistributor.process(uint256) (#300-324) has costly operations inside a loop:
- currentIndex ++ (#321)
Use a local variable to hold the loop computation result.
Additional information: link
Nudecoinproject._maxTxAmount (#388) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 100 / 100
Nudecoinproject._maxWalletToken (#390) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 1) / 100
Nudecoinproject.swapThreshold (#427) 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 (#22) 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 Nudecoinproject.swapBack() (#609-653):
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#637)
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() (#155) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minPeriod (#259) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minDistribution (#259) is not in mixedCase
Variable DividendDistributor._token (#211) is not in mixedCase
Variable DividendDistributor.BUSD (#219) is not in mixedCase
Variable DividendDistributor.WBNB (#220) is not in mixedCase
Parameter Nudecoinproject.tradingStatus(bool)._status (#597) is not in mixedCase
Parameter Nudecoinproject.cooldownEnabled(bool,uint8)._status (#602) is not in mixedCase
Parameter Nudecoinproject.cooldownEnabled(bool,uint8)._interval (#602) is not in mixedCase
Parameter Nudecoinproject.setFees(uint256,uint256,uint256,uint256)._liquidityFee (#691) is not in mixedCase
Parameter Nudecoinproject.setFees(uint256,uint256,uint256,uint256)._reflectionFee (#691) is not in mixedCase
Parameter Nudecoinproject.setFees(uint256,uint256,uint256,uint256)._marketingFee (#691) is not in mixedCase
Parameter Nudecoinproject.setFees(uint256,uint256,uint256,uint256)._feeDenominator (#691) is not in mixedCase
Parameter Nudecoinproject.setFeeReceivers(address,address)._autoLiquidityReceiver (#700) is not in mixedCase
Parameter Nudecoinproject.setFeeReceivers(address,address)._marketingFeeReceiver (#700) is not in mixedCase
Parameter Nudecoinproject.setSwapBackSettings(bool,uint256)._enabled (#705) is not in mixedCase
Parameter Nudecoinproject.setSwapBackSettings(bool,uint256)._amount (#705) is not in mixedCase
Parameter Nudecoinproject.setTargetLiquidity(uint256,uint256)._target (#710) is not in mixedCase
Parameter Nudecoinproject.setTargetLiquidity(uint256,uint256)._denominator (#710) is not in mixedCase
Parameter Nudecoinproject.setDistributionCriteria(uint256,uint256)._minPeriod (#715) is not in mixedCase
Parameter Nudecoinproject.setDistributionCriteria(uint256,uint256)._minDistribution (#715) is not in mixedCase
Variable Nudecoinproject.BUSD (#378) is not in mixedCase
Variable Nudecoinproject.WBNB (#379) is not in mixedCase
Variable Nudecoinproject.DEAD (#380) is not in mixedCase
Variable Nudecoinproject.ZERO (#381) is not in mixedCase
Constant Nudecoinproject._name (#383) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Nudecoinproject._symbol (#384) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Nudecoinproject._decimals (#385) is not in UPPER_CASE_WITH_UNDERSCORES
Variable Nudecoinproject._totalSupply (#387) is not in mixedCase
Variable Nudecoinproject._maxTxAmount (#388) is not in mixedCase
Variable Nudecoinproject._maxWalletToken (#390) is not in mixedCase
Variable Nudecoinproject._balances (#392) is not in mixedCase
Variable Nudecoinproject._allowances (#393) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#160) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#161)
Prevent variables from having similar names.
Additional information: link
Nudecoinproject.slitherConstructorVariables() (#375-743) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#380)
Nudecoinproject.slitherConstructorVariables() (#375-743) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#381)
Nudecoinproject.slitherConstructorVariables() (#375-743) uses literals with too many digits:
- distributorGas = 500000 (#419)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Nudecoinproject.BUSD (#378) is never used in Nudecoinproject (#375-743)
Remove unused state variables.
Additional information: link
DividendDistributor.WBNB (#220) should be constant
DividendDistributor.dividendsPerShareAccuracyFactor (#233) should be constant
Nudecoinproject.BUSD (#378) should be constant
Nudecoinproject.DEAD (#380) should be constant
Nudecoinproject.WBNB (#379) should be constant
Nudecoinproject.ZERO (#381) should be constant
Nudecoinproject._totalSupply (#387) 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) (#112-114)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#119-121)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#140-144)
tradingStatus(bool) should be declared external:
- Nudecoinproject.tradingStatus(bool) (#597-599)
cooldownEnabled(bool,uint8) should be declared external:
- Nudecoinproject.cooldownEnabled(bool,uint8) (#602-605)
Use the external attribute for functions never called from the contract.
Additional information: link
DividendDistributor.distributeDividend(address) (#331-342) has external calls inside a loop: BUSD.transfer(shareholder,amount) (#337)
Favor pull over push strategy for external calls.
Additional information: link
Unable to find website, listings and other project-related information
Young tokens have high risks of price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Unable to find Telegram and Twitter accounts