BEACH is an innovative DeFi token for people who believe that doing well should not cost us the planet. Their vision is to create a token that directly supports climate action, provides the utility of a low friction means and place of exchange while delivering strong and stable returns irrespective of what the wider crypto market is doing…in fact the tougher the market, the greater the opportunities that exist for $BEACH to get to work and do its thing! Furthermore, the $BEACH family will pledge 0.5% of all transactions (buys, sells & transfers) towards carbon free initiatives around the world thus making the $BEACH ecosystem carbon-free!
Beach.swapETHfortargetToken(uint256) (#841-848) sends eth to arbitrary user
Dangerous calls:
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
Beach.distributeETH(uint256) (#850-855) sends eth to arbitrary user
Dangerous calls:
- _development.transfer(amount.div(_futureFee)) (#852)
- _boost.transfer(amount.div(_boostFee)) (#853)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in Beach._transfer(address,address,uint256) (#578-659):
External calls:
- swapETHfortargetToken(address(this).balance) (#603)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
- _transfer(address(this),_conduitAddress,conduitShare) (#628)
- pancakeV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#838)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
- swapTokensForEth(contractTokenBalance) (#631)
- pancakeV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#838)
External calls sending eth:
- swapETHfortargetToken(address(this).balance) (#603)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
- _transfer(address(this),_conduitAddress,conduitShare) (#628)
- _development.transfer(amount.div(_futureFee)) (#852)
- _boost.transfer(amount.div(_boostFee)) (#853)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
State variables written after the call(s):
- _boostFee = _sellBoostFee (#632)
- _futureFee = _sellFutureFee (#633)
- swapTokensForEth(contractTokenBalance) (#631)
- inSwap = true (#338)
- inSwap = false (#340)
Reentrancy in Beach._transfer(address,address,uint256) (#578-659):
External calls:
- swapETHfortargetToken(address(this).balance) (#603)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
- _transfer(address(this),_conduitAddress,conduitShare) (#628)
- pancakeV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#838)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
- swapTokensForEth(contractTokenBalance) (#631)
- pancakeV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#838)
External calls sending eth:
- swapETHfortargetToken(address(this).balance) (#603)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
- _transfer(address(this),_conduitAddress,conduitShare) (#628)
- _development.transfer(amount.div(_futureFee)) (#852)
- _boost.transfer(amount.div(_boostFee)) (#853)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
- distributeETH(ethToDistribute) (#637)
- _development.transfer(amount.div(_futureFee)) (#852)
- _boost.transfer(amount.div(_boostFee)) (#853)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#657)
- _BEACHBurned = _BEACHBurned.add(tBurn) (#793)
- setSellFeeOnTrancation() (#644)
- _boostFee = _sellBoostFee (#682)
- _tokenTransfer(from,to,amount,takeFee) (#657)
- _boostFee = 0 (#666)
- setSellFeeOnTrancation() (#644)
- _burn = _sellBurn (#681)
- _tokenTransfer(from,to,amount,takeFee) (#657)
- _burn = 0 (#665)
- setSellFeeOnTrancation() (#644)
- _conduitFee = _sellConduitFee (#684)
- _tokenTransfer(from,to,amount,takeFee) (#657)
- _conduitFee = 0 (#668)
- setSellFeeOnTrancation() (#644)
- _contractFee = _sellContractFee (#680)
- _tokenTransfer(from,to,amount,takeFee) (#657)
- _contractFee = 0 (#664)
- setSellFeeOnTrancation() (#644)
- _futureFee = _sellFutureFee (#683)
- _tokenTransfer(from,to,amount,takeFee) (#657)
- _futureFee = 0 (#667)
- _tokenTransfer(from,to,amount,takeFee) (#657)
- _rOwned[address(this)] = _rOwned[address(this)].add(rTeam) (#783)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#774)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#775)
- _tokenTransfer(from,to,amount,takeFee) (#657)
- _rTotal = _rTotal.sub(rBurn) (#792)
- _tokenTransfer(from,to,amount,takeFee) (#657)
- _tTotal = _tTotal.sub(tBurn) (#791)
Apply the check-effects-interactions pattern.
Additional information: link
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
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.
Contract ownership is not renounced (belongs to a wallet)
Beach._BEACHEthBurn(uint256) (#786-795) performs a multiplication on the result of a division:
-tBurn = amount.mul(_burn).div(100) (#789)
-rBurn = tBurn.mul(currentRate) (#790)
Consider ordering multiplication before division.
Additional information: link
Beach.addLiquidity() (#524-536) ignores return value by pancakeV2Router.addLiquidityETH{value: address(this).balance}(address(this),balanceOf(address(this)),0,0,owner(),block.timestamp) (#527)
Beach.addLiquidity() (#524-536) ignores return value by IBEP20(pancakeswapPair).approve(address(pancakeV2Router),type()(uint256).max) (#535)
Ensure that all the return values of the function calls are used.
Additional information: link
Beach.allowance(address,address).owner (#466) shadows:
- Ownable.owner() (#218-220) (function)
Beach._approve(address,address,uint256).owner (#571) shadows:
- Ownable.owner() (#218-220) (function)
Rename the local variables that shadow another component.
Additional information: link
Ownable.constructor().msgSender (#213) lacks a zero-check on :
- _owner = msgSender (#214)
Beach.constructor(address,address,address,address).addr1 (#344) lacks a zero-check on :
- _development = addr1 (#345)
Beach.constructor(address,address,address,address).addr2 (#344) lacks a zero-check on :
- _boost = addr2 (#346)
Beach.constructor(address,address,address,address).addr3 (#344) lacks a zero-check on :
- _conduitAddress = addr3 (#347)
Beach.setTargetAddress(address).target_adr (#409) lacks a zero-check on :
- targetToken = target_adr (#410)
Beach.changeDevelopmentAddress(address)._addy (#413) lacks a zero-check on :
- _development = _addy (#414)
Beach.changeBoostAddress(address)._addy (#419) lacks a zero-check on :
- _boost = _addy (#420)
Beach.changeConduitAddress(address)._address (#424) lacks a zero-check on :
- _conduitAddress = _address (#425)
Beach.changeRouterAddress(address)._addr (#511) lacks a zero-check on :
- routerAddress = _addr (#513)
Check that the address is not zero.
Additional information: link
Reentrancy in Beach._transfer(address,address,uint256) (#578-659):
External calls:
- swapETHfortargetToken(address(this).balance) (#603)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
State variables written after the call(s):
- setSellFeeOnTrancation() (#610)
- _boostFee = _sellBoostFee (#682)
- setSellFeeOnTrancation() (#610)
- _burn = _sellBurn (#681)
- setSellFeeOnTrancation() (#610)
- _conduitFee = _sellConduitFee (#684)
- setSellFeeOnTrancation() (#610)
- _contractFee = _sellContractFee (#680)
- setSellFeeOnTrancation() (#610)
- _futureFee = _sellFutureFee (#683)
Reentrancy in Beach._transfer(address,address,uint256) (#578-659):
External calls:
- swapETHfortargetToken(address(this).balance) (#603)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
- _transfer(address(this),_conduitAddress,conduitShare) (#628)
- pancakeV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#838)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
External calls sending eth:
- swapETHfortargetToken(address(this).balance) (#603)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
- _transfer(address(this),_conduitAddress,conduitShare) (#628)
- _development.transfer(amount.div(_futureFee)) (#852)
- _boost.transfer(amount.div(_boostFee)) (#853)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
State variables written after the call(s):
- _transfer(address(this),_conduitAddress,conduitShare) (#628)
- _allowances[owner][spender] = amount (#574)
Reentrancy in Beach._transfer(address,address,uint256) (#578-659):
External calls:
- swapETHfortargetToken(address(this).balance) (#603)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
- _transfer(address(this),_conduitAddress,conduitShare) (#628)
- pancakeV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#838)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
- swapTokensForEth(contractTokenBalance) (#631)
- pancakeV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#838)
External calls sending eth:
- swapETHfortargetToken(address(this).balance) (#603)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
- _transfer(address(this),_conduitAddress,conduitShare) (#628)
- _development.transfer(amount.div(_futureFee)) (#852)
- _boost.transfer(amount.div(_boostFee)) (#853)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
State variables written after the call(s):
- swapTokensForEth(contractTokenBalance) (#631)
- _allowances[owner][spender] = amount (#574)
Reentrancy in Beach.addLiquidity() (#524-536):
External calls:
- pancakeV2Router.addLiquidityETH{value: address(this).balance}(address(this),balanceOf(address(this)),0,0,owner(),block.timestamp) (#527)
State variables written after the call(s):
- _maxBuyAmount = 20000000 * 10 ** 9 (#534)
- _maxTxAmount = 100000000 * 10 ** 9 (#533)
- feeEnabled = true (#530)
- limitTX = true (#532)
- liquidityAdded = true (#529)
- swapEnabled = true (#528)
- tradeAllowed = true (#531)
Reentrancy in Beach.constructor(address,address,address,address) (#344-387):
External calls:
- pancakeswapPair = IPancakeFactory(pancakeV2Router.factory()).createPair(address(this),pancakeV2Router.WETH()) (#360)
State variables written after the call(s):
- _buyBoostFee = _tempContractFee.div(2) (#380)
- _buyBurn = 2 (#377)
- _buyConduitFee = _buyContractFee.div(2) (#378)
- _buyContractFee = 8 (#376)
- _buyFutureFee = _tempContractFee.div(2) (#381)
- _isExcludedFromFee[routerAddress] = FeeExcluded(true,true,true) (#361)
- _sellBoostFee = _tempContractFee.div(4) (#369)
- _sellBurn = 3 (#366)
- _sellConduitFee = _sellContractFee.div(3) (#367)
- _sellContractFee = 12 (#365)
- _sellFutureFee = _tempContractFee.div(1) (#370)
- _tempContractFee = 9 (#368)
- _tempContractFee = 6 (#379)
- buyFeeEnabled = true (#383)
- currentBuyFee = 10 (#382)
- currentSellFee = 15 (#371)
- sellFeeEnabled = true (#372)
Reentrancy in Beach.transferFrom(address,address,uint256) (#475-479):
External calls:
- _transfer(sender,recipient,amount) (#476)
- pancakeV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#838)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
External calls sending eth:
- _transfer(sender,recipient,amount) (#476)
- _development.transfer(amount.div(_futureFee)) (#852)
- _boost.transfer(amount.div(_boostFee)) (#853)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#477)
- _allowances[owner][spender] = amount (#574)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Beach._transfer(address,address,uint256) (#578-659):
External calls:
- swapETHfortargetToken(address(this).balance) (#603)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
- _transfer(address(this),_conduitAddress,conduitShare) (#628)
- pancakeV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#838)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
External calls sending eth:
- swapETHfortargetToken(address(this).balance) (#603)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
- _transfer(address(this),_conduitAddress,conduitShare) (#628)
- _development.transfer(amount.div(_futureFee)) (#852)
- _boost.transfer(amount.div(_boostFee)) (#853)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#575)
- _transfer(address(this),_conduitAddress,conduitShare) (#628)
- Transfer(sender,recipient,tTransferAmount) (#777)
- _transfer(address(this),_conduitAddress,conduitShare) (#628)
Reentrancy in Beach._transfer(address,address,uint256) (#578-659):
External calls:
- swapETHfortargetToken(address(this).balance) (#603)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
- _transfer(address(this),_conduitAddress,conduitShare) (#628)
- pancakeV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#838)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
- swapTokensForEth(contractTokenBalance) (#631)
- pancakeV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#838)
External calls sending eth:
- swapETHfortargetToken(address(this).balance) (#603)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
- _transfer(address(this),_conduitAddress,conduitShare) (#628)
- _development.transfer(amount.div(_futureFee)) (#852)
- _boost.transfer(amount.div(_boostFee)) (#853)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#575)
- swapTokensForEth(contractTokenBalance) (#631)
Reentrancy in Beach._transfer(address,address,uint256) (#578-659):
External calls:
- swapETHfortargetToken(address(this).balance) (#603)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
- _transfer(address(this),_conduitAddress,conduitShare) (#628)
- pancakeV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#838)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
- swapTokensForEth(contractTokenBalance) (#631)
- pancakeV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#838)
External calls sending eth:
- swapETHfortargetToken(address(this).balance) (#603)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
- _transfer(address(this),_conduitAddress,conduitShare) (#628)
- _development.transfer(amount.div(_futureFee)) (#852)
- _boost.transfer(amount.div(_boostFee)) (#853)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
- distributeETH(ethToDistribute) (#637)
- _development.transfer(amount.div(_futureFee)) (#852)
- _boost.transfer(amount.div(_boostFee)) (#853)
Event emitted after the call(s):
- Transfer(sender,recipient,tTransferAmount) (#777)
- _tokenTransfer(from,to,amount,takeFee) (#657)
Reentrancy in Beach.constructor(address,address,address,address) (#344-387):
External calls:
- pancakeswapPair = IPancakeFactory(pancakeV2Router.factory()).createPair(address(this),pancakeV2Router.WETH()) (#360)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_tTotal) (#362)
Reentrancy in Beach.transferFrom(address,address,uint256) (#475-479):
External calls:
- _transfer(sender,recipient,amount) (#476)
- pancakeV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#838)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
External calls sending eth:
- _transfer(sender,recipient,amount) (#476)
- _development.transfer(amount.div(_futureFee)) (#852)
- _boost.transfer(amount.div(_boostFee)) (#853)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#575)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#477)
Apply the check-effects-interactions pattern.
Additional information: link
Beach._rTotal (#268) is set pre-construction with a non-constant function or state variable:
- (MAX - (MAX % _tTotal))
Beach._maxTxAmount (#281) is set pre-construction with a non-constant function or state variable:
- _tTotal
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.14 (#2) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
solc-0.8.16 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 IPancakeRouter01.WETH() (#70) is not in mixedCase
Parameter Beach.setTargetAddress(address).target_adr (#409) is not in mixedCase
Parameter Beach.changeDevelopmentAddress(address)._addy (#413) is not in mixedCase
Parameter Beach.changeBoostAddress(address)._addy (#419) is not in mixedCase
Parameter Beach.changeConduitAddress(address)._address (#424) is not in mixedCase
Parameter Beach.setExcludeFromBothFees(address)._address (#429) is not in mixedCase
Parameter Beach.setExcludeFromBuyFeeOnlyFees(address)._address (#433) is not in mixedCase
Parameter Beach.setExcludeFromSellFeeOnlyFees(address)._address (#437) is not in mixedCase
Parameter Beach.setIncludeInFees(address)._address (#441) is not in mixedCase
Parameter Beach.checkExcludedAddress(address)._address (#445) is not in mixedCase
Parameter Beach.setAddressIsBlackListed(address,bool)._address (#453) is not in mixedCase
Parameter Beach.setAddressIsBlackListed(address,bool)._bool (#453) is not in mixedCase
Parameter Beach.viewIsBlackListed(address)._address (#457) is not in mixedCase
Parameter Beach.changeRouterAddress(address)._addr (#511) is not in mixedCase
Parameter Beach.setBuyFee(uint256)._per (#688) is not in mixedCase
Parameter Beach.setSellFee(uint256)._per (#726) is not in mixedCase
Function Beach._BEACHEthBurn(uint256) (#786-795) is not in mixedCase
Constant Beach._name (#263) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Beach._symbol (#264) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Beach._decimals (#265) is not in UPPER_CASE_WITH_UNDERSCORES
Variable Beach._BEACHBurned (#269) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "removeAllFee (#658)" inBeach (#245-860)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in Beach._transfer(address,address,uint256) (#578-659):
External calls:
- _transfer(address(this),_conduitAddress,conduitShare) (#628)
- _development.transfer(amount.div(_futureFee)) (#852)
- _boost.transfer(amount.div(_boostFee)) (#853)
External calls sending eth:
- swapETHfortargetToken(address(this).balance) (#603)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
- _transfer(address(this),_conduitAddress,conduitShare) (#628)
- _development.transfer(amount.div(_futureFee)) (#852)
- _boost.transfer(amount.div(_boostFee)) (#853)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
State variables written after the call(s):
- swapTokensForEth(contractTokenBalance) (#631)
- _allowances[owner][spender] = amount (#574)
- _boostFee = _sellBoostFee (#632)
- _futureFee = _sellFutureFee (#633)
- swapTokensForEth(contractTokenBalance) (#631)
- inSwap = true (#338)
- inSwap = false (#340)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#575)
- swapTokensForEth(contractTokenBalance) (#631)
Reentrancy in Beach._transfer(address,address,uint256) (#578-659):
External calls:
- _transfer(address(this),_conduitAddress,conduitShare) (#628)
- _development.transfer(amount.div(_futureFee)) (#852)
- _boost.transfer(amount.div(_boostFee)) (#853)
- distributeETH(ethToDistribute) (#637)
- _development.transfer(amount.div(_futureFee)) (#852)
- _boost.transfer(amount.div(_boostFee)) (#853)
External calls sending eth:
- swapETHfortargetToken(address(this).balance) (#603)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
- _transfer(address(this),_conduitAddress,conduitShare) (#628)
- _development.transfer(amount.div(_futureFee)) (#852)
- _boost.transfer(amount.div(_boostFee)) (#853)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
- distributeETH(ethToDistribute) (#637)
- _development.transfer(amount.div(_futureFee)) (#852)
- _boost.transfer(amount.div(_boostFee)) (#853)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#657)
- _BEACHBurned = _BEACHBurned.add(tBurn) (#793)
- setSellFeeOnTrancation() (#644)
- _boostFee = _sellBoostFee (#682)
- _tokenTransfer(from,to,amount,takeFee) (#657)
- _boostFee = 0 (#666)
- setSellFeeOnTrancation() (#644)
- _burn = _sellBurn (#681)
- _tokenTransfer(from,to,amount,takeFee) (#657)
- _burn = 0 (#665)
- setSellFeeOnTrancation() (#644)
- _conduitFee = _sellConduitFee (#684)
- _tokenTransfer(from,to,amount,takeFee) (#657)
- _conduitFee = 0 (#668)
- setSellFeeOnTrancation() (#644)
- _contractFee = _sellContractFee (#680)
- _tokenTransfer(from,to,amount,takeFee) (#657)
- _contractFee = 0 (#664)
- setSellFeeOnTrancation() (#644)
- _futureFee = _sellFutureFee (#683)
- _tokenTransfer(from,to,amount,takeFee) (#657)
- _futureFee = 0 (#667)
- _tokenTransfer(from,to,amount,takeFee) (#657)
- _rOwned[address(this)] = _rOwned[address(this)].add(rTeam) (#783)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#774)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#775)
- _tokenTransfer(from,to,amount,takeFee) (#657)
- _rTotal = _rTotal.sub(rBurn) (#792)
- _tokenTransfer(from,to,amount,takeFee) (#657)
- _tTotal = _tTotal.sub(tBurn) (#791)
Event emitted after the call(s):
- Transfer(sender,recipient,tTransferAmount) (#777)
- _tokenTransfer(from,to,amount,takeFee) (#657)
Reentrancy in Beach.transferFrom(address,address,uint256) (#475-479):
External calls:
- _transfer(sender,recipient,amount) (#476)
- _development.transfer(amount.div(_futureFee)) (#852)
- _boost.transfer(amount.div(_boostFee)) (#853)
External calls sending eth:
- _transfer(sender,recipient,amount) (#476)
- _development.transfer(amount.div(_futureFee)) (#852)
- _boost.transfer(amount.div(_boostFee)) (#853)
- pancakeV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(ethAmount,path,address(boostFund),block.timestamp) (#847)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#477)
- _allowances[owner][spender] = amount (#574)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#575)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#477)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IPancakeRouter01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#75) is too similar to IPancakeRouter01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#76)
Variable Beach._getValues(uint256,uint256).rTransferAmount (#801) is too similar to Beach._getTValues(uint256,uint256,uint256).tTransferAmount (#807)
Variable Beach._transferStandard(address,address,uint256).rTransferAmount (#773) is too similar to Beach._transferStandard(address,address,uint256).tTransferAmount (#773)
Variable Beach._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#816) is too similar to Beach._getTValues(uint256,uint256,uint256).tTransferAmount (#807)
Variable Beach._transferStandard(address,address,uint256).rTransferAmount (#773) is too similar to Beach._getTValues(uint256,uint256,uint256).tTransferAmount (#807)
Variable Beach._getValues(uint256,uint256).rTransferAmount (#801) is too similar to Beach._transferStandard(address,address,uint256).tTransferAmount (#773)
Variable Beach._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#816) is too similar to Beach._transferStandard(address,address,uint256).tTransferAmount (#773)
Variable Beach._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#816) is too similar to Beach._getValues(uint256,uint256).tTransferAmount (#799)
Variable Beach._transferStandard(address,address,uint256).rTransferAmount (#773) is too similar to Beach._getValues(uint256,uint256).tTransferAmount (#799)
Variable Beach._getValues(uint256,uint256).rTransferAmount (#801) is too similar to Beach._getValues(uint256,uint256).tTransferAmount (#799)
Prevent variables from having similar names.
Additional information: link
Beach.addLiquidity() (#524-536) uses literals with too many digits:
- _maxTxAmount = 100000000 * 10 ** 9 (#533)
Beach.addLiquidity() (#524-536) uses literals with too many digits:
- _maxBuyAmount = 20000000 * 10 ** 9 (#534)
Beach.slitherConstructorVariables() (#245-860) uses literals with too many digits:
- _tTotal = 10000000000 * 10 ** 9 (#267)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Beach._tOwned (#322) is never used in Beach (#245-860)
Remove unused state variables.
Additional information: link
Beach.boostFund (#318) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#227-230)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#232-237)
previousOwner() should be declared external:
- Ownable.previousOwner() (#239-241)
name() should be declared external:
- Beach.name() (#389-391)
symbol() should be declared external:
- Beach.symbol() (#393-395)
decimals() should be declared external:
- Beach.decimals() (#397-399)
totalSupply() should be declared external:
- Beach.totalSupply() (#401-403)
checkExcludedAddress(address) should be declared external:
- Beach.checkExcludedAddress(address) (#445-449)
viewIsBlackListed(address) should be declared external:
- Beach.viewIsBlackListed(address) (#457-459)
transfer(address,uint256) should be declared external:
- Beach.transfer(address,uint256) (#461-464)
allowance(address,address) should be declared external:
- Beach.allowance(address,address) (#466-468)
approve(address,uint256) should be declared external:
- Beach.approve(address,uint256) (#470-473)
transferFrom(address,address,uint256) should be declared external:
- Beach.transferFrom(address,address,uint256) (#475-479)
amountInPool() should be declared external:
- Beach.amountInPool() (#561-563)
Use the external attribute for functions never called from the contract.
Additional information: link
Unable to find audit link on the website
Token is not listed at Mobula.Finance
Additional information: link
Young tokens have high risks of scam / price dump / death
Token has relatively low CoinMarketCap rank