Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Emerald.swapBack() (#573-616) sends eth to arbitrary user
Dangerous calls:
- distributor.deposit{value: amountETHReflection}() (#602)
- address(marketingFeeReceiver).transfer(amountETHMarketing) (#603)
- myRouter.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#606-613)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in Emerald._transferFrom(address,address,uint256) (#523-571):
External calls:
- swapBack() (#544)
- myRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#586-592)
- distributor.deposit{value: amountETHReflection}() (#602)
- myRouter.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#606-613)
External calls sending eth:
- swapBack() (#544)
- distributor.deposit{value: amountETHReflection}() (#602)
- address(marketingFeeReceiver).transfer(amountETHMarketing) (#603)
- myRouter.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#606-613)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#547)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#554)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#560)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.distributeDividend(address) (#330-341) ignores return value by DIVIDEND_TOKEN.transfer(shareholder,amount) (#336)
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.
Reentrancy in DividendDistributor.distributeDividend(address) (#330-341):
External calls:
- DIVIDEND_TOKEN.transfer(shareholder,amount) (#336)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (#338)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#339)
Reentrancy in DividendDistributor.process(uint256) (#299-323):
External calls:
- distributeDividend(shareholders[currentIndex]) (#315)
- DIVIDEND_TOKEN.transfer(shareholder,amount) (#336)
State variables written after the call(s):
- currentIndex ++ (#320)
Reentrancy in DividendDistributor.setShare(address,uint256) (#262-276):
External calls:
- distributeDividend(shareholder) (#264)
- DIVIDEND_TOKEN.transfer(shareholder,amount) (#336)
State variables written after the call(s):
- shares[shareholder].amount = amount (#274)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#275)
Apply the check-effects-interactions pattern.
Additional information: link
Emerald.swapBack() (#573-616) ignores return value by myRouter.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#606-613)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendDistributor.setDistributionCriteria(uint256,uint256) (#257-260) should emit an event for:
- minPeriod = _minPeriod (#258)
- minDistribution = _minDistribution (#259)
Emerald.setSwapBackSettings(bool,uint256) (#682-686) should emit an event for:
- swapThreshold = _amount (#685)
Emerald.setTargetLiquidityPct(uint256) (#688-691) should emit an event for:
- targetLiquidityPct = _target (#690)
Emerald.setFeeOptions(bool,uint256,uint256,uint256) (#710-717) should emit an event for:
- reflectionFee = _reflectionFee (#712)
- liquidityFee = _liquidityFee (#713)
- marketingFee = _marketingFee (#714)
- totalFee = reflectionFee + liquidityFee + marketingFee (#715)
Emit an event for critical parameter changes.
Additional information: link
DividendDistributor.constructor(address,address,address,address)._weth (#248) lacks a zero-check on :
- WETH = _weth (#251)
DividendDistributor.constructor(address,address,address,address)._busd (#248) lacks a zero-check on :
- BUSD = _busd (#252)
Auth.transferOwnership(address).adr (#161) lacks a zero-check on :
- owner = adr (#162)
Emerald.constructor(address,address,address,address,address)._dividend_token (#431) lacks a zero-check on :
- DIVIDEND_TOKEN = _dividend_token (#432)
Emerald.constructor(address,address,address,address,address)._busd (#431) lacks a zero-check on :
- BUSD = _busd (#452)
Emerald.constructor(address,address,address,address,address)._teamWallet (#431) lacks a zero-check on :
- autoLiquidityReceiver = _teamWallet (#471)
- marketingFeeReceiver = _teamWallet (#472)
Emerald.setFeeReceivers(address,address)._autoLiquidityReceiver (#652) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#657)
Emerald.setFeeReceivers(address,address)._marketingFeeReceiver (#652) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#658)
Emerald.setRouters(address,address)._myRouter (#665) lacks a zero-check on :
- myRouterAddress = _myRouter (#666)
Emerald.setRouters(address,address)._rewardRouter (#665) lacks a zero-check on :
- rewardRouterAddress = _rewardRouter (#667)
Check that the address is not zero.
Additional information: link
Reentrancy in Emerald.constructor(address,address,address,address,address) (#431-481):
External calls:
- pair = IDEXFactory(myRouter.factory()).createPair(WETH,address(this)) (#454)
State variables written after the call(s):
- approve(address(pair),_totalSupply) (#462)
- _allowances[msg.sender][spender] = amount (#502)
- _balances[msg.sender] = _totalSupply (#476)
- autoLiquidityReceiver = _teamWallet (#471)
- distributor = new DividendDistributor(rewardRouterAddress,DIVIDEND_TOKEN,WETH,BUSD) (#456)
- distributorAddress = address(distributor) (#457)
- isDividendExempt[pair] = true (#460)
- isDividendExempt[address(this)] = true (#464)
- isDividendExempt[address(0)] = true (#468)
- isDividendExempt[msg.sender] = true (#479)
- isMaxWalletSizeExempt[pair] = true (#461)
- isMaxWalletSizeExempt[address(this)] = true (#465)
- isMaxWalletSizeExempt[address(0)] = true (#469)
- isMaxWalletSizeExempt[_teamWallet] = true (#474)
- isMaxWalletSizeExempt[msg.sender] = true (#478)
- isTxLimitExempt[pair] = true (#459)
- isTxLimitExempt[address(this)] = true (#466)
- isTxLimitExempt[_teamWallet] = true (#473)
- isTxLimitExempt[msg.sender] = true (#477)
- marketingFeeReceiver = _teamWallet (#472)
Reentrancy in DividendDistributor.deposit() (#278-297):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (#286-291)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (#296)
- totalDividends = totalDividends.add(amount) (#295)
Reentrancy in DividendDistributor.distributeDividend(address) (#330-341):
External calls:
- DIVIDEND_TOKEN.transfer(shareholder,amount) (#336)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#337)
Reentrancy in DividendDistributor.setShare(address,uint256) (#262-276):
External calls:
- distributeDividend(shareholder) (#264)
- DIVIDEND_TOKEN.transfer(shareholder,amount) (#336)
State variables written after the call(s):
- addShareholder(shareholder) (#268)
- shareholderIndexes[shareholder] = shareholders.length (#363)
- removeShareholder(shareholder) (#270)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#369)
- addShareholder(shareholder) (#268)
- shareholders.push(shareholder) (#364)
- removeShareholder(shareholder) (#270)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#368)
- shareholders.pop() (#370)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#273)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Emerald._transferFrom(address,address,uint256) (#523-571):
External calls:
- swapBack() (#544)
- myRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#586-592)
- distributor.deposit{value: amountETHReflection}() (#602)
- myRouter.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#606-613)
External calls sending eth:
- swapBack() (#544)
- distributor.deposit{value: amountETHReflection}() (#602)
- address(marketingFeeReceiver).transfer(amountETHMarketing) (#603)
- myRouter.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#606-613)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#555)
Reentrancy in Emerald._transferFrom(address,address,uint256) (#523-571):
External calls:
- swapBack() (#544)
- myRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#586-592)
- distributor.deposit{value: amountETHReflection}() (#602)
- myRouter.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#606-613)
- distributor.setShare(sender,_balances[sender]) (#563)
- distributor.setShare(recipient,_balances[recipient]) (#564)
- distributor.process(distributorGas) (#566)
External calls sending eth:
- swapBack() (#544)
- distributor.deposit{value: amountETHReflection}() (#602)
- address(marketingFeeReceiver).transfer(amountETHMarketing) (#603)
- myRouter.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#606-613)
Event emitted after the call(s):
- Transfer(sender,recipient,amountReceived) (#569)
Reentrancy in Emerald.constructor(address,address,address,address,address) (#431-481):
External calls:
- pair = IDEXFactory(myRouter.factory()).createPair(WETH,address(this)) (#454)
Event emitted after the call(s):
- Approval(msg.sender,spender,amount) (#503)
- approve(address(pair),_totalSupply) (#462)
- Transfer(address(0),msg.sender,_totalSupply) (#480)
Reentrancy in Emerald.swapBack() (#573-616):
External calls:
- myRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#586-592)
- distributor.deposit{value: amountETHReflection}() (#602)
- myRouter.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#606-613)
External calls sending eth:
- distributor.deposit{value: amountETHReflection}() (#602)
- address(marketingFeeReceiver).transfer(amountETHMarketing) (#603)
- myRouter.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#606-613)
Event emitted after the call(s):
- AutoLiquify(amountETHLiquidity,amountToLiquify) (#614)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.shouldDistribute(address) (#325-328) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#326-327)
Avoid relying on block.timestamp.
Additional information: link
DividendDistributor.process(uint256) (#299-323) has costly operations inside a loop:
- currentIndex = 0 (#311)
DividendDistributor.process(uint256) (#299-323) has costly operations inside a loop:
- currentIndex ++ (#320)
Use a local variable to hold the loop computation result.
Additional information: link
SafeMath.div(uint256,uint256,string) (#77-82) is never used and should be removed
SafeMath.mod(uint256,uint256) (#66-68) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#84-89) is never used and should be removed
SafeMath.tryAdd(uint256,uint256) (#9-15) is never used and should be removed
SafeMath.tryDiv(uint256,uint256) (#36-41) is never used and should be removed
SafeMath.tryMod(uint256,uint256) (#43-48) is never used and should be removed
SafeMath.tryMul(uint256,uint256) (#24-34) is never used and should be removed
SafeMath.trySub(uint256,uint256) (#17-22) is never used and should be removed
Remove unused functions.
Additional information: link
Emerald.maxTransactionSize (#389) is set pre-construction with a non-constant function or state variable:
- _totalSupply.div(181)
Emerald.maxWalletBalance (#390) is set pre-construction with a non-constant function or state variable:
- _totalSupply.div(100)
Emerald.swapThreshold (#392) 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
Pragma version^0.8.0 (#5) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6
solc-0.8.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
Function IDEXRouter.WETH() (#176) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minPeriod (#257) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minDistribution (#257) is not in mixedCase
Variable DividendDistributor._token (#213) is not in mixedCase
Variable DividendDistributor.DIVIDEND_TOKEN (#221) is not in mixedCase
Variable DividendDistributor.WETH (#222) is not in mixedCase
Variable DividendDistributor.BUSD (#223) is not in mixedCase
Function Emerald.Sweep() (#618-621) is not in mixedCase
Parameter Emerald.setPresaleAddress(bool,address)._enabled (#623) is not in mixedCase
Parameter Emerald.setFeeReceivers(address,address)._autoLiquidityReceiver (#652) is not in mixedCase
Parameter Emerald.setFeeReceivers(address,address)._marketingFeeReceiver (#652) is not in mixedCase
Parameter Emerald.setRouters(address,address)._myRouter (#665) is not in mixedCase
Parameter Emerald.setRouters(address,address)._rewardRouter (#665) is not in mixedCase
Parameter Emerald.setSwapBackSettings(bool,uint256)._enabled (#682) is not in mixedCase
Parameter Emerald.setSwapBackSettings(bool,uint256)._amount (#682) is not in mixedCase
Parameter Emerald.setTargetLiquidityPct(uint256)._target (#688) is not in mixedCase
Parameter Emerald.setDistributionCriteria(uint256,uint256)._minPeriod (#693) is not in mixedCase
Parameter Emerald.setDistributionCriteria(uint256,uint256)._minDistribution (#693) is not in mixedCase
Parameter Emerald.launch(bool)._enabled (#702) is not in mixedCase
Parameter Emerald.setFeeOptions(bool,uint256,uint256,uint256)._enabled (#710) is not in mixedCase
Parameter Emerald.setFeeOptions(bool,uint256,uint256,uint256)._reflectionFee (#710) is not in mixedCase
Parameter Emerald.setFeeOptions(bool,uint256,uint256,uint256)._liquidityFee (#710) is not in mixedCase
Parameter Emerald.setFeeOptions(bool,uint256,uint256,uint256)._marketingFee (#710) is not in mixedCase
Parameter Emerald.setMaxPerTransactionEnabled(bool)._enabled (#719) is not in mixedCase
Parameter Emerald.setMaxPerWalletEnabled(bool)._enabled (#723) is not in mixedCase
Parameter Emerald.setDividendsEnabled(bool)._enabled (#727) is not in mixedCase
Constant Emerald._name (#377) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Emerald._symbol (#378) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Emerald._decimals (#379) is not in UPPER_CASE_WITH_UNDERSCORES
Variable Emerald._totalSupply (#382) is not in mixedCase
Variable Emerald.DIVIDEND_TOKEN (#394) is not in mixedCase
Variable Emerald.WETH (#395) is not in mixedCase
Variable Emerald.BUSD (#396) is not in mixedCase
Variable Emerald._balances (#398) is not in mixedCase
Variable Emerald._allowances (#399) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Reentrancy in Emerald._transferFrom(address,address,uint256) (#523-571):
External calls:
- swapBack() (#544)
- address(marketingFeeReceiver).transfer(amountETHMarketing) (#603)
External calls sending eth:
- swapBack() (#544)
- distributor.deposit{value: amountETHReflection}() (#602)
- address(marketingFeeReceiver).transfer(amountETHMarketing) (#603)
- myRouter.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#606-613)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#547)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#554)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#560)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#555)
- Transfer(sender,recipient,amountReceived) (#569)
Reentrancy in Emerald.swapBack() (#573-616):
External calls:
- address(marketingFeeReceiver).transfer(amountETHMarketing) (#603)
External calls sending eth:
- distributor.deposit{value: amountETHReflection}() (#602)
- address(marketingFeeReceiver).transfer(amountETHMarketing) (#603)
- myRouter.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#606-613)
Event emitted after the call(s):
- AutoLiquify(amountETHLiquidity,amountToLiquify) (#614)
Apply the check-effects-interactions pattern.
Additional information: link
Emerald.slitherConstructorVariables() (#374-733) uses literals with too many digits:
- distributorGas = 500000 (#419)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
DividendDistributor.dividendsPerShareAccuracyFactor (#236) should be constant
Emerald._totalSupply (#382) 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) (#133-135)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#140-142)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#161-165)
Use the external attribute for functions never called from the contract.
Additional information: link
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Number of Binance Smart Chain (BSC) token holders is low.
Token is deployed only at one blockchain
Token has only one trading pair
Unable to find PancakeSwap trading pair to compute liquidity.
Unable to find PancakeSwap trading pair to compute volume.
Unable to find PancakeSwap trading pair to compute number of swaps.
Unable to find website, listings and other project-related information
Young tokens have high risks of price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Unable to find Telegram and Twitter accounts