NoCumNoGain Token Logo

NCNG [NoCumNoGain] Token

ALERT: rug pull scam

About NCNG

Listings

Not Found
Token 2 years

Website

Not Found

Description

Not Found

Social

Not Found

Laser Scorebeta Last Audit: 4 February 2022

report
Token seems to be a scam (type: rug pull scam).


Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)

NoCumNoGain.swapBack() (#573-618) sends eth to arbitrary user
Dangerous calls:
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#601)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in NoCumNoGain._transferFrom(address,address,uint256) (#476-524):
External calls:
- swapBack() (#503)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#584-590)
- distributor.deposit{value: amountBNBReflection}() (#600)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#601)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#607-614)
External calls sending eth:
- swapBack() (#503)
- distributor.deposit{value: amountBNBReflection}() (#600)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#601)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#607-614)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#506)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#509)
- amountReceived = takeFee(sender,amount) (#508)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#544)
Apply the check-effects-interactions pattern.

Additional information: link

DividendDistributor.distributeDividend(address) (#306-317) ignores return value by MATIC.transfer(shareholder,amount) (#312)
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.

NoCumNoGain.swapBack().tmpSuccess (#601) is written in both
(tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#601)
tmpSuccess = false (#604)
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 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.

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 NoCumNoGain.swapBack() (#573-618):
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#601)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

Reentrancy in DividendDistributor.distributeDividend(address) (#306-317):
External calls:
- MATIC.transfer(shareholder,amount) (#312)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (#314)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#315)
Reentrancy in DividendDistributor.process(uint256) (#275-299):
External calls:
- distributeDividend(shareholders[currentIndex]) (#291)
- MATIC.transfer(shareholder,amount) (#312)
State variables written after the call(s):
- currentIndex ++ (#296)
Reentrancy in DividendDistributor.setShare(address,uint256) (#239-253):
External calls:
- distributeDividend(shareholder) (#241)
- MATIC.transfer(shareholder,amount) (#312)
State variables written after the call(s):
- shares[shareholder].amount = amount (#251)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#252)
Apply the check-effects-interactions pattern.

Additional information: link

NoCumNoGain.swapBack() (#573-618) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#607-614)
Ensure that all the return values of the function calls are used.

Additional information: link

DividendDistributor.setDistributionCriteria(uint256,uint256) (#234-237) should emit an event for:
- minPeriod = _minPeriod (#235)
- minDistribution = _minDistribution (#236)
NoCumNoGain.setTxLimit(uint256) (#621-623) should emit an event for:
- _maxTxAmount = amount (#622)
NoCumNoGain.setFees(uint256,uint256,uint256,uint256) (#647-654) should emit an event for:
- liquidityFee = _liquidityFee (#648)
- reflectionFee = _reflectionFee (#649)
- marketingFee = _marketingFee (#650)
- totalFee = _liquidityFee.add(_reflectionFee).add(_marketingFee) (#651)
- feeDenominator = _feeDenominator (#652)
NoCumNoGain.setSwapBackSettings(bool,uint256) (#661-664) should emit an event for:
- swapThreshold = _amount (#663)
NoCumNoGain.setTargetLiquidity(uint256,uint256) (#666-669) should emit an event for:
- targetLiquidity = _target (#667)
- targetLiquidityDenominator = _denominator (#668)
Emit an event for critical parameter changes.

Additional information: link

Auth.transferOwnership(address).adr (#115) lacks a zero-check on :
- owner = adr (#116)
NoCumNoGain.setFeeReceivers(address,address)._autoLiquidityReceiver (#656) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#657)
NoCumNoGain.setFeeReceivers(address,address)._marketingFeeReceiver (#656) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#658)
Check that the address is not zero.

Additional information: link

DividendDistributor.distributeDividend(address) (#306-317) has external calls inside a loop: MATIC.transfer(shareholder,amount) (#312)
Favor pull over push strategy for external calls.

Additional information: link

Reentrancy in NoCumNoGain.constructor() (#407-437):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#409)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = uint256(- 1) (#410)
- _balances[msg.sender] = _totalSupply (#435)
- autoLiquidityReceiver = DEAD (#432)
- distributor = new DividendDistributor(address(router)) (#412)
- isDividendExempt[pair] = true (#427)
- isDividendExempt[address(this)] = true (#428)
- isDividendExempt[DEAD] = true (#429)
- isFeeExempt[msg.sender] = true (#414)
- isTimelockExempt[msg.sender] = true (#418)
- isTimelockExempt[DEAD] = true (#419)
- isTimelockExempt[address(this)] = true (#420)
- isTxLimitExempt[msg.sender] = true (#415)
- marketingFeeReceiver = msg.sender (#433)
Reentrancy in DividendDistributor.deposit() (#255-273):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (#262-267)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (#272)
- totalDividends = totalDividends.add(amount) (#271)
Reentrancy in DividendDistributor.distributeDividend(address) (#306-317):
External calls:
- MATIC.transfer(shareholder,amount) (#312)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#313)
Reentrancy in DividendDistributor.setShare(address,uint256) (#239-253):
External calls:
- distributeDividend(shareholder) (#241)
- MATIC.transfer(shareholder,amount) (#312)
State variables written after the call(s):
- addShareholder(shareholder) (#245)
- shareholderIndexes[shareholder] = shareholders.length (#339)
- removeShareholder(shareholder) (#247)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#345)
- addShareholder(shareholder) (#245)
- shareholders.push(shareholder) (#340)
- removeShareholder(shareholder) (#247)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#344)
- shareholders.pop() (#346)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#250)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in NoCumNoGain._transferFrom(address,address,uint256) (#476-524):
External calls:
- swapBack() (#503)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#584-590)
- distributor.deposit{value: amountBNBReflection}() (#600)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#601)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#607-614)
- distributor.setShare(sender,_balances[sender]) (#513)
- distributor.setShare(recipient,_balances[recipient]) (#517)
- distributor.process(distributorGas) (#520)
External calls sending eth:
- swapBack() (#503)
- distributor.deposit{value: amountBNBReflection}() (#600)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#601)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#607-614)
Event emitted after the call(s):
- Transfer(sender,recipient,amountReceived) (#522)
Reentrancy in NoCumNoGain._transferFrom(address,address,uint256) (#476-524):
External calls:
- swapBack() (#503)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#584-590)
- distributor.deposit{value: amountBNBReflection}() (#600)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#601)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#607-614)
External calls sending eth:
- swapBack() (#503)
- distributor.deposit{value: amountBNBReflection}() (#600)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#601)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#607-614)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#545)
- amountReceived = takeFee(sender,amount) (#508)
Reentrancy in NoCumNoGain.constructor() (#407-437):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#409)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#436)
Reentrancy in NoCumNoGain.swapBack() (#573-618):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#584-590)
- distributor.deposit{value: amountBNBReflection}() (#600)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#601)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#607-614)
External calls sending eth:
- distributor.deposit{value: amountBNBReflection}() (#600)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#601)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#607-614)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#616)
Apply the check-effects-interactions pattern.

Additional information: link

DividendDistributor.shouldDistribute(address) (#301-304) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#302-303)
NoCumNoGain._transferFrom(address,address,uint256) (#476-524) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(cooldownTimer[recipient] < block.timestamp,Please wait for cooldown between buys) (#494)
Avoid relying on block.timestamp.

Additional information: link

DividendDistributor.process(uint256) (#275-299) has costly operations inside a loop:
- currentIndex = 0 (#287)
DividendDistributor.distributeDividend(address) (#306-317) has costly operations inside a loop:
- totalDistributed = totalDistributed.add(amount) (#311)
DividendDistributor.process(uint256) (#275-299) has costly operations inside a loop:
- currentIndex ++ (#296)
Use a local variable to hold the loop computation result.

Additional information: link

NoCumNoGain._maxTxAmount (#363) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 1 / 100
NoCumNoGain._maxWalletToken (#366) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 3) / 100
NoCumNoGain.swapThreshold (#403) 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

Function IDEXRouter.WETH() (#130) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minPeriod (#234) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minDistribution (#234) is not in mixedCase
Variable DividendDistributor._token (#186) is not in mixedCase
Variable DividendDistributor.MATIC (#194) is not in mixedCase
Variable DividendDistributor.WBNB (#195) is not in mixedCase
Parameter NoCumNoGain.cooldownEnabled(bool,uint8)._status (#566) is not in mixedCase
Parameter NoCumNoGain.cooldownEnabled(bool,uint8)._interval (#566) is not in mixedCase
Parameter NoCumNoGain.setFees(uint256,uint256,uint256,uint256)._liquidityFee (#647) is not in mixedCase
Parameter NoCumNoGain.setFees(uint256,uint256,uint256,uint256)._reflectionFee (#647) is not in mixedCase
Parameter NoCumNoGain.setFees(uint256,uint256,uint256,uint256)._marketingFee (#647) is not in mixedCase
Parameter NoCumNoGain.setFees(uint256,uint256,uint256,uint256)._feeDenominator (#647) is not in mixedCase
Parameter NoCumNoGain.setFeeReceivers(address,address)._autoLiquidityReceiver (#656) is not in mixedCase
Parameter NoCumNoGain.setFeeReceivers(address,address)._marketingFeeReceiver (#656) is not in mixedCase
Parameter NoCumNoGain.setSwapBackSettings(bool,uint256)._enabled (#661) is not in mixedCase
Parameter NoCumNoGain.setSwapBackSettings(bool,uint256)._amount (#661) is not in mixedCase
Parameter NoCumNoGain.setTargetLiquidity(uint256,uint256)._target (#666) is not in mixedCase
Parameter NoCumNoGain.setTargetLiquidity(uint256,uint256)._denominator (#666) is not in mixedCase
Parameter NoCumNoGain.setDistributionCriteria(uint256,uint256)._minPeriod (#671) is not in mixedCase
Parameter NoCumNoGain.setDistributionCriteria(uint256,uint256)._minDistribution (#671) is not in mixedCase
Variable NoCumNoGain.MATIC (#353) is not in mixedCase
Variable NoCumNoGain.WBNB (#354) is not in mixedCase
Variable NoCumNoGain.DEAD (#355) is not in mixedCase
Variable NoCumNoGain.ZERO (#356) is not in mixedCase
Constant NoCumNoGain._name (#358) is not in UPPER_CASE_WITH_UNDERSCORES
Constant NoCumNoGain._symbol (#359) is not in UPPER_CASE_WITH_UNDERSCORES
Constant NoCumNoGain._decimals (#360) is not in UPPER_CASE_WITH_UNDERSCORES
Variable NoCumNoGain._totalSupply (#362) is not in mixedCase
Variable NoCumNoGain._maxTxAmount (#363) is not in mixedCase
Variable NoCumNoGain._maxWalletToken (#366) is not in mixedCase
Variable NoCumNoGain._balances (#368) is not in mixedCase
Variable NoCumNoGain._allowances (#369) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#135) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#136)
Prevent variables from having similar names.

Additional information: link

NoCumNoGain.slitherConstructorVariables() (#350-695) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#355)
NoCumNoGain.slitherConstructorVariables() (#350-695) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#356)
NoCumNoGain.slitherConstructorVariables() (#350-695) uses literals with too many digits:
- distributorGas = 500000 (#395)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

NoCumNoGain.MATIC (#353) is never used in NoCumNoGain (#350-695)
Remove unused state variables.

Additional information: link

DividendDistributor.WBNB (#195) should be constant
DividendDistributor.dividendsPerShareAccuracyFactor (#208) should be constant
NoCumNoGain.DEAD (#355) should be constant
NoCumNoGain.MATIC (#353) should be constant
NoCumNoGain.WBNB (#354) should be constant
NoCumNoGain.ZERO (#356) should be constant
NoCumNoGain._totalSupply (#362) should be constant
NoCumNoGain.launchedAt (#391) should be constant
NoCumNoGain.tradingOpen (#392) 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)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#115-119)
cooldownEnabled(bool,uint8) should be declared external:
- NoCumNoGain.cooldownEnabled(bool,uint8) (#566-569)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


Token seems to be untradeable: there is no PancakeSwap trading pair and no trading volumes. Ignore for presale.


Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive. Ignore for presale.


Unable to find Telegram and Twitter accounts


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

Price for NCNG