# What is EDAC?
EDAC is the tokenization of mining power, in the Binance Smart Chain and in the Ethereum Blockchain (ERC20 token). Token holders can contribute to the process of securing PoW blockchain networks while benefiting from the block rewards indirectly with EDAC.
## How it works?
The process is as follows: EDAC tokens are sold and used to buy hashrate power, i.e. through rigs. This power generates mining rewards. The net income (around 50% of all ETH rewards) is used to buyback EDAC coins, which will immediately be burnt. This constant demand and decreasing supply should impulse EDAC price to new All-Time Highs.
When an ATH is reached (not before), up to a 0.5% of token supply can be sold to buy new mining capacity, conforming a virtuous circle of returns.
BABYTOKEN.addLiquidity(uint256,uint256) (#3121-3134) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in BABYTOKEN._transfer(address,address,uint256) (#2964-3048):
External calls:
- swapAndSendToFee(marketingTokens) (#2993)
- IERC20(rewardToken).transfer(_marketingWalletAddress,newBalance) (#3059)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3112-3118)
- swapAndLiquify(swapTokens) (#2998)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3094-3100)
- swapAndSendDividends(sellTokens) (#3001)
- success = IERC20(rewardToken).transfer(address(dividendTracker),dividends) (#3139-3142)
- dividendTracker.distributeCAKEDividends(dividends) (#3145)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3112-3118)
External calls sending eth:
- swapAndLiquify(swapTokens) (#2998)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (#3020)
- _balances[sender] = senderBalance - amount (#375)
- _balances[recipient] += amount (#377)
- super._transfer(from,to,amount) (#3023)
- _balances[sender] = senderBalance - amount (#375)
- _balances[recipient] += amount (#377)
- swapping = false (#3003)
Apply the check-effects-interactions pattern.
Additional information: link
BABYTOKEN.swapAndSendToFee(uint256) (#3050-3060) ignores return value by IERC20(rewardToken).transfer(_marketingWalletAddress,newBalance) (#3059)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
Contract ownership is not renounced (belongs to a wallet)
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.
SafeMathInt.MAX_INT256 (#1843) is never used in SafeMathInt (#1841-1898)
OwnableUpgradeable.__gap (#1774) is never used in BABYTOKENDividendTracker (#2274-2538)
Remove unused state variables.
Additional information: link
BABYTOKENDividendTracker.canAutoClaim(uint256) (#2444-2450) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#2445)
- block.timestamp.sub(lastClaimTime) >= claimWait (#2449)
BABYTOKENDividendTracker.getAccount(address) (#2372-2419) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (#2416-2418)
Avoid relying on block.timestamp.
Additional information: link
Clones.predictDeterministicAddress(address,bytes32,address) (#859-874) uses assembly
- INLINE ASM (#864-873)
Clones.clone(address) (#827-836) uses assembly
- INLINE ASM (#828-834)
Clones.cloneDeterministic(address,bytes32) (#845-854) uses assembly
- INLINE ASM (#846-852)
Do not use evm assembly.
Additional information: link
Reentrancy in BABYTOKEN.swapAndLiquify(uint256) (#3062-3083):
External calls:
- swapTokensForEth(half) (#3074)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3094-3100)
- addLiquidity(otherHalf,newBalance) (#3080)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#3080)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#455)
- addLiquidity(otherHalf,newBalance) (#3080)
- SwapAndLiquify(half,newBalance,otherHalf) (#3082)
Reentrancy in BABYTOKEN._transfer(address,address,uint256) (#2964-3048):
External calls:
- swapAndSendToFee(marketingTokens) (#2993)
- IERC20(rewardToken).transfer(_marketingWalletAddress,newBalance) (#3059)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3112-3118)
- swapAndLiquify(swapTokens) (#2998)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3094-3100)
- swapAndSendDividends(sellTokens) (#3001)
- success = IERC20(rewardToken).transfer(address(dividendTracker),dividends) (#3139-3142)
- dividendTracker.distributeCAKEDividends(dividends) (#3145)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3112-3118)
- dividendTracker.setBalance(address(from),balanceOf(from)) (#3025-3027)
- dividendTracker.setBalance(address(to),balanceOf(to)) (#3028)
- dividendTracker.process(gas) (#3033-3046)
External calls sending eth:
- swapAndLiquify(swapTokens) (#2998)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#3038-3045)
Reentrancy in BABYTOKENDividendTracker.processAccount(address,bool) (#2523-2537):
External calls:
- amount = _withdrawDividendOfUser(account) (#2528)
- success = IERC20(rewardToken).transfer(user,_withdrawableDividend) (#2147-2150)
Event emitted after the call(s):
- Claim(account,amount,automatic) (#2532)
Reentrancy in BABYTOKEN._transfer(address,address,uint256) (#2964-3048):
External calls:
- swapAndSendToFee(marketingTokens) (#2993)
- IERC20(rewardToken).transfer(_marketingWalletAddress,newBalance) (#3059)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3112-3118)
- swapAndLiquify(swapTokens) (#2998)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3094-3100)
External calls sending eth:
- swapAndLiquify(swapTokens) (#2998)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#455)
- swapAndLiquify(swapTokens) (#2998)
- SwapAndLiquify(half,newBalance,otherHalf) (#3082)
- swapAndLiquify(swapTokens) (#2998)
Reentrancy in BABYTOKEN._setAutomatedMarketMakerPair(address,bool) (#2816-2828):
External calls:
- dividendTracker.excludeFromDividends(pair) (#2824)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#2827)
Reentrancy in BABYTOKEN.processDividendTracker(uint256) (#2936-2950):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (#2937-2941)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (#2942-2949)
Reentrancy in BABYTOKEN._transfer(address,address,uint256) (#2964-3048):
External calls:
- swapAndSendToFee(marketingTokens) (#2993)
- IERC20(rewardToken).transfer(_marketingWalletAddress,newBalance) (#3059)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3112-3118)
- swapAndLiquify(swapTokens) (#2998)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3094-3100)
- swapAndSendDividends(sellTokens) (#3001)
- success = IERC20(rewardToken).transfer(address(dividendTracker),dividends) (#3139-3142)
- dividendTracker.distributeCAKEDividends(dividends) (#3145)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3112-3118)
External calls sending eth:
- swapAndLiquify(swapTokens) (#2998)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#455)
- swapAndSendDividends(sellTokens) (#3001)
- SendDividends(tokens,dividends) (#3146)
- swapAndSendDividends(sellTokens) (#3001)
- Transfer(sender,recipient,amount) (#379)
- super._transfer(from,address(this),fees) (#3020)
- Transfer(sender,recipient,amount) (#379)
- super._transfer(from,to,amount) (#3023)
Reentrancy in BABYTOKEN.updateDividendTracker(address) (#2724-2747):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#2739)
- newDividendTracker.excludeFromDividends(address(this)) (#2740)
- newDividendTracker.excludeFromDividends(owner()) (#2741)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#2742)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (#2744)
Reentrancy in BABYTOKEN.swapAndSendDividends(uint256) (#3136-3148):
External calls:
- swapTokensForCake(tokens) (#3137)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3112-3118)
- success = IERC20(rewardToken).transfer(address(dividendTracker),dividends) (#3139-3142)
- dividendTracker.distributeCAKEDividends(dividends) (#3145)
Event emitted after the call(s):
- SendDividends(tokens,dividends) (#3146)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in BABYTOKEN.updateDividendTracker(address) (#2724-2747):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#2739)
- newDividendTracker.excludeFromDividends(address(this)) (#2740)
- newDividendTracker.excludeFromDividends(owner()) (#2741)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#2742)
State variables written after the call(s):
- dividendTracker = newDividendTracker (#2746)
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#2137-2163):
External calls:
- success = IERC20(rewardToken).transfer(user,_withdrawableDividend) (#2147-2150)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (#2153-2155)
Apply the check-effects-interactions pattern.
Additional information: link
BABYTOKEN._transfer(address,address,uint256).iterations (#3034) is a local variable never initialized
BABYTOKEN._transfer(address,address,uint256).lastProcessedIndex (#3036) is a local variable never initialized
BABYTOKEN._transfer(address,address,uint256).claims (#3035) is a local variable never initialized
Initialize all the variables. If a variable is meant to be initialized to zero, explicitly set it to zero to improve code readability.
Additional information: link
BABYTOKEN._transfer(address,address,uint256) (#2964-3048) ignores return value by dividendTracker.process(gas) (#3033-3046)
BABYTOKEN.claim() (#2952-2954) ignores return value by dividendTracker.processAccount(address(msg.sender),false) (#2953)
BABYTOKEN.addLiquidity(uint256,uint256) (#3121-3134) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.__DividendPayingToken_init(address,string,string)._name (#2108) shadows:
- ERC20Upgradeable._name (#1374) (state variable)
DividendPayingToken.dividendOf(address)._owner (#2168) shadows:
- OwnableUpgradeable._owner (#1718) (state variable)
DividendPayingToken.withdrawnDividendOf(address)._owner (#2187) shadows:
- OwnableUpgradeable._owner (#1718) (state variable)
DividendPayingToken.accumulativeDividendOf(address)._owner (#2201) shadows:
- OwnableUpgradeable._owner (#1718) (state variable)
DividendPayingToken.__DividendPayingToken_init(address,string,string)._symbol (#2109) shadows:
- ERC20Upgradeable._symbol (#1375) (state variable)
DividendPayingToken.withdrawableDividendOf(address)._owner (#2175) shadows:
- OwnableUpgradeable._owner (#1718) (state variable)
Rename the local variables that shadow another component.
Additional information: link
BABYTOKEN.setSwapTokensAtAmount(uint256) (#2720-2722) should emit an event for:
- swapTokensAtAmount = amount (#2721)
BABYTOKEN.setLiquiditFee(uint256) (#2792-2796) should emit an event for:
- liquidityFee = value (#2793)
- totalFees = tokenRewardsFee.add(liquidityFee).add(marketingFee) (#2794)
BABYTOKEN.setMarketingFee(uint256) (#2798-2802) should emit an event for:
- marketingFee = value (#2799)
- totalFees = tokenRewardsFee.add(liquidityFee).add(marketingFee) (#2800)
BABYTOKEN.setTokenRewardsFee(uint256) (#2786-2790) should emit an event for:
- totalFees = tokenRewardsFee.add(liquidityFee).add(marketingFee) (#2788)
Emit an event for critical parameter changes.
Additional information: link
BABYTOKEN.updateUniswapV2Router(address)._uniswapV2Pair (#2756-2757) lacks a zero-check on :
- uniswapV2Pair = _uniswapV2Pair (#2758)
BABYTOKEN.constructor(string,string,uint256,address[4],uint256[3],uint256,address,uint256).serviceFeeReceiver_ (#2661) lacks a zero-check on :
- address(serviceFeeReceiver_).transfer(serviceFee_) (#2715)
BABYTOKEN.constructor(string,string,uint256,address[4],uint256[3],uint256,address,uint256)._uniswapV2Pair (#2691-2692) lacks a zero-check on :
- uniswapV2Pair = _uniswapV2Pair (#2694)
BABYTOKEN.setMarketingWallet(address).wallet (#2782) lacks a zero-check on :
- _marketingWalletAddress = wallet (#2783)
Check that the address is not zero.
Additional information: link
DividendPayingToken._withdrawDividendOfUser(address) (#2137-2163) has external calls inside a loop: success = IERC20(rewardToken).transfer(user,_withdrawableDividend) (#2147-2150)
Favor pull over push strategy for external calls.
Additional information: link
Variable 'BABYTOKEN._transfer(address,address,uint256).iterations (#3034)' in BABYTOKEN._transfer(address,address,uint256) (#2964-3048) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#3038-3045)
Variable 'BABYTOKEN._transfer(address,address,uint256).claims (#3035)' in BABYTOKEN._transfer(address,address,uint256) (#2964-3048) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#3038-3045)
Variable 'BABYTOKEN._transfer(address,address,uint256).lastProcessedIndex (#3036)' in BABYTOKEN._transfer(address,address,uint256) (#2964-3048) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#3038-3045)
Move all variable declarations prior to any usage of the variable, and ensure that reaching a variable declaration does not depend on some conditional if it is used unconditionally.
Additional information: link
Reentrancy in BABYTOKENDividendTracker.processAccount(address,bool) (#2523-2537):
External calls:
- amount = _withdrawDividendOfUser(account) (#2528)
- success = IERC20(rewardToken).transfer(user,_withdrawableDividend) (#2147-2150)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (#2531)
Reentrancy in BABYTOKEN._transfer(address,address,uint256) (#2964-3048):
External calls:
- swapAndSendToFee(marketingTokens) (#2993)
- IERC20(rewardToken).transfer(_marketingWalletAddress,newBalance) (#3059)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3112-3118)
- swapAndLiquify(swapTokens) (#2998)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3094-3100)
- swapAndSendDividends(sellTokens) (#3001)
- success = IERC20(rewardToken).transfer(address(dividendTracker),dividends) (#3139-3142)
- dividendTracker.distributeCAKEDividends(dividends) (#3145)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3112-3118)
External calls sending eth:
- swapAndLiquify(swapTokens) (#2998)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (#3001)
- _allowances[owner][spender] = amount (#454)
Reentrancy in BABYTOKEN.updateUniswapV2Router(address) (#2749-2759):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (#2756-2757)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#2758)
Reentrancy in BABYTOKEN._transfer(address,address,uint256) (#2964-3048):
External calls:
- swapAndSendToFee(marketingTokens) (#2993)
- IERC20(rewardToken).transfer(_marketingWalletAddress,newBalance) (#3059)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3112-3118)
- swapAndLiquify(swapTokens) (#2998)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3094-3100)
External calls sending eth:
- swapAndLiquify(swapTokens) (#2998)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
State variables written after the call(s):
- swapAndLiquify(swapTokens) (#2998)
- _allowances[owner][spender] = amount (#454)
Reentrancy in BABYTOKEN.swapAndLiquify(uint256) (#3062-3083):
External calls:
- swapTokensForEth(half) (#3074)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#3094-3100)
- addLiquidity(otherHalf,newBalance) (#3080)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#3080)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#3126-3133)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#3080)
- _allowances[owner][spender] = amount (#454)
Apply the check-effects-interactions pattern.
Additional information: link
ContextUpgradeable._msgData() (#1325-1327) is never used and should be removed
SafeMathInt.div(int256,int256) (#1860-1866) is never used and should be removed
SafeMath.tryDiv(uint256,uint256) (#637-642) is never used and should be removed
Clones.predictDeterministicAddress(address,bytes32) (#879-885) is never used and should be removed
SafeMathInt.abs(int256) (#1889-1892) is never used and should be removed
SafeMath.tryMod(uint256,uint256) (#649-654) is never used and should be removed
SafeMath.sub(uint256,uint256,string) (#741-750) is never used and should be removed
SafeMathInt.mul(int256,int256) (#1848-1855) is never used and should be removed
Clones.predictDeterministicAddress(address,bytes32,address) (#859-874) is never used and should be removed
SafeMath.tryAdd(uint256,uint256) (#595-601) is never used and should be removed
ERC20._burn(address,uint256) (#416-431) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#790-799) is never used and should be removed
SafeMath.div(uint256,uint256,string) (#764-773) is never used and should be removed
Context._msgData() (#136-138) is never used and should be removed
ERC20Upgradeable._transfer(address,address,uint256) (#1558-1578) is never used and should be removed
SafeMath.mod(uint256,uint256) (#724-726) is never used and should be removed
Clones.cloneDeterministic(address,bytes32) (#845-854) is never used and should be removed
SafeMath.tryMul(uint256,uint256) (#620-630) is never used and should be removed
SafeMath.trySub(uint256,uint256) (#608-613) is never used and should be removed
DividendPayingToken._transfer(address,address,uint256) (#2220-2235) is never used and should be removed
ContextUpgradeable.__Context_init() (#1315-1317) is never used and should be removed
Remove unused functions.
Additional information: link
Parameter DividendPayingToken.__DividendPayingToken_init(address,string,string)._name (#2108) is not in mixedCase
Variable ContextUpgradeable.__gap (#1328) is not in mixedCase
Parameter BABYTOKENDividendTracker.getAccount(address)._account (#2372) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#1798) is not in mixedCase
Function OwnableUpgradeable.__Ownable_init() (#1725-1728) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#1815) is not in mixedCase
Parameter DividendPayingToken.__DividendPayingToken_init(address,string,string)._rewardToken (#2107) is not in mixedCase
Constant DividendPayingToken.magnitude (#2086) is not in UPPER_CASE_WITH_UNDERSCORES
Variable OwnableUpgradeable.__gap (#1774) is not in mixedCase
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#1797) is not in mixedCase
Function ERC20Upgradeable.__ERC20_init_unchained(string,string) (#1391-1394) is not in mixedCase
Function ERC20Upgradeable.__ERC20_init(string,string) (#1386-1389) is not in mixedCase
Function ContextUpgradeable.__Context_init_unchained() (#1319-1320) is not in mixedCase
Variable ERC20Upgradeable.__gap (#1693) is not in mixedCase
Parameter DividendPayingToken.dividendOf(address)._owner (#2168) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (#2187) is not in mixedCase
Variable BABYTOKEN._marketingWalletAddress (#2601) is not in mixedCase
Parameter DividendPayingToken.__DividendPayingToken_init(address,string,string)._symbol (#2109) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (#2175) is not in mixedCase
Function OwnableUpgradeable.__Ownable_init_unchained() (#1730-1732) is not in mixedCase
Function IUniswapV2Router01.WETH() (#931) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (#2201) is not in mixedCase
Function ContextUpgradeable.__Context_init() (#1315-1317) is not in mixedCase
Function DividendPayingToken.__DividendPayingToken_init(address,string,string) (#2106-2114) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#936) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#937)
Variable DividendPayingToken.__DividendPayingToken_init(address,string,string)._rewardToken (#2107) is too similar to BABYTOKENDividendTracker.initialize(address,uint256).rewardToken_ (#2299)
Variable ERC20._totalSupply (#181) is too similar to BABYTOKEN.constructor(string,string,uint256,address[4],uint256[3],uint256,address,uint256).totalSupply_ (#2657)
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#2141) is too similar to BABYTOKENDividendTracker.getAccount(address).withdrawableDividends (#2379)
Prevent variables from having similar names.
Additional information: link
BABYTOKEN.constructor(string,string,uint256,address[4],uint256[3],uint256,address,uint256) (#2654-2716) uses literals with too many digits:
- gasForProcessing = 300000 (#2679)
Clones.cloneDeterministic(address,bytes32) (#845-854) uses literals with too many digits:
- mstore(uint256,uint256)(ptr_cloneDeterministic_asm_0 + 0x28,0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) (#850)
Clones.cloneDeterministic(address,bytes32) (#845-854) uses literals with too many digits:
- mstore(uint256,uint256)(ptr_cloneDeterministic_asm_0,0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) (#848)
Clones.predictDeterministicAddress(address,bytes32,address) (#859-874) uses literals with too many digits:
- mstore(uint256,uint256)(ptr_predictDeterministicAddress_asm_0 + 0x28,0x5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000) (#868)
BABYTOKEN.updateGasForProcessing(uint256) (#2830-2841) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 500000,BABYTOKEN: gasForProcessing must be between 200,000 and 500,000) (#2831-2834)
Clones.clone(address) (#827-836) uses literals with too many digits:
- mstore(uint256,uint256)(ptr_clone_asm_0 + 0x28,0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) (#832)
Clones.clone(address) (#827-836) uses literals with too many digits:
- mstore(uint256,uint256)(ptr_clone_asm_0,0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) (#830)
Clones.predictDeterministicAddress(address,bytes32,address) (#859-874) uses literals with too many digits:
- mstore(uint256,uint256)(ptr_predictDeterministicAddress_asm_0,0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) (#866)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
transferFrom(address,address,uint256) should be declared external:
- ERC20Upgradeable.transferFrom(address,address,uint256) (#1487-1501)
updateGasForProcessing(uint256) should be declared external:
- BABYTOKEN.updateGasForProcessing(uint256) (#2830-2841)
distributeCAKEDividends(uint256) should be declared external:
- DividendPayingToken.distributeCAKEDividends(uint256) (#2116-2127)
get(IterableMapping.Map,address) should be declared external:
- IterableMapping.get(IterableMapping.Map,address) (#1931-1933)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#291-305)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (#1946-1952)
isExcludedFromFees(address) should be declared external:
- BABYTOKEN.isExcludedFromFees(address) (#2870-2872)
transferOwnership(address) should be declared external:
- OwnableUpgradeable.transferOwnership(address) (#1764-1767)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#553-555)
name() should be declared external:
- ERC20Upgradeable.name() (#1399-1401)
decimals() should be declared external:
- ERC20.decimals() (#228-230)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (#2168-2170)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (#1935-1944)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#338-346)
symbol() should be declared external:
- ERC20.symbol() (#211-213)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#254-257)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#319-322)
symbol() should be declared external:
- ERC20Upgradeable.symbol() (#1407-1409)
withdrawableDividendOf(address) should be declared external:
- BABYTOKEN.withdrawableDividendOf(address) (#2874-2880)
increaseAllowance(address,uint256) should be declared external:
- ERC20Upgradeable.increaseAllowance(address,uint256) (#1515-1518)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (#1954-1956)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#561-564)
updateDividendTracker(address) should be declared external:
- BABYTOKEN.updateDividendTracker(address) (#2724-2747)
withdrawDividend() should be declared external:
- BABYTOKENDividendTracker.withdrawDividend() (#2319-2324)
- DividendPayingToken.withdrawDividend() (#2131-2133)
name() should be declared external:
- ERC20.name() (#203-205)
approve(address,uint256) should be declared external:
- ERC20Upgradeable.approve(address,uint256) (#1469-1472)
decreaseAllowance(address,uint256) should be declared external:
- ERC20Upgradeable.decreaseAllowance(address,uint256) (#1534-1542)
renounceOwnership() should be declared external:
- OwnableUpgradeable.renounceOwnership() (#1756-1758)
updateUniswapV2Router(address) should be declared external:
- BABYTOKEN.updateUniswapV2Router(address) (#2749-2759)
dividendTokenBalanceOf(address) should be declared external:
- BABYTOKEN.dividendTokenBalanceOf(address) (#2882-2888)
decimals() should be declared external:
- ERC20Upgradeable.decimals() (#1424-1426)
totalSupply() should be declared external:
- ERC20.totalSupply() (#235-237)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- BABYTOKEN.setAutomatedMarketMakerPair(address,bool) (#2804-2814)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#273-276)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- BABYTOKEN.excludeMultipleAccountsFromFees(address[],bool) (#2771-2780)
allowance(address,address) should be declared external:
- ERC20Upgradeable.allowance(address,address) (#1458-1460)
process(uint256) should be declared external:
- BABYTOKENDividendTracker.process(uint256) (#2469-2521)
isExcludedFromDividends(address) should be declared external:
- BABYTOKENDividendTracker.isExcludedFromDividends(address) (#2336-2342)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (#2187-2194)
getAccountAtIndex(uint256) should be declared external:
- BABYTOKENDividendTracker.getAccountAtIndex(uint256) (#2421-2442)
isExcludedFromDividends(address) should be declared external:
- BABYTOKEN.isExcludedFromDividends(address) (#2894-2900)
transfer(address,uint256) should be declared external:
- ERC20Upgradeable.transfer(address,uint256) (#1450-1453)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#262-264)
Use the external attribute for functions never called from the contract.
Additional information: link
Average 30d PancakeSwap volume is less than $100. Token is either dead or inactive.
Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.
Contract has 12% buy tax and 13% sell tax.
Taxes are suspiciously high (over 10%) and contract ownership is not renounced. Token has a high risk of becoming a honeypot.
Average 30d number of PancakeSwap swaps is less than 1. Token is either dead or inactive.
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 has no active CoinGecko listing / rank
Token has a considerable age, but social accounts / website are missing or have few users
Token has a considerable age, but average PancakeSwap 30d trading volume is low
Token has relatively low CoinMarketCap rank
Twitter account link seems to be invalid
Unable to find Discord account