Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
MarshallRoganInu.swapBack() (#579-623) sends eth to arbitrary user
Dangerous calls:
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#607)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in MarshallRoganInu._transferFrom(address,address,uint256) (#485-530):
External calls:
- swapBack() (#509)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#590-596)
- distributor.deposit{value: amountBNBReflection}() (#606)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#607)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#613-620)
External calls sending eth:
- swapBack() (#509)
- distributor.deposit{value: amountBNBReflection}() (#606)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#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) (#512)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#515)
- amountReceived = takeFee(sender,amount) (#514)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#550)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.distributeDividend(address) (#311-322) ignores return value by ADA.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.
MarshallRoganInu.swapBack().tmpSuccess (#607) is written in both
(tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#607)
tmpSuccess = false (#610)
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.
Contract ticker (MarshallRoganInu) has length of 16 chars.
Not a direct threat, but may indicate unreliable intentions of developer.
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.
MarshallRoganInu._maxTxAmount (#368) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 4) / 100
MarshallRoganInu._maxWalletToken (#371) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 4) / 100
MarshallRoganInu.swapThreshold (#409) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 20 / 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 (#4) 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
Reentrancy in DividendDistributor.distributeDividend(address) (#311-322):
External calls:
- ADA.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)
- ADA.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)
- ADA.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
MarshallRoganInu.swapBack() (#579-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) (#239-242) should emit an event for:
- minPeriod = _minPeriod (#240)
- minDistribution = _minDistribution (#241)
MarshallRoganInu.setTxLimit(uint256) (#625-627) should emit an event for:
- _maxTxAmount = amount (#626)
MarshallRoganInu.setFees(uint256,uint256,uint256,uint256) (#651-658) should emit an event for:
- liquidityFee = _liquidityFee (#652)
- reflectionFee = _reflectionFee (#653)
- marketingFee = _marketingFee (#654)
- totalFee = _liquidityFee.add(_reflectionFee).add(_marketingFee) (#655)
- feeDenominator = _feeDenominator (#656)
MarshallRoganInu.setTargetLiquidity(uint256,uint256) (#670-673) should emit an event for:
- targetLiquidity = _target (#671)
- targetLiquidityDenominator = _denominator (#672)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#120) lacks a zero-check on :
- owner = adr (#121)
MarshallRoganInu.setFeeReceivers(address,address)._autoLiquidityReceiver (#660) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#661)
MarshallRoganInu.setFeeReceivers(address,address)._marketingFeeReceiver (#660) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#662)
Check that the address is not zero.
Additional information: link
DividendDistributor.distributeDividend(address) (#311-322) has external calls inside a loop: ADA.transfer(shareholder,amount) (#317)
MarshallRoganInu.airdrop(address,address[],uint256[]) (#704-727) has external calls inside a loop: distributor.setShare(addresses[i_scope_0],_balances[addresses[i_scope_0]]) (#719)
Favor pull over push strategy for external calls.
Additional information: link
Reentrancy in MarshallRoganInu.constructor() (#413-444):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#415)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = uint256(- 1) (#416)
- _balances[msg.sender] = _totalSupply (#442)
- autoLiquidityReceiver = DEAD (#439)
- distributor = new DividendDistributor(address(router)) (#418)
- isDividendExempt[pair] = true (#434)
- isDividendExempt[address(this)] = true (#435)
- isDividendExempt[DEAD] = true (#436)
- isFeeExempt[msg.sender] = true (#420)
- isTimelockExempt[msg.sender] = true (#425)
- isTimelockExempt[DEAD] = true (#426)
- isTimelockExempt[address(this)] = true (#427)
- isTxLimitExempt[msg.sender] = true (#421)
- isTxLimitExempt[DEAD] = true (#422)
- marketingFeeReceiver = msg.sender (#440)
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:
- ADA.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)
- ADA.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 MarshallRoganInu._transferFrom(address,address,uint256) (#485-530):
External calls:
- swapBack() (#509)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#590-596)
- distributor.deposit{value: amountBNBReflection}() (#606)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#607)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#613-620)
- distributor.setShare(sender,_balances[sender]) (#519)
- distributor.setShare(recipient,_balances[recipient]) (#523)
- distributor.process(distributorGas) (#526)
External calls sending eth:
- swapBack() (#509)
- distributor.deposit{value: amountBNBReflection}() (#606)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#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) (#528)
Reentrancy in MarshallRoganInu._transferFrom(address,address,uint256) (#485-530):
External calls:
- swapBack() (#509)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#590-596)
- distributor.deposit{value: amountBNBReflection}() (#606)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#607)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#613-620)
External calls sending eth:
- swapBack() (#509)
- distributor.deposit{value: amountBNBReflection}() (#606)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#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) (#551)
- amountReceived = takeFee(sender,amount) (#514)
Reentrancy in MarshallRoganInu.constructor() (#413-444):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#415)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#443)
Reentrancy in MarshallRoganInu.swapBack() (#579-623):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#590-596)
- distributor.deposit{value: amountBNBReflection}() (#606)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#607)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#613-620)
External calls sending eth:
- distributor.deposit{value: amountBNBReflection}() (#606)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#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
DividendDistributor.shouldDistribute(address) (#306-309) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#307-308)
MarshallRoganInu._transferFrom(address,address,uint256) (#485-530) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(cooldownTimer[recipient] < block.timestamp,Please wait for cooldown between buys) (#501)
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
Low level call in MarshallRoganInu.swapBack() (#579-623):
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#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() (#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.ADA (#199) is not in mixedCase
Variable DividendDistributor.WBNB (#200) is not in mixedCase
Parameter MarshallRoganInu.tradingStatus(bool)._status (#569) is not in mixedCase
Parameter MarshallRoganInu.cooldownEnabled(bool,uint8)._status (#574) is not in mixedCase
Parameter MarshallRoganInu.cooldownEnabled(bool,uint8)._interval (#574) is not in mixedCase
Parameter MarshallRoganInu.setFees(uint256,uint256,uint256,uint256)._liquidityFee (#651) is not in mixedCase
Parameter MarshallRoganInu.setFees(uint256,uint256,uint256,uint256)._reflectionFee (#651) is not in mixedCase
Parameter MarshallRoganInu.setFees(uint256,uint256,uint256,uint256)._marketingFee (#651) is not in mixedCase
Parameter MarshallRoganInu.setFees(uint256,uint256,uint256,uint256)._feeDenominator (#651) is not in mixedCase
Parameter MarshallRoganInu.setFeeReceivers(address,address)._autoLiquidityReceiver (#660) is not in mixedCase
Parameter MarshallRoganInu.setFeeReceivers(address,address)._marketingFeeReceiver (#660) is not in mixedCase
Parameter MarshallRoganInu.setSwapBackSettings(bool,uint256)._enabled (#665) is not in mixedCase
Parameter MarshallRoganInu.setSwapBackSettings(bool,uint256)._amount (#665) is not in mixedCase
Parameter MarshallRoganInu.setTargetLiquidity(uint256,uint256)._target (#670) is not in mixedCase
Parameter MarshallRoganInu.setTargetLiquidity(uint256,uint256)._denominator (#670) is not in mixedCase
Parameter MarshallRoganInu.setDistributionCriteria(uint256,uint256)._minPeriod (#681) is not in mixedCase
Parameter MarshallRoganInu.setDistributionCriteria(uint256,uint256)._minDistribution (#681) is not in mixedCase
Variable MarshallRoganInu.ADA (#358) is not in mixedCase
Variable MarshallRoganInu.WBNB (#359) is not in mixedCase
Variable MarshallRoganInu.DEAD (#360) is not in mixedCase
Variable MarshallRoganInu.ZERO (#361) is not in mixedCase
Constant MarshallRoganInu._name (#363) is not in UPPER_CASE_WITH_UNDERSCORES
Constant MarshallRoganInu._symbol (#364) is not in UPPER_CASE_WITH_UNDERSCORES
Constant MarshallRoganInu._decimals (#365) is not in UPPER_CASE_WITH_UNDERSCORES
Variable MarshallRoganInu._totalSupply (#367) is not in mixedCase
Variable MarshallRoganInu._maxTxAmount (#368) is not in mixedCase
Variable MarshallRoganInu._maxWalletToken (#371) is not in mixedCase
Variable MarshallRoganInu._balances (#373) is not in mixedCase
Variable MarshallRoganInu._allowances (#374) is not in mixedCase
Variable MarshallRoganInu._isBlacklisted (#380) 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
MarshallRoganInu.slitherConstructorVariables() (#355-732) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#360)
MarshallRoganInu.slitherConstructorVariables() (#355-732) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#361)
MarshallRoganInu.slitherConstructorVariables() (#355-732) uses literals with too many digits:
- distributorGas = 500000 (#401)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
MarshallRoganInu.ADA (#358) is never used in MarshallRoganInu (#355-732)
Remove unused state variables.
Additional information: link
DividendDistributor.WBNB (#200) should be constant
DividendDistributor.dividendsPerShareAccuracyFactor (#213) should be constant
MarshallRoganInu.ADA (#358) should be constant
MarshallRoganInu.DEAD (#360) should be constant
MarshallRoganInu.WBNB (#359) should be constant
MarshallRoganInu.ZERO (#361) should be constant
MarshallRoganInu._totalSupply (#367) should be constant
MarshallRoganInu.launchedAt (#397) 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:
- MarshallRoganInu.tradingStatus(bool) (#569-571)
cooldownEnabled(bool,uint8) should be declared external:
- MarshallRoganInu.cooldownEnabled(bool,uint8) (#574-577)
Use the external attribute for functions never called from the contract.
Additional information: link
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.
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.
Contract has 13% buy tax and 13% sell tax.
Taxes are high (over 10%) but contract ownership is renounced.
Swap operations require suspiciously high gas. Contract logic is complex and may disguise some form of scam.
Token is deployed only at one blockchain
Token has only one trading pair
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