BNBeer is built on the binance smart chain and is one of the first crypto project which is in collaboration with a real manufacturer, producing beers.
BNBeer is looking to fully revolutionize the decentralized world. We are more than just a Defi token, we are the future of Defi and real beer business.
BNBeer.addLiquidity(uint256,uint256) (#863-876) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#868-875)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
BNBeer._transfer(address,address,uint256) (#689-806) uses a weak PRNG: "_bBSLimit = _bBSLimitMin + uint256(keccak256(bytes)(abi.encodePacked(block.timestamp,block.difficulty))) % (_bBSLimitMax - _bBSLimitMin + 1) (#750)"
Do not use block.timestamp, now or blockhash as a source of randomness
Additional information: link
Reentrancy in BNBeer._transfer(address,address,uint256) (#689-806):
External calls:
- swapTokens(contractTokenBalance) (#718)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#835-841)
- buyBackTokens(_bBSLimit) (#753)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#853-858)
External calls sending eth:
- swapTokens(contractTokenBalance) (#718)
- recipient.transfer(amount) (#1159)
- buyBackTokens(_bBSLimit) (#753)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#853-858)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#805)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#982)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#898)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#907)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#918)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#928)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#899)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#909)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#919)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#930)
- _tokenTransfer(from,to,amount,takeFee) (#805)
- _rTotal = _rTotal.sub(rFee) (#937)
- _tokenTransfer(from,to,amount,takeFee) (#805)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#984)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#927)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#917)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#908)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#929)
- buyBackTokens(_bBSLimit) (#753)
- inSwapAndLiquify = true (#535)
- inSwapAndLiquify = false (#537)
Apply the check-effects-interactions pattern.
Additional information: link
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
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.
BNBeer._transfer(address,address,uint256).sellHistory (#705) 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
BNBeer.addLiquidity(uint256,uint256) (#863-876) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#868-875)
Ensure that all the return values of the function calls are used.
Additional information: link
BNBeer._approve(address,address,uint256).owner (#681) shadows:
- Ownable.owner() (#180-182) (function)
Rename the local variables that shadow another component.
Additional information: link
BNBeer.setNumTokensSellToAddToBuyBack(uint256) (#1121-1123) should emit an event for:
- minimumTokensBeforeSwap = _minimumTokensBeforeSwap (#1122)
Emit an event for critical parameter changes.
Additional information: link
BNBeer.setMarketingAddress(address)._marketingAddress (#1125) lacks a zero-check on :
- marketingAddress = address(_marketingAddress) (#1126)
Check that the address is not zero.
Additional information: link
Reentrancy in BNBeer.transferFrom(address,address,uint256) (#599-603):
External calls:
- _transfer(sender,recipient,amount) (#600)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#853-858)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#835-841)
External calls sending eth:
- _transfer(sender,recipient,amount) (#600)
- recipient.transfer(amount) (#1159)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#853-858)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#601)
- _allowances[owner][spender] = amount (#685)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in BNBeer.transferFrom(address,address,uint256) (#599-603):
External calls:
- _transfer(sender,recipient,amount) (#600)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#853-858)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#835-841)
External calls sending eth:
- _transfer(sender,recipient,amount) (#600)
- recipient.transfer(amount) (#1159)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#853-858)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#686)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#601)
Apply the check-effects-interactions pattern.
Additional information: link
BNBeer._removeOldSellHistories() (#1038-1060) uses timestamp for comparisons
Dangerous comparisons:
- _sellHistories[j].time >= maxStartTimeForHistories (#1044)
Avoid relying on block.timestamp.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#147-164) uses assembly
- INLINE ASM (#156-159)
Do not use evm assembly.
Additional information: link
SafeMath.mod(uint256,uint256,string) (#102-105) is never used and should be removed
Remove unused functions.
Additional information: link
BNBeer._previousLiquidityFee (#476) is set pre-construction with a non-constant function or state variable:
- _liquidityFee
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
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
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#147-164):
- (success,returndata) = target.call{value: weiValue}(data) (#150)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable BNBeer._isEnabledBuyBackAndBurn (#512) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#34)" inContext (#28-37)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in BNBeer.transferFrom(address,address,uint256) (#599-603):
External calls:
- _transfer(sender,recipient,amount) (#600)
- recipient.transfer(amount) (#1159)
External calls sending eth:
- _transfer(sender,recipient,amount) (#600)
- recipient.transfer(amount) (#1159)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#853-858)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#601)
- _allowances[owner][spender] = amount (#685)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#686)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#601)
Apply the check-effects-interactions pattern.
Additional information: link
Variable BNBeer._getValues(uint256).rTransferAmount (#943) is too similar to BNBeer._transferFromExcluded(address,address,uint256).tTransferAmount (#916)
Prevent variables from having similar names.
Additional information: link
BNBeer.slitherConstructorVariables() (#433-1211) uses literals with too many digits:
- minimumTokensBeforeSwap = 200000 * 10 ** 6 * 10 ** 9 (#495)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
BNBeer.deadAddress (#438) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
transferForeignToken(address,address) should be declared external:
- BNBeer.transferForeignToken(address,address) (#1181-1185)
Use the external attribute for functions never called from the contract.
Additional information: link
Average 30d PancakeSwap volume is low.
Average PancakeSwap trading volume, liqudity, number of swaps are low. Token seems to be inactive.
Token is deployed only at one blockchain
Unable to find PancakeSwap trading pair to compute liquidity.
Unable to find PancakeSwap trading pair to compute number of swaps.
Young tokens have high risks of price dump / death
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 price dump / death
Token has relatively low CoinGecko rank
Token has relatively low CoinMarketCap rank
Twitter account link seems to be invalid