It was a normal day in the small town of springfield that at the moe's bar, homer heard about cryptocurrencies
he who usually has no entrepreneurial spirit (or anything else for that matter) saw in this opportunity the way to be able to afford more duff beer but also to develop the local economy. So he used his imagination to create the HOMER COIN, but he didn't imagine how much his project would impact the entire universe!
Reentrancy in TaxDistributor.distribute() (TaxDistributor.sol#78-173):
External calls:
- _router.swapExactTokensForETH(totalTokens,0,path,address(this),block.timestamp + 300) (TaxDistributor.sol#95-101)
- token.transfer(taxes[i_scope_3].location,checkTokenAmount(token,taxes[i_scope_3].taxPool)) (TaxDistributor.sol#131)
- token.approve(taxes[i_scope_3].location,taxes[i_scope_3].taxPool) (TaxDistributor.sol#138)
- IWalletDistributor(taxes[i_scope_3].location).receiveToken(_token,address(this),checkTokenAmount(token,taxes[i_scope_3].taxPool)) (TaxDistributor.sol#139)
- IDividendDistributor(taxes[i_scope_3].location).depositNative{value: taxes[i_scope_3].share}() (TaxDistributor.sol#144)
- IDividendDistributor(taxes[i_scope_3].location).depositToken(address(this),checkTokenAmount(token,taxes[i_scope_3].taxPool)) (TaxDistributor.sol#146)
- IBurnable(_token).burn(address(this),checkTokenAmount(token,taxes[i_scope_3].taxPool)) (TaxDistributor.sol#150)
- _router.addLiquidityETH{value: taxes[i_scope_3].share}(_token,half_scope_4,0,0,IOwnable(_token).owner(),block.timestamp + 300) (TaxDistributor.sol#155-162)
External calls sending eth:
- address(taxes[i_scope_3].location).transfer(taxes[i_scope_3].share) (TaxDistributor.sol#129)
- address(taxes[i_scope_3].location).transfer(taxes[i_scope_3].share) (TaxDistributor.sol#136)
- IDividendDistributor(taxes[i_scope_3].location).depositNative{value: taxes[i_scope_3].share}() (TaxDistributor.sol#144)
- _router.addLiquidityETH{value: taxes[i_scope_3].share}(_token,half_scope_4,0,0,IOwnable(_token).owner(),block.timestamp + 300) (TaxDistributor.sol#155-162)
State variables written after the call(s):
- taxes[i_scope_3].taxPool = 0 (TaxDistributor.sol#166)
- taxes[i_scope_3].share = 0 (TaxDistributor.sol#167)
Apply the check-effects-interactions pattern.
Additional information: link
TaxDistributor.distribute() (TaxDistributor.sol#78-173) ignores return value by token.transfer(taxes[i_scope_3].location,checkTokenAmount(token,taxes[i_scope_3].taxPool)) (TaxDistributor.sol#131)
DividendDistributor.depositToken(address,uint256) (_Homer.sol#188-196) ignores return value by tokenContract.transferFrom(from,address(this),amount) (_Homer.sol#190)
DividendDistributor.distributeTokenDividend(address) (_Homer.sol#231-245) ignores return value by tokenContract.transfer(IOwnable(_token).owner(),tokenAmount) (_Homer.sol#238)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
BaseErc20._useSafeTransfer (BaseErc20.sol#14) is never initialized. It is used in:
- BaseErc20._transfer(address,address,uint256) (BaseErc20.sol#213-234)
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
Contract locking ether found:
Contract DividendDistributor (_Homer.sol#102-276) has payable functions:
- IDividendDistributor.depositNative() (Interfaces.sol#41)
- DividendDistributor.depositNative() (_Homer.sol#184-186)
But does not have a function to withdraw the ether
Remove the payable attribute or add a withdraw function.
Additional information: link
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.
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
Contract ownership is not renounced (belongs to a wallet)
Reentrancy in TaxDistributor.distribute() (TaxDistributor.sol#78-173):
External calls:
- _router.swapExactTokensForETH(totalTokens,0,path,address(this),block.timestamp + 300) (TaxDistributor.sol#95-101)
State variables written after the call(s):
- taxes[i_scope_0].share = toDistribute (TaxDistributor.sol#110)
- taxes[i_scope_0].share = share (TaxDistributor.sol#114)
- taxes[i_scope_0].share = share_scope_2 (TaxDistributor.sol#118)
Reentrancy in DividendDistributor.distributeTokenDividend(address) (_Homer.sol#231-245):
External calls:
- tokenContract.transfer(IOwnable(_token).owner(),tokenAmount) (_Homer.sol#238)
State variables written after the call(s):
- shares[shareholder].totalTokenRealised = shares[shareholder].totalTokenRealised.add(tokenAmount) (_Homer.sol#241)
- shares[shareholder].totalTokenExcluded = getTokenCumulativeDividends(shares[shareholder].amount) (_Homer.sol#242)
Reentrancy in DividendDistributor.process(uint256) (_Homer.sol#198-224):
External calls:
- tokenDistributed += distributeTokenDividend(shareholders[currentIndex]) (_Homer.sol#214)
- tokenContract.transfer(IOwnable(_token).owner(),tokenAmount) (_Homer.sol#238)
State variables written after the call(s):
- currentIndex ++ (_Homer.sol#219)
Apply the check-effects-interactions pattern.
Additional information: link
TaxDistributor.setTaxWallet(string,address).updated (TaxDistributor.sol#192) is a local variable never initialized
DividendDistributor.process(uint256).tokenDistributed (_Homer.sol#206) is a local variable never initialized
DividendDistributor.process(uint256).iterations (_Homer.sol#205) is a local variable never initialized
TaxDistributor.setSellTax(string,uint256).updated (TaxDistributor.sol#203) is a local variable never initialized
DividendDistributor.process(uint256).gasUsed (_Homer.sol#203) is a local variable never initialized
TaxDistributor.setBuyTax(string,uint256).updated (TaxDistributor.sol#215) is a local variable never initialized
TaxDistributor.distribute().totalTokens (TaxDistributor.sol#84) 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
TaxDistributor.distribute() (TaxDistributor.sol#78-173) ignores return value by _router.swapExactTokensForETH(totalTokens,0,path,address(this),block.timestamp + 300) (TaxDistributor.sol#95-101)
TaxDistributor.distribute() (TaxDistributor.sol#78-173) ignores return value by token.approve(taxes[i_scope_3].location,taxes[i_scope_3].taxPool) (TaxDistributor.sol#138)
TaxDistributor.distribute() (TaxDistributor.sol#78-173) ignores return value by _router.addLiquidityETH{value: taxes[i_scope_3].share}(_token,half_scope_4,0,0,IOwnable(_token).owner(),block.timestamp + 300) (TaxDistributor.sol#155-162)
Ensure that all the return values of the function calls are used.
Additional information: link
BaseErc20.changeOwner(address) (BaseErc20.sol#173-176) should emit an event for:
- owner = who (BaseErc20.sol#175)
- owner = who (BaseErc20.sol#175)
Emit an event for critical parameter changes.
Additional information: link
DividendDistributor.setDistributionCriteria(uint256,uint256,uint256) (_Homer.sol#166-170) should emit an event for:
- minPeriod = _minPeriod (_Homer.sol#167)
- minTokenDistribution = _minTokenDistribution (_Homer.sol#168)
DividendDistributor.depositToken(address,uint256) (_Homer.sol#188-196) should emit an event for:
- tokenDividendsPerShare = tokenDividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (_Homer.sol#193)
Emit an event for critical parameter changes.
Additional information: link
TaxDistributor.constructor(address,address,address).wbnb (TaxDistributor.sol#48) lacks a zero-check on :
- _wbnb = wbnb (TaxDistributor.sol#50)
TaxDistributor.constructor(address,address,address).pair (TaxDistributor.sol#48) lacks a zero-check on :
- tokenPair = pair (TaxDistributor.sol#52)
TaxDistributor.constructor(address,address,address).router (TaxDistributor.sol#48) lacks a zero-check on :
- routerAddress = router (TaxDistributor.sol#53)
DividendDistributor.constructor(address).distributor (_Homer.sol#156) lacks a zero-check on :
- _distributor = distributor (_Homer.sol#159)
Check that the address is not zero.
Additional information: link
TaxDistributor.distribute() (TaxDistributor.sol#78-173) has external calls inside a loop: address(taxes[i_scope_3].location).transfer(taxes[i_scope_3].share) (TaxDistributor.sol#129)
TaxDistributor.checkTokenAmount(IERC20,uint256) (TaxDistributor.sol#256-262) has external calls inside a loop: balance = token.balanceOf(address(this)) (TaxDistributor.sol#257)
TaxDistributor.distribute() (TaxDistributor.sol#78-173) has external calls inside a loop: token.transfer(taxes[i_scope_3].location,checkTokenAmount(token,taxes[i_scope_3].taxPool)) (TaxDistributor.sol#131)
TaxDistributor.distribute() (TaxDistributor.sol#78-173) has external calls inside a loop: address(taxes[i_scope_3].location).transfer(taxes[i_scope_3].share) (TaxDistributor.sol#136)
TaxDistributor.distribute() (TaxDistributor.sol#78-173) has external calls inside a loop: token.approve(taxes[i_scope_3].location,taxes[i_scope_3].taxPool) (TaxDistributor.sol#138)
TaxDistributor.distribute() (TaxDistributor.sol#78-173) has external calls inside a loop: IWalletDistributor(taxes[i_scope_3].location).receiveToken(_token,address(this),checkTokenAmount(token,taxes[i_scope_3].taxPool)) (TaxDistributor.sol#139)
TaxDistributor.distribute() (TaxDistributor.sol#78-173) has external calls inside a loop: IDividendDistributor(taxes[i_scope_3].location).depositNative{value: taxes[i_scope_3].share}() (TaxDistributor.sol#144)
TaxDistributor.distribute() (TaxDistributor.sol#78-173) has external calls inside a loop: IDividendDistributor(taxes[i_scope_3].location).depositToken(address(this),checkTokenAmount(token,taxes[i_scope_3].taxPool)) (TaxDistributor.sol#146)
TaxDistributor.distribute() (TaxDistributor.sol#78-173) has external calls inside a loop: IBurnable(_token).burn(address(this),checkTokenAmount(token,taxes[i_scope_3].taxPool)) (TaxDistributor.sol#150)
TaxDistributor.distribute() (TaxDistributor.sol#78-173) has external calls inside a loop: _router.addLiquidityETH{value: taxes[i_scope_3].share}(_token,half_scope_4,0,0,IOwnable(_token).owner(),block.timestamp + 300) (TaxDistributor.sol#155-162)
DividendDistributor.distributeTokenDividend(address) (_Homer.sol#231-245) has external calls inside a loop: tokenContract.transfer(IOwnable(_token).owner(),tokenAmount) (_Homer.sol#238)
Favor pull over push strategy for external calls.
Additional information: link
Reentrancy in Taxable.calculateTransferAmount(address,address,uint256) (Taxable.sol#28-48):
External calls:
- amountAfterTax = taxDistributor.takeBuyTax(value) (Taxable.sol#35)
- amountAfterTax = taxDistributor.takeSellTax(value) (Taxable.sol#38)
State variables written after the call(s):
- _balances[address(taxDistributor)] = _balances[address(taxDistributor)].add(taxAmount) (Taxable.sol#44)
Reentrancy in AntiSniper.configurePinkAntiBot(address) (AntiSniper.sol#124-129):
External calls:
- pinkAntiBot.setTokenOwner(owner) (AntiSniper.sol#126)
State variables written after the call(s):
- enablePinkAntiBot = true (AntiSniper.sol#128)
- pinkAntiBotConfigured = true (AntiSniper.sol#127)
Reentrancy in HomerCoin.constructor() (_Homer.sol#17-72):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (_Homer.sol#33)
State variables written after the call(s):
- dividendDistributor = new DividendDistributor(address(taxDistributor)) (_Homer.sol#36)
- enableSniperBlocking = true (_Homer.sol#39)
- exchanges[pair] = true (_Homer.sol#34)
- excludedFromTax[address(taxDistributor)] = true (_Homer.sol#46)
- excludedFromTax[address(dividendDistributor)] = true (_Homer.sol#47)
- isNeverSniper[address(taxDistributor)] = true (_Homer.sol#40)
- isNeverSniper[address(dividendDistributor)] = true (_Homer.sol#41)
- minimumTimeBetweenSwaps = 300 (_Homer.sol#44)
- minimumTokensBeforeSwap = 1000 * 10 ** decimals (_Homer.sol#45)
- taxDistributor = new TaxDistributor(pancakeSwap,pair,WBNB) (_Homer.sol#35)
Reentrancy in HomerCoin.constructor() (_Homer.sol#17-72):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (_Homer.sol#33)
- taxDistributor.createBurnTax(Burn,100,100) (_Homer.sol#48)
- taxDistributor.createWalletTax(Marketing,500,500,0xd63b9862f845d245A831e557E94E780651F81e27,true) (_Homer.sol#49)
- taxDistributor.createWalletTax(Development,200,200,0x1DCB23a3ba09a244007adccf54AE9E23Cf41d4C8,true) (_Homer.sol#50)
- taxDistributor.createDividendTax(Reflections,200,200,dividendDistributorAddress(),false) (_Homer.sol#51)
State variables written after the call(s):
- _allowed[address(taxDistributor)][pancakeSwap] = 2 ** 256 - 1 (_Homer.sol#67)
- _allowed[address(taxDistributor)][address(dividendDistributor)] = 2 ** 256 - 1 (_Homer.sol#68)
- _balances[owner] = _balances[owner].add(_totalSupply) (_Homer.sol#70)
- _totalSupply = _totalSupply.add(21_000_000 * 10 ** decimals) (_Homer.sol#69)
- ableToBurn[address(taxDistributor)] = true (_Homer.sol#64)
- autoDistributeDividends = true (_Homer.sol#60)
- autoSwapTax = true (_Homer.sol#52)
- dividendDistributorGas = 500_000 (_Homer.sol#56)
- excludedFromDividends[pair] = true (_Homer.sol#57)
- excludedFromDividends[address(taxDistributor)] = true (_Homer.sol#58)
- excludedFromDividends[address(dividendDistributor)] = true (_Homer.sol#59)
Reentrancy in DividendDistributor.depositToken(address,uint256) (_Homer.sol#188-196):
External calls:
- tokenContract.transferFrom(from,address(this),amount) (_Homer.sol#190)
State variables written after the call(s):
- tokenDividendsPerShare = tokenDividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (_Homer.sol#193)
- totalTokenDividends = totalTokenDividends.add(amount) (_Homer.sol#191)
Reentrancy in TaxDistributor.distribute() (TaxDistributor.sol#78-173):
External calls:
- _router.swapExactTokensForETH(totalTokens,0,path,address(this),block.timestamp + 300) (TaxDistributor.sol#95-101)
State variables written after the call(s):
- lastSwapTime = block.timestamp (TaxDistributor.sol#172)
Reentrancy in DividendDistributor.distributeTokenDividend(address) (_Homer.sol#231-245):
External calls:
- tokenContract.transfer(IOwnable(_token).owner(),tokenAmount) (_Homer.sol#238)
State variables written after the call(s):
- shareholderTokenClaims[shareholder] = block.timestamp (_Homer.sol#240)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Taxable.calculateTransferAmount(address,address,uint256) (Taxable.sol#28-48):
External calls:
- amountAfterTax = taxDistributor.takeBuyTax(value) (Taxable.sol#35)
- amountAfterTax = taxDistributor.takeSellTax(value) (Taxable.sol#38)
Event emitted after the call(s):
- Transfer(from,address(taxDistributor),taxAmount) (Taxable.sol#45)
Reentrancy in HomerCoin.constructor() (_Homer.sol#17-72):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (_Homer.sol#33)
- taxDistributor.createBurnTax(Burn,100,100) (_Homer.sol#48)
- taxDistributor.createWalletTax(Marketing,500,500,0xd63b9862f845d245A831e557E94E780651F81e27,true) (_Homer.sol#49)
- taxDistributor.createWalletTax(Development,200,200,0x1DCB23a3ba09a244007adccf54AE9E23Cf41d4C8,true) (_Homer.sol#50)
- taxDistributor.createDividendTax(Reflections,200,200,dividendDistributorAddress(),false) (_Homer.sol#51)
Event emitted after the call(s):
- Transfer(address(0),owner,_totalSupply) (_Homer.sol#71)
Reentrancy in TaxDistributor.distribute() (TaxDistributor.sol#78-173):
External calls:
- _router.swapExactTokensForETH(totalTokens,0,path,address(this),block.timestamp + 300) (TaxDistributor.sol#95-101)
Event emitted after the call(s):
- TaxesDistributed(totalTokens,amountBNB) (TaxDistributor.sol#170)
Apply the check-effects-interactions pattern.
Additional information: link
Taxable.preTransfer(address,address,uint256) (Taxable.sol#51-66) uses timestamp for comparisons
Dangerous comparisons:
- launched && autoSwapTax && exchanges[to] && swapStartTime + 60 <= block.timestamp && timeSinceLastSwap >= minimumTimeBetweenSwaps && _balances[address(taxDistributor)] >= minimumTokensBeforeSwap && taxDistributor.inSwap() == false (Taxable.sol#54-60)
DividendDistributor.shouldDistributeToken(address) (_Homer.sol#226-229) uses timestamp for comparisons
Dangerous comparisons:
- shareholderTokenClaims[shareholder] + minPeriod < block.timestamp && getUnpaidTokenEarnings(shareholder) > minTokenDistribution (_Homer.sol#227-228)
Avoid relying on block.timestamp.
Additional information: link
AntiSniper.preTransfer(address,address,uint256) (AntiSniper.sol#50-90) compares to a boolean constant:
-require(bool,string)(enableSniperBlocking == false || isSniper[msg.sender] == false,sniper rejected) (AntiSniper.sol#51)
AntiSniper.preTransfer(address,address,uint256) (AntiSniper.sol#50-90) compares to a boolean constant:
-launched && from != owner && isNeverSniper[from] == false && isNeverSniper[to] == false (AntiSniper.sol#53)
AntiSniper.preTransfer(address,address,uint256) (AntiSniper.sol#50-90) compares to a boolean constant:
-maxHoldPercentage > 0 && exchanges[to] == false (AntiSniper.sol#59)
AntiSniper.preTransfer(address,address,uint256) (AntiSniper.sol#50-90) compares to a boolean constant:
-exchanges[to] == false (AntiSniper.sol#76)
AntiSniper.preTransfer(address,address,uint256) (AntiSniper.sol#50-90) compares to a boolean constant:
-exchanges[from] == false (AntiSniper.sol#79)
AntiSniper.calculateTransferAmount(address,address,uint256) (AntiSniper.sol#92-101) compares to a boolean constant:
-from != owner && sniperTax() > 0 && isNeverSniper[from] == false && isNeverSniper[to] == false (AntiSniper.sol#95)
BaseErc20._transfer(address,address,uint256) (BaseErc20.sol#213-234) compares to a boolean constant:
-require(bool,string)(excludedFromSelling[from] == false,address is not allowed to sell) (BaseErc20.sol#215)
Dividends.postTransfer(address,address) (Dividends.sol#22-40) compares to a boolean constant:
-excludedFromDividends[from] == false (Dividends.sol#23)
Dividends.postTransfer(address,address) (Dividends.sol#22-40) compares to a boolean constant:
-excludedFromDividends[to] == false (Dividends.sol#26)
Dividends.postTransfer(address,address) (Dividends.sol#22-40) compares to a boolean constant:
-launched && autoDistributeDividends && exchanges[from] && dividendDistributor.inSwap() == false (Dividends.sol#31-34)
TaxDistributor.swapLock() (TaxDistributor.sol#41-46) compares to a boolean constant:
-require(bool,string)(inSwap == false,already swapping) (TaxDistributor.sol#42)
Taxable.calculateTransferAmount(address,address,uint256) (Taxable.sol#28-48) compares to a boolean constant:
-excludedFromTax[from] == false && excludedFromTax[to] == false && launched (Taxable.sol#32)
Taxable.preTransfer(address,address,uint256) (Taxable.sol#51-66) compares to a boolean constant:
-launched && autoSwapTax && exchanges[to] && swapStartTime + 60 <= block.timestamp && timeSinceLastSwap >= minimumTimeBetweenSwaps && _balances[address(taxDistributor)] >= minimumTokensBeforeSwap && taxDistributor.inSwap() == false (Taxable.sol#54-60)
DividendDistributor.swapLock() (_Homer.sol#149-154) compares to a boolean constant:
-require(bool,string)(inSwap == false,already swapping) (_Homer.sol#150)
Remove the equality to the boolean constant.
Additional information: link
DividendDistributor.process(uint256) (_Homer.sol#198-224) has costly operations inside a loop:
- currentIndex = 0 (_Homer.sol#210)
DividendDistributor.distributeTokenDividend(address) (_Homer.sol#231-245) has costly operations inside a loop:
- totalTokenDistributed = totalTokenDistributed.add(tokenAmount) (_Homer.sol#236)
DividendDistributor.process(uint256) (_Homer.sol#198-224) has costly operations inside a loop:
- currentIndex ++ (_Homer.sol#219)
Use a local variable to hold the loop computation result.
Additional information: link
AntiSniper.calculateTransferAmount(address,address,uint256) (AntiSniper.sol#92-101) is never used and should be removed
AntiSniper.configure(address) (AntiSniper.sol#39-42) is never used and should be removed
AntiSniper.preTransfer(address,address,uint256) (AntiSniper.sol#50-90) is never used and should be removed
Burnable.configure(address) (Burnable.sol#21-24) is never used and should be removed
SafeMath.add(int256,int256) (Libraries.sol#106-111) is never used and should be removed
SafeMath.div(int256,int256) (Libraries.sol#64-71) is never used and should be removed
SafeMath.mod(uint256,uint256) (Libraries.sol#117-120) is never used and should be removed
SafeMath.mul(int256,int256) (Libraries.sol#33-47) is never used and should be removed
SafeMath.sub(int256,int256) (Libraries.sol#86-91) is never used and should be removed
Taxable.configure(address) (Taxable.sol#22-25) is never used and should be removed
Remove unused functions.
Additional information: link
Parameter AntiSniper.configure(address)._owner (AntiSniper.sol#39) is not in mixedCase
Parameter BaseErc20.configure(address)._owner (BaseErc20.sol#45) is not in mixedCase
Parameter BaseErc20.balanceOf(address)._owner (BaseErc20.sol#62) is not in mixedCase
Parameter BaseErc20.allowance(address,address)._owner (BaseErc20.sol#72) is not in mixedCase
Variable BaseErc20._balances (BaseErc20.sol#11) is not in mixedCase
Variable BaseErc20._allowed (BaseErc20.sol#12) is not in mixedCase
Variable BaseErc20._totalSupply (BaseErc20.sol#13) is not in mixedCase
Variable BaseErc20._useSafeTransfer (BaseErc20.sol#14) is not in mixedCase
Parameter Burnable.configure(address)._owner (Burnable.sol#21) is not in mixedCase
Parameter Dividends.configure(address)._owner (Dividends.sol#17) is not in mixedCase
Function IDEXRouter.WETH() (Interfaces.sol#32) is not in mixedCase
Parameter Taxable.configure(address)._owner (Taxable.sol#22) is not in mixedCase
Parameter HomerCoin.configure(address)._owner (_Homer.sol#81) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256,uint256)._minPeriod (_Homer.sol#166) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256,uint256)._minTokenDistribution (_Homer.sol#166) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256,uint256)._minNativeDistribution (_Homer.sol#166) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Reentrancy in TaxDistributor.distribute() (TaxDistributor.sol#78-173):
External calls:
- address(taxes[i_scope_3].location).transfer(taxes[i_scope_3].share) (TaxDistributor.sol#129)
- address(taxes[i_scope_3].location).transfer(taxes[i_scope_3].share) (TaxDistributor.sol#136)
External calls sending eth:
- address(taxes[i_scope_3].location).transfer(taxes[i_scope_3].share) (TaxDistributor.sol#129)
- address(taxes[i_scope_3].location).transfer(taxes[i_scope_3].share) (TaxDistributor.sol#136)
- IDividendDistributor(taxes[i_scope_3].location).depositNative{value: taxes[i_scope_3].share}() (TaxDistributor.sol#144)
- _router.addLiquidityETH{value: taxes[i_scope_3].share}(_token,half_scope_4,0,0,IOwnable(_token).owner(),block.timestamp + 300) (TaxDistributor.sol#155-162)
State variables written after the call(s):
- taxes[i_scope_3].taxPool = 0 (TaxDistributor.sol#166)
- taxes[i_scope_3].share = 0 (TaxDistributor.sol#167)
Apply the check-effects-interactions pattern.
Additional information: link
Variable TaxDistributor.distribute().half_scope_1 (TaxDistributor.sol#112) is too similar to TaxDistributor.distribute().half_scope_4 (TaxDistributor.sol#154)
Prevent variables from having similar names.
Additional information: link
BaseErc20._useSafeTransfer (BaseErc20.sol#14) should be constant
DividendDistributor.dividendsPerShareAccuracyFactor (_Homer.sol#128) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
balanceOf(address) should be declared external:
- BaseErc20.balanceOf(address) (BaseErc20.sol#62-64)
allowance(address,address) should be declared external:
- BaseErc20.allowance(address,address) (BaseErc20.sol#72-74)
transfer(address,uint256) should be declared external:
- BaseErc20.transfer(address,uint256) (BaseErc20.sol#81-84)
approve(address,uint256) should be declared external:
- BaseErc20.approve(address,uint256) (BaseErc20.sol#95-101)
transferFrom(address,address,uint256) should be declared external:
- BaseErc20.transferFrom(address,address,uint256) (BaseErc20.sol#111-116)
increaseAllowance(address,uint256) should be declared external:
- BaseErc20.increaseAllowance(address,uint256) (BaseErc20.sol#128-134)
decreaseAllowance(address,uint256) should be declared external:
- BaseErc20.decreaseAllowance(address,uint256) (BaseErc20.sol#146-152)
burnFrom(address,uint256) should be declared external:
- Burnable.burnFrom(address,uint256) (Burnable.sol#58-62)
createWalletTax(string,uint256,uint256,address,bool) should be declared external:
- TaxDistributor.createWalletTax(string,uint256,uint256,address,bool) (TaxDistributor.sol#58-60)
createDistributorTax(string,uint256,uint256,address,bool) should be declared external:
- TaxDistributor.createDistributorTax(string,uint256,uint256,address,bool) (TaxDistributor.sol#62-64)
createDividendTax(string,uint256,uint256,address,bool) should be declared external:
- TaxDistributor.createDividendTax(string,uint256,uint256,address,bool) (TaxDistributor.sol#66-68)
createBurnTax(string,uint256,uint256) should be declared external:
- TaxDistributor.createBurnTax(string,uint256,uint256) (TaxDistributor.sol#70-72)
createLiquidityTax(string,uint256,uint256) should be declared external:
- TaxDistributor.createLiquidityTax(string,uint256,uint256) (TaxDistributor.sol#74-76)
distribute() should be declared external:
- TaxDistributor.distribute() (TaxDistributor.sol#78-173)
setTaxWallet(string,address) should be declared external:
- TaxDistributor.setTaxWallet(string,address) (TaxDistributor.sol#191-200)
setSellTax(string,uint256) should be declared external:
- TaxDistributor.setSellTax(string,uint256) (TaxDistributor.sol#202-212)
setBuyTax(string,uint256) should be declared external:
- TaxDistributor.setBuyTax(string,uint256) (TaxDistributor.sol#214-225)
sellTax() should be declared external:
- Taxable.sellTax() (Taxable.sol#74-76)
buyTax() should be declared external:
- Taxable.buyTax() (Taxable.sol#81-83)
taxDistributorAddress() should be declared external:
- Taxable.taxDistributorAddress() (Taxable.sol#88-90)
Use the external attribute for functions never called from the contract.
Additional information: link
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Unable to find KYC or doxxing proof
Unable to verify that token and website are owned by the same team (no listings + unable to find contract on website)
Unable to verify token contract address on the website
Unable to find token on CoinGecko
Additional information: link
Unable to find token on CoinMarketCap
Additional information: link
Token is not listed at Mobula.Finance
Additional information: link
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Telegram account has less than 100 subscribers
Twitter account has less than 100 followers
Unable to find Youtube account
Unable to find Discord account
Twitter account has few posts