Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
DogeArm.swapBack() (#638-687) sends eth to arbitrary user
Dangerous calls:
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#669)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#670)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in DogeArm._transferFrom(address,address,uint256) (#573-614):
External calls:
- swapBack() (#583)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#648-654)
- dividendDistributor.deposit{value: amountBNBReflection}() (#664)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#669)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#670)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#677-684)
External calls sending eth:
- swapBack() (#583)
- dividendDistributor.deposit{value: amountBNBReflection}() (#664)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#669)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#670)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#677-684)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#591)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#599)
- finalAmount = takeFee(sender,recipient,amount) (#598)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#628)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.distributeDividend(address) (#255-267) ignores return value by RewardToken.transfer(shareholder,amount) (#261)
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.
DogeArm.swapBack().tmpSuccess (#669) is written in both
(tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#669)
tmpSuccess = false (#673)
DogeArm.swapBack().tmpSuccess1 (#670) is written in both
(tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#670)
tmpSuccess1 = false (#674)
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.
Reentrancy in DividendDistributor.distributeDividend(address) (#255-267):
External calls:
- RewardToken.transfer(shareholder,amount) (#261)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (#263)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#264)
Reentrancy in DividendDistributor.process(uint256) (#226-248):
External calls:
- distributeDividend(shareholders[currentIndex]) (#240)
- RewardToken.transfer(shareholder,amount) (#261)
State variables written after the call(s):
- currentIndex ++ (#245)
Reentrancy in DividendDistributor.setShare(address,uint256) (#189-204):
External calls:
- distributeDividend(shareholder) (#192)
- RewardToken.transfer(shareholder,amount) (#261)
State variables written after the call(s):
- shares[shareholder].amount = amount (#202)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#203)
Apply the check-effects-interactions pattern.
Additional information: link
DogeArm.swapBack() (#638-687) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#677-684)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendDistributor.setDistributionCriteria(uint256,uint256) (#184-187) should emit an event for:
- minPeriod = newMinPeriod (#185)
- minDistribution = newMinDistribution (#186)
DogeArm.changeFees(uint256,uint256,uint256,uint256) (#530-538) should emit an event for:
- liquidityFee = newLiqFee (#531)
- rewardsFee = newRewardFee (#532)
- totalFee = liquidityFee.add(marketingFee).add(rewardsFee) (#536)
- totalFeeIfSelling = totalFee.add(extraFeeOnSell) (#537)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#354) lacks a zero-check on :
- owner = adr (#355)
DogeArm.changeFeeReceivers(address,address,address).newLiquidityReceiver (#540) lacks a zero-check on :
- autoLiquidityReceiver = newLiquidityReceiver (#541)
DogeArm.changeFeeReceivers(address,address,address).newMarketingWallet (#540) lacks a zero-check on :
- marketingWallet = newMarketingWallet (#542)
DogeArm.changeFeeReceivers(address,address,address).newanothermarketingWallet (#540) lacks a zero-check on :
- anothermarketingWallet = newanothermarketingWallet (#543)
Check that the address is not zero.
Additional information: link
DividendDistributor.distributeDividend(address) (#255-267) has external calls inside a loop: RewardToken.transfer(shareholder,amount) (#261)
Favor pull over push strategy for external calls.
Additional information: link
Reentrancy in DogeArm._transferFrom(address,address,uint256) (#573-614):
External calls:
- swapBack() (#583)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#648-654)
- dividendDistributor.deposit{value: amountBNBReflection}() (#664)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#669)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#670)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#677-684)
External calls sending eth:
- swapBack() (#583)
- dividendDistributor.deposit{value: amountBNBReflection}() (#664)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#669)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#670)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#677-684)
State variables written after the call(s):
- launch() (#587)
- launchedAt = block.number (#496)
Reentrancy in DogeArm.constructor() (#423-458):
External calls:
- pair = IDEXFactory(router.factory()).createPair(router.WETH(),address(this)) (#426)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = uint256(- 1) (#427)
- _balances[msg.sender] = _totalSupply (#456)
- anothermarketingWallet = 0xb4Ef8e1D3D8120e4dc9f05b09525866e5c33461B (#451)
- autoLiquidityReceiver = msg.sender (#449)
- dividendDistributor = new DividendDistributor(address(router)) (#429)
- isDividendExempt[pair] = true (#441)
- isDividendExempt[address(this)] = true (#443)
- isDividendExempt[DEAD] = true (#444)
- isDividendExempt[ZERO] = true (#445)
- isFeeExempt[msg.sender] = true (#431)
- isFeeExempt[address(this)] = true (#432)
- isFeeExempt[TEAM] = true (#433)
- isFeeExempt[anothermarketingWallet] = true (#434)
- isTxLimitExempt[msg.sender] = true (#436)
- isTxLimitExempt[pair] = true (#437)
- isTxLimitExempt[TEAM] = true (#438)
- isTxLimitExempt[DEAD] = true (#439)
- marketingWallet = msg.sender (#450)
- totalFee = liquidityFee.add(marketingFee).add(rewardsFee) (#453)
- totalFeeIfSelling = totalFee.add(extraFeeOnSell) (#454)
Reentrancy in DividendDistributor.deposit() (#206-224):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (#214-219)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (#223)
- totalDividends = totalDividends.add(amount) (#222)
Reentrancy in DividendDistributor.distributeDividend(address) (#255-267):
External calls:
- RewardToken.transfer(shareholder,amount) (#261)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#262)
Reentrancy in DividendDistributor.setShare(address,uint256) (#189-204):
External calls:
- distributeDividend(shareholder) (#192)
- RewardToken.transfer(shareholder,amount) (#261)
State variables written after the call(s):
- addShareholder(shareholder) (#196)
- shareholderIndexes[shareholder] = shareholders.length (#285)
- removeShareholder(shareholder) (#198)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#291)
- addShareholder(shareholder) (#196)
- shareholders.push(shareholder) (#286)
- removeShareholder(shareholder) (#198)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#290)
- shareholders.pop() (#292)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#201)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in DogeArm._transferFrom(address,address,uint256) (#573-614):
External calls:
- swapBack() (#583)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#648-654)
- dividendDistributor.deposit{value: amountBNBReflection}() (#664)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#669)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#670)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#677-684)
- dividendDistributor.setShare(sender,_balances[sender]) (#603)
- dividendDistributor.setShare(recipient,_balances[recipient]) (#607)
- dividendDistributor.process(distributorGas) (#610)
External calls sending eth:
- swapBack() (#583)
- dividendDistributor.deposit{value: amountBNBReflection}() (#664)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#669)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#670)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#677-684)
Event emitted after the call(s):
- Transfer(sender,recipient,finalAmount) (#612)
Reentrancy in DogeArm._transferFrom(address,address,uint256) (#573-614):
External calls:
- swapBack() (#583)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#648-654)
- dividendDistributor.deposit{value: amountBNBReflection}() (#664)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#669)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#670)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#677-684)
External calls sending eth:
- swapBack() (#583)
- dividendDistributor.deposit{value: amountBNBReflection}() (#664)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#669)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#670)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#677-684)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#629)
- finalAmount = takeFee(sender,recipient,amount) (#598)
Reentrancy in DogeArm.constructor() (#423-458):
External calls:
- pair = IDEXFactory(router.factory()).createPair(router.WETH(),address(this)) (#426)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#457)
Reentrancy in DogeArm.swapBack() (#638-687):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#648-654)
- dividendDistributor.deposit{value: amountBNBReflection}() (#664)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#669)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#670)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#677-684)
External calls sending eth:
- dividendDistributor.deposit{value: amountBNBReflection}() (#664)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#669)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#670)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#677-684)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#685)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.shouldDistribute(address) (#250-253) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#251-252)
Avoid relying on block.timestamp.
Additional information: link
DividendDistributor.process(uint256) (#226-248) has costly operations inside a loop:
- currentIndex = 0 (#237)
DividendDistributor.distributeDividend(address) (#255-267) has costly operations inside a loop:
- totalDistributed = totalDistributed.add(amount) (#260)
DividendDistributor.process(uint256) (#226-248) has costly operations inside a loop:
- currentIndex ++ (#245)
Use a local variable to hold the loop computation result.
Additional information: link
DogeArm._maxTxAmount (#378) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 1 / 100
DogeArm._walletMax (#379) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 2 / 100
DogeArm.swapThreshold (#415) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 5 / 2000
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 (#24) 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 DogeArm.swapBack() (#638-687):
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#669)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#670)
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() (#83) is not in mixedCase
Variable DividendDistributor._token (#140) is not in mixedCase
Variable DividendDistributor.RewardToken (#150) is not in mixedCase
Constant DogeArm._name (#367) is not in UPPER_CASE_WITH_UNDERSCORES
Constant DogeArm._symbol (#368) is not in UPPER_CASE_WITH_UNDERSCORES
Constant DogeArm._decimals (#369) is not in UPPER_CASE_WITH_UNDERSCORES
Variable DogeArm.DEAD (#371) is not in mixedCase
Variable DogeArm.ZERO (#372) is not in mixedCase
Variable DogeArm.TEAM (#373) is not in mixedCase
Variable DogeArm.RewardToken (#375) is not in mixedCase
Variable DogeArm._totalSupply (#377) is not in mixedCase
Variable DogeArm._maxTxAmount (#378) is not in mixedCase
Variable DogeArm._walletMax (#379) is not in mixedCase
Variable DogeArm._balances (#383) is not in mixedCase
Variable DogeArm._allowances (#384) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#88) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#89)
Prevent variables from having similar names.
Additional information: link
DogeArm.slitherConstructorVariables() (#363-692) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#371)
DogeArm.slitherConstructorVariables() (#363-692) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#372)
DogeArm.slitherConstructorVariables() (#363-692) uses literals with too many digits:
- _totalSupply = 1000000 * (10 ** _decimals) (#377)
DogeArm.slitherConstructorVariables() (#363-692) uses literals with too many digits:
- distributorGas = 300000 (#409)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
DogeArm.RewardToken (#375) is never used in DogeArm (#363-692)
Remove unused state variables.
Additional information: link
DividendDistributor.dividendsPerShareAccuracyFactor (#161) should be constant
DividendDistributor.routerAddress (#149) should be constant
DogeArm.DEAD (#371) should be constant
DogeArm.RewardToken (#375) should be constant
DogeArm.TEAM (#373) should be constant
DogeArm.ZERO (#372) should be constant
DogeArm._totalSupply (#377) should be constant
DogeArm.routerAddress (#374) 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) (#326-328)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#333-335)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#354-358)
getCirculatingSupply() should be declared external:
- DogeArm.getCirculatingSupply() (#468-470)
claim() should be declared external:
- DogeArm.claim() (#486-489)
tradingStatus(bool) should be declared external:
- DogeArm.tradingStatus(bool) (#634-636)
Use the external attribute for functions never called from the contract.
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