FarmerDoge is a BSC token that did a private sale to raise funds. Most of the funds were used for LP and all private presale funds raised are locked for 6 months after launch via a vesting function in the contract.
Farmer Doge farms between 5% and 10% reflection rewards in a target token to be updated by the devs as needed. The contract name can be updated too to show the farmed token on the chart websites like PooCoin and DexTools.
For instance, when we launched we did (ADA) in the title to indicate ada was the active farm. The team holds 5%, and the rest was all part of the initial lp and private presale. No person can buy more than 1.5% of the supply. 5% tax will be the final tax used for the liquidity pool, the initial tax is 10%.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
FarmerDoge.swapBack(uint256) (#865-909) sends eth to arbitrary user
Dangerous calls:
- distributor.deposit{value: amountBNBReflection}() (#894)
- marketingFeeReceiver.transfer(amountBNBMarketing) (#896)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in FarmerDoge._transferFrom(address,address,uint256) (#741-779):
External calls:
- swapBack(amount) (#767)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#879-885)
- distributor.deposit{value: amountBNBReflection}() (#894)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#899-906)
- triggerAutoBuyback() (#768)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (#948-953)
External calls sending eth:
- swapBack(amount) (#767)
- distributor.deposit{value: amountBNBReflection}() (#894)
- marketingFeeReceiver.transfer(amountBNBMarketing) (#896)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#899-906)
- triggerAutoBuyback() (#768)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (#948-953)
State variables written after the call(s):
- _balances[recipient] = _balances[recipient] + amountReceived (#770)
- triggerAutoBuyback() (#768)
- inSwap = true (#664)
- inSwap = false (#664)
Reentrancy in FarmerDoge.airdrop(address[],uint256[],uint256,bool) (#705-717):
External calls:
- _transferFrom(from,addresses[i],amounts[i]) (#711)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (#948-953)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#879-885)
- distributor.deposit{value: amountBNBReflection}() (#894)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#899-906)
- distributor.setShare(sender,_balances[sender]) (#772)
- distributor.setShare(recipient,_balances[recipient]) (#773)
- distributor.process(distributorGas) (#775)
External calls sending eth:
- _transferFrom(from,addresses[i],amounts[i]) (#711)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (#948-953)
- distributor.deposit{value: amountBNBReflection}() (#894)
- marketingFeeReceiver.transfer(amountBNBMarketing) (#896)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#899-906)
State variables written after the call(s):
- airDropBalance[addresses[i]] = amounts[i] (#713)
- airDropVestingPeriod[addresses[i]] = block.timestamp + vestingPeriod (#712)
- airDropped[addresses[i]] = true (#714)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.distributeDividend(address,uint256) (#533-544) ignores return value by TOKEN.transfer(shareholder,unpaidEarnings) (#538)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
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.
DividendDistributor.changeToken(address,bool) (#406-440) uses a dangerous strict equality:
- require(bool,string)(totalDividends == 0 || tokenConversionDivisor > 0,Requires at least some of initial token to calculate convertion rate.) (#409)
FarmerDoge.airdrop(address[],uint256[],uint256,bool) (#705-717) uses a dangerous strict equality:
- balanceOf(addresses[i]) == 0 (#709)
FarmerDoge.getTotalFee(bool,address,address,uint256) (#831-845) uses a dangerous strict equality:
- balance == 0 (#842)
Don't use strict equality to determine if an account has enough Ether or tokens.
Additional information: link
Contract name (FarmerDoge (Launch Day)) contains non-alphanumeric characters.
Not a direct threat, but may indicate unreliable intentions of developer. Non-alphanumeric chars (,.;!#*&") are extremely rare among low risk tokens.
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.
DividendDistributor.distributeDividend(address,uint256) (#533-544) has external calls inside a loop: TOKEN.transfer(shareholder,unpaidEarnings) (#538)
FarmerDoge.checkWalletLimit(address,uint256) (#788-797) has external calls inside a loop: balance = discountToken.balanceOf(recipient) (#792)
FarmerDoge.getTotalFee(bool,address,address,uint256) (#831-845) has external calls inside a loop: balance = discountToken.balanceOf(recipient) (#841)
FarmerDoge.swapBack(uint256) (#865-909) has external calls inside a loop: router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#879-885)
FarmerDoge.swapBack(uint256) (#865-909) has external calls inside a loop: distributor.deposit{value: amountBNBReflection}() (#894)
FarmerDoge.swapBack(uint256) (#865-909) has external calls inside a loop: marketingFeeReceiver.transfer(amountBNBMarketing) (#896)
FarmerDoge.swapBack(uint256) (#865-909) has external calls inside a loop: router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#899-906)
FarmerDoge.buyTokens(uint256,address) (#943-954) has external calls inside a loop: router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (#948-953)
FarmerDoge._transferFrom(address,address,uint256) (#741-779) has external calls inside a loop: distributor.setShare(sender,_balances[sender]) (#772)
FarmerDoge._transferFrom(address,address,uint256) (#741-779) has external calls inside a loop: distributor.setShare(recipient,_balances[recipient]) (#773)
FarmerDoge._transferFrom(address,address,uint256) (#741-779) has external calls inside a loop: distributor.process(distributorGas) (#775)
Favor pull over push strategy for external calls.
Additional information: link
FarmerDoge.slitherConstructorVariables() (#590-1095) performs a multiplication on the result of a division:
-_maxTxAmount = (_totalSupply * 1) / 100 (#605)
-_dumpProtectionDenominator = 100 * _maxTxAmount (#628)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in DividendDistributor.changeToken(address,bool) (#406-440):
External calls:
- TOKEN.approve(address(router),tokenConversionDivisor) (#412)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenConversionDivisor,0,path,address(this),block.timestamp) (#419-425)
State variables written after the call(s):
- TOKEN = IERC20(newToken) (#431)
- tokenConversionCount = shareholders.length (#427)
- tokenConversionProgress = 0 (#428)
- totalDividends = (totalDividends * tokenConversionNumerator) / tokenConversionDivisor (#436)
Reentrancy in DividendDistributor.distributeDividend(address,uint256) (#533-544):
External calls:
- TOKEN.transfer(shareholder,unpaidEarnings) (#538)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised + unpaidEarnings (#541)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#542)
Reentrancy in DividendDistributor.process(uint256) (#498-526):
External calls:
- distributeDividend(shareholders[currentIndex],unpaidEarnings) (#518)
- TOKEN.transfer(shareholder,unpaidEarnings) (#538)
State variables written after the call(s):
- currentIndex ++ (#523)
Reentrancy in DividendDistributor.setShare(address,uint256) (#461-476):
External calls:
- distributeDividend(shareholder,getUnpaidEarnings(shareholder)) (#464)
- TOKEN.transfer(shareholder,unpaidEarnings) (#538)
State variables written after the call(s):
- shares[shareholder].amount = amount (#474)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#475)
- removeShareholder(shareholder) (#470)
- tokenConversionProgress ++ (#582)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.changeToken(address,bool) (#406-440) ignores return value by TOKEN.approve(address(router),tokenConversionDivisor) (#412)
FarmerDoge.swapBack(uint256) (#865-909) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#899-906)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendDistributor.changeToken(address,bool) (#406-440) should emit an event for:
- tokenConversionNumerator = TOKEN.balanceOf(address(this)) (#434)
- dividendsPerShare = (dividendsPerShare * tokenConversionNumerator) / tokenConversionDivisor (#437)
- totalDistributed = (totalDistributed * tokenConversionNumerator) / tokenConversionDivisor (#438)
DividendDistributor.setDistributionCriteria(uint256,uint256) (#456-459) should emit an event for:
- minPeriod = _minPeriod (#457)
- minDistribution = _minDistribution (#458)
FarmerDoge.setDiscountToken(address,uint256) (#810-815) should emit an event for:
- _discountDenominator = (_discountDenominator * _discountMaxWallet) / discountTokenMaxWallet (#813)
- discountTokenMaxWallet = _discountMaxWallet (#814)
FarmerDoge.setAutoBuybackSettings(bool,uint256,uint256,uint256) (#956-963) should emit an event for:
- autoBuybackCap = _cap (#958)
- autoBuybackAmount = _amount (#960)
FarmerDoge.setTxLimit(uint256,uint256) (#974-977) should emit an event for:
- _maxTxAmount = (_totalSupply * numerator) / divisor (#976)
FarmerDoge.setMaxWallet(uint256,uint256) (#989-992) should emit an event for:
- _maxWalletSize = (_totalSupply * numerator) / divisor (#991)
FarmerDoge.setSellMultiplier(uint256,uint256) (#994-998) should emit an event for:
- _sellMultiplierNumerator = numerator (#996)
- _sellMultiplierDenominator = divisor (#997)
FarmerDoge.setDumpMultiplier(uint256,uint256,uint256,uint256) (#1000-1006) should emit an event for:
- _dumpProtectionNumerator = numerator (#1002)
- _dumpProtectionDenominator = divisor * _maxTxAmount (#1003)
- _dumpProtectionThreshold = dumpThreshold (#1004)
- _dumpProtectionTimer = dumpTimer (#1005)
FarmerDoge.setDiscountMultiplier(uint256,uint256) (#1008-1012) should emit an event for:
- _discountNumerator = numerator (#1010)
- _discountDenominator = divisor * discountTokenMaxWallet (#1011)
FarmerDoge.setFees(uint256,uint256,uint256,uint256,uint256) (#1032-1040) should emit an event for:
- liquidityFee = _liquidityFee (#1033)
- reflectionFee = _reflectionFee (#1035)
- totalFee = _liquidityFee + _buybackFee + _reflectionFee + _marketingFee (#1037)
- feeDenominator = _feeDenominator (#1038)
FarmerDoge.setSwapBackSettings(bool,uint256) (#1047-1051) should emit an event for:
- swapThreshold = _totalSupply / _denominator (#1050)
FarmerDoge.setTargetLiquidity(uint256,uint256) (#1053-1056) should emit an event for:
- targetLiquidity = _target (#1054)
- targetLiquidityDenominator = _denominator (#1055)
FarmerDoge.setDistributorSettings(uint256) (#1062-1065) should emit an event for:
- distributorGas = gas (#1064)
Emit an event for critical parameter changes.
Additional information: link
DividendDistributor.constructor(address,address,address)._wbnb (#399) lacks a zero-check on :
- WBNB = _wbnb (#402)
FarmerDoge.setup(address).reflectToken (#803) lacks a zero-check on :
- currentlyServing = reflectToken (#805)
FarmerDoge.setFeeReceivers(address,address)._autoLiquidityReceiver (#1042) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#1043)
FarmerDoge.setFeeReceivers(address,address)._marketingFeeReceiver (#1042) lacks a zero-check on :
- marketingFeeReceiver = address(_marketingFeeReceiver) (#1044)
Check that the address is not zero.
Additional information: link
Reentrancy in DividendDistributor.changeToken(address,bool) (#406-440):
External calls:
- TOKEN.approve(address(router),tokenConversionDivisor) (#412)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenConversionDivisor,0,path,address(this),block.timestamp) (#419-425)
State variables written after the call(s):
- dividendsPerShare = (dividendsPerShare * tokenConversionNumerator) / tokenConversionDivisor (#437)
- tokenConversionNumerator = TOKEN.balanceOf(address(this)) (#434)
- totalDistributed = (totalDistributed * tokenConversionNumerator) / tokenConversionDivisor (#438)
Reentrancy in FarmerDoge.constructor() (#666-688):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#670)
State variables written after the call(s):
- _allowances[msg.sender][routerAddress] = type()(uint256).max (#671)
- _allowances[address(this)][routerAddress] = type()(uint256).max (#672)
- _balances[msg.sender] = _totalSupply (#686)
- autoLiquidityReceiver = msg.sender (#682)
- isDividendExempt[pair] = true (#678)
- isDividendExempt[address(this)] = true (#679)
- isDividendExempt[DEAD] = true (#680)
- isDividendExempt[ZERO] = true (#681)
- isFeeExempt[msg.sender] = true (#674)
- isTxLimitExempt[address(this)] = true (#675)
- isTxLimitExempt[msg.sender] = true (#676)
- isTxLimitExempt[routerAddress] = true (#677)
- marketingFeeReceiver = address(msg.sender) (#683)
Reentrancy in DividendDistributor.deposit() (#478-496):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (#485-490)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare + ((dividendsPerShareAccuracyFactor * amount) / totalShares) (#495)
- totalDividends = totalDividends + amount (#494)
Reentrancy in DividendDistributor.distributeDividend(address,uint256) (#533-544):
External calls:
- TOKEN.transfer(shareholder,unpaidEarnings) (#538)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#539)
Reentrancy in FarmerDoge.setReflectToken(address,bool) (#979-983):
External calls:
- distributor.changeToken(newToken,forceChange) (#981)
State variables written after the call(s):
- currentlyServing = newToken (#982)
Reentrancy in DividendDistributor.setShare(address,uint256) (#461-476):
External calls:
- distributeDividend(shareholder,getUnpaidEarnings(shareholder)) (#464)
- TOKEN.transfer(shareholder,unpaidEarnings) (#538)
State variables written after the call(s):
- addShareholder(shareholder) (#468)
- shareholderIndexes[shareholder] = shareholders.length (#576)
- removeShareholder(shareholder) (#470)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#585)
- addShareholder(shareholder) (#468)
- shareholders.push(shareholder) (#577)
- removeShareholder(shareholder) (#470)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#584)
- shareholders.pop() (#586)
- totalShares = (totalShares - shares[shareholder].amount) + amount (#473)
Reentrancy in FarmerDoge.triggerAutoBuyback() (#936-941):
External calls:
- buyTokens(autoBuybackAmount,DEAD) (#937)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (#948-953)
State variables written after the call(s):
- autoBuybackAccumulator = autoBuybackAccumulator + autoBuybackAmount (#939)
- autoBuybackBlockLast = block.number (#938)
- autoBuybackEnabled = false (#940)
Reentrancy in FarmerDoge.triggerManualBuyback(uint256,bool) (#920-926):
External calls:
- buyTokens(amount,DEAD) (#921)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (#948-953)
State variables written after the call(s):
- buybackMultiplierTriggeredAt = block.timestamp (#923)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in FarmerDoge._transferFrom(address,address,uint256) (#741-779):
External calls:
- swapBack(amount) (#767)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#879-885)
- distributor.deposit{value: amountBNBReflection}() (#894)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#899-906)
- triggerAutoBuyback() (#768)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (#948-953)
- distributor.setShare(sender,_balances[sender]) (#772)
- distributor.setShare(recipient,_balances[recipient]) (#773)
- distributor.process(distributorGas) (#775)
External calls sending eth:
- swapBack(amount) (#767)
- distributor.deposit{value: amountBNBReflection}() (#894)
- marketingFeeReceiver.transfer(amountBNBMarketing) (#896)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#899-906)
- triggerAutoBuyback() (#768)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (#948-953)
Event emitted after the call(s):
- Transfer(sender,recipient,amountReceived) (#777)
Reentrancy in FarmerDoge.constructor() (#666-688):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#670)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#687)
Reentrancy in FarmerDoge.swapBack(uint256) (#865-909):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#879-885)
- distributor.deposit{value: amountBNBReflection}() (#894)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#899-906)
External calls sending eth:
- distributor.deposit{value: amountBNBReflection}() (#894)
- marketingFeeReceiver.transfer(amountBNBMarketing) (#896)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#899-906)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#907)
Reentrancy in FarmerDoge.triggerManualBuyback(uint256,bool) (#920-926):
External calls:
- buyTokens(amount,DEAD) (#921)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (#948-953)
Event emitted after the call(s):
- BuybackMultiplierActive(buybackMultiplierLength) (#924)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.shouldDistribute(address,uint256) (#528-531) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && unpaidEarnings > minDistribution (#529-530)
FarmerDoge._transferFrom(address,address,uint256) (#741-779) uses timestamp for comparisons
Dangerous comparisons:
- airDropVestingPeriod[sender] <= block.timestamp (#743)
FarmerDoge.getTotalFee(bool,address,address,uint256) (#831-845) uses timestamp for comparisons
Dangerous comparisons:
- lastSell[sender] + _dumpProtectionTimer <= block.timestamp (#834)
Avoid relying on block.timestamp.
Additional information: link
Address.isContract(address) (#28-37) uses assembly
- INLINE ASM (#35)
Address._functionCallWithValue(address,bytes,uint256,string) (#121-142) uses assembly
- INLINE ASM (#134-137)
Do not use evm assembly.
Additional information: link
DividendDistributor.process(uint256) (#498-526) has costly operations inside a loop:
- currentIndex = 0 (#510)
DividendDistributor.processTokenChange(address) (#446-454) has costly operations inside a loop:
- tokenConversionProgress ++ (#453)
DividendDistributor.distributeDividend(address,uint256) (#533-544) has costly operations inside a loop:
- totalDistributed = totalDistributed + unpaidEarnings (#537)
DividendDistributor.process(uint256) (#498-526) has costly operations inside a loop:
- currentIndex ++ (#523)
FarmerDoge.launch() (#969-972) has costly operations inside a loop:
- launchedAt = block.number (#970)
FarmerDoge.launch() (#969-972) has costly operations inside a loop:
- launchedTime = block.timestamp (#971)
FarmerDoge.swapping() (#664) has costly operations inside a loop:
- inSwap = true (#664)
FarmerDoge.swapping() (#664) has costly operations inside a loop:
- inSwap = false (#664)
FarmerDoge.triggerAutoBuyback() (#936-941) has costly operations inside a loop:
- autoBuybackBlockLast = block.number (#938)
FarmerDoge.triggerAutoBuyback() (#936-941) has costly operations inside a loop:
- autoBuybackAccumulator = autoBuybackAccumulator + autoBuybackAmount (#939)
FarmerDoge.triggerAutoBuyback() (#936-941) has costly operations inside a loop:
- autoBuybackEnabled = false (#940)
Use a local variable to hold the loop computation result.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#121-142) is never used and should be removed
Address.functionCall(address,bytes) (#81-83) is never used and should be removed
Address.functionCall(address,bytes,string) (#91-93) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#106-108) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#116-119) is never used and should be removed
Address.sendValue(address,uint256) (#55-61) is never used and should be removed
Context._msgData() (#150-153) is never used and should be removed
Remove unused functions.
Additional information: link
FarmerDoge._maxTxAmount (#605) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 1) / 100
FarmerDoge._maxWalletSize (#606) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 1) / 100
FarmerDoge._dumpProtectionDenominator (#628) is set pre-construction with a non-constant function or state variable:
- 100 * _maxTxAmount
FarmerDoge.swapThreshold (#662) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 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
Low level call in Address.sendValue(address,uint256) (#55-61):
- (success) = recipient.call{value: amount}() (#59)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#121-142):
- (success,returndata) = target.call{value: weiValue}(data) (#125)
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() (#294) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minPeriod (#456) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minDistribution (#456) is not in mixedCase
Variable DividendDistributor._token (#353) is not in mixedCase
Variable DividendDistributor.TOKEN (#363) is not in mixedCase
Variable DividendDistributor.WBNB (#364) is not in mixedCase
Parameter FarmerDoge.setDiscountToken(address,uint256)._discountToken (#810) is not in mixedCase
Parameter FarmerDoge.setDiscountToken(address,uint256)._discountMaxWallet (#810) is not in mixedCase
Parameter FarmerDoge.setAutoBuybackSettings(bool,uint256,uint256,uint256)._enabled (#956) is not in mixedCase
Parameter FarmerDoge.setAutoBuybackSettings(bool,uint256,uint256,uint256)._cap (#956) is not in mixedCase
Parameter FarmerDoge.setAutoBuybackSettings(bool,uint256,uint256,uint256)._amount (#956) is not in mixedCase
Parameter FarmerDoge.setAutoBuybackSettings(bool,uint256,uint256,uint256)._period (#956) is not in mixedCase
Parameter FarmerDoge.setFees(uint256,uint256,uint256,uint256,uint256)._liquidityFee (#1032) is not in mixedCase
Parameter FarmerDoge.setFees(uint256,uint256,uint256,uint256,uint256)._buybackFee (#1032) is not in mixedCase
Parameter FarmerDoge.setFees(uint256,uint256,uint256,uint256,uint256)._reflectionFee (#1032) is not in mixedCase
Parameter FarmerDoge.setFees(uint256,uint256,uint256,uint256,uint256)._marketingFee (#1032) is not in mixedCase
Parameter FarmerDoge.setFees(uint256,uint256,uint256,uint256,uint256)._feeDenominator (#1032) is not in mixedCase
Parameter FarmerDoge.setFeeReceivers(address,address)._autoLiquidityReceiver (#1042) is not in mixedCase
Parameter FarmerDoge.setFeeReceivers(address,address)._marketingFeeReceiver (#1042) is not in mixedCase
Parameter FarmerDoge.setSwapBackSettings(bool,uint256)._enabled (#1047) is not in mixedCase
Parameter FarmerDoge.setSwapBackSettings(bool,uint256)._denominator (#1047) is not in mixedCase
Parameter FarmerDoge.setTargetLiquidity(uint256,uint256)._target (#1053) is not in mixedCase
Parameter FarmerDoge.setTargetLiquidity(uint256,uint256)._denominator (#1053) is not in mixedCase
Parameter FarmerDoge.setDistributionCriteria(uint256,uint256)._minPeriod (#1058) is not in mixedCase
Parameter FarmerDoge.setDistributionCriteria(uint256,uint256)._minDistribution (#1058) is not in mixedCase
Variable FarmerDoge.WBNB (#593) is not in mixedCase
Variable FarmerDoge.DEAD (#594) is not in mixedCase
Variable FarmerDoge.ZERO (#595) is not in mixedCase
Variable FarmerDoge._name (#600) is not in mixedCase
Variable FarmerDoge._symbol (#601) is not in mixedCase
Constant FarmerDoge._decimals (#602) is not in UPPER_CASE_WITH_UNDERSCORES
Variable FarmerDoge._totalSupply (#604) is not in mixedCase
Variable FarmerDoge._maxTxAmount (#605) is not in mixedCase
Variable FarmerDoge._maxWalletSize (#606) is not in mixedCase
Variable FarmerDoge._balances (#608) is not in mixedCase
Variable FarmerDoge._allowances (#609) is not in mixedCase
Variable FarmerDoge._sellMultiplierNumerator (#625) is not in mixedCase
Variable FarmerDoge._sellMultiplierDenominator (#626) is not in mixedCase
Variable FarmerDoge._dumpProtectionNumerator (#627) is not in mixedCase
Variable FarmerDoge._dumpProtectionDenominator (#628) is not in mixedCase
Variable FarmerDoge._dumpProtectionThreshold (#629) is not in mixedCase
Variable FarmerDoge._dumpProtectionTimer (#630) is not in mixedCase
Variable FarmerDoge._discountNumerator (#631) is not in mixedCase
Variable FarmerDoge._discountDenominator (#632) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#151)" inContext (#145-154)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in FarmerDoge._transferFrom(address,address,uint256) (#741-779):
External calls:
- swapBack(amount) (#767)
- marketingFeeReceiver.transfer(amountBNBMarketing) (#896)
External calls sending eth:
- swapBack(amount) (#767)
- distributor.deposit{value: amountBNBReflection}() (#894)
- marketingFeeReceiver.transfer(amountBNBMarketing) (#896)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#899-906)
- triggerAutoBuyback() (#768)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (#948-953)
State variables written after the call(s):
- _balances[recipient] = _balances[recipient] + amountReceived (#770)
- triggerAutoBuyback() (#768)
- autoBuybackAccumulator = autoBuybackAccumulator + autoBuybackAmount (#939)
- triggerAutoBuyback() (#768)
- autoBuybackBlockLast = block.number (#938)
- triggerAutoBuyback() (#768)
- autoBuybackEnabled = false (#940)
- triggerAutoBuyback() (#768)
- inSwap = true (#664)
- inSwap = false (#664)
Event emitted after the call(s):
- Transfer(sender,recipient,amountReceived) (#777)
Reentrancy in FarmerDoge.airdrop(address[],uint256[],uint256,bool) (#705-717):
External calls:
- _transferFrom(from,addresses[i],amounts[i]) (#711)
- marketingFeeReceiver.transfer(amountBNBMarketing) (#896)
External calls sending eth:
- _transferFrom(from,addresses[i],amounts[i]) (#711)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (#948-953)
- distributor.deposit{value: amountBNBReflection}() (#894)
- marketingFeeReceiver.transfer(amountBNBMarketing) (#896)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#899-906)
State variables written after the call(s):
- airDropBalance[addresses[i]] = amounts[i] (#713)
- airDropVestingPeriod[addresses[i]] = block.timestamp + vestingPeriod (#712)
- airDropped[addresses[i]] = true (#714)
Reentrancy in FarmerDoge.swapBack(uint256) (#865-909):
External calls:
- marketingFeeReceiver.transfer(amountBNBMarketing) (#896)
External calls sending eth:
- distributor.deposit{value: amountBNBReflection}() (#894)
- marketingFeeReceiver.transfer(amountBNBMarketing) (#896)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#899-906)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#907)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#299) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#300)
Prevent variables from having similar names.
Additional information: link
FarmerDoge.slitherConstructorVariables() (#590-1095) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#594)
FarmerDoge.slitherConstructorVariables() (#590-1095) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#595)
FarmerDoge.slitherConstructorVariables() (#590-1095) uses literals with too many digits:
- _totalSupply = 10000000000 * (10 ** _decimals) (#604)
FarmerDoge.slitherConstructorVariables() (#590-1095) uses literals with too many digits:
- distributorGas = 500000 (#659)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
DividendDistributor.dividendsPerShareAccuracyFactor (#377) should be constant
FarmerDoge.DEAD (#594) should be constant
FarmerDoge.ZERO (#595) should be constant
FarmerDoge._totalSupply (#604) should be constant
FarmerDoge.buybackMultiplierLength (#649) should be constant
FarmerDoge.routerAddress (#641) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#272-275)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#281-285)
Use the external attribute for functions never called from the contract.
Additional information: link
Contract has 15% buy tax and 61% sell tax.
Taxes are extremely high (over 30%)
Additional information: link
Average 30d PancakeSwap liquidity 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.
Swap operations require suspiciously high gas. Contract logic is complex and may disguise some form of scam.
Token is deployed only at one blockchain
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Unable to find token contract audit
Unable to verify token contract address on the website
Unable to find audit link on the website
Unable to find Telegram link on the website
Unable to find Twitter link on the website
Unable to find code repository for the project
Token is marked as scam (rug pull, honeypot, phishing, etc.)
Additional information: link
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Token has relatively low CoinGecko rank
Token has relatively low CoinMarketCap rank
Last post in Twitter was more than 30 days ago