BANG Decentralized, a very powerful token with multiple use cases.
Bringing crypto enthusiasts and gamers together, in a virtual world, where we can invest and play together as a community.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
BANG.swapAndLiquify(uint256) (#1256-1296) sends eth to arbitrary user
Dangerous calls:
- (sent) = _devAddress.call{value: devBalance}() (#1282)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in BANG.swapAndLiquify(uint256) (#1256-1296):
External calls:
- swapTokensForEth(half) (#1269)
- pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1307-1313)
- (sent) = _devAddress.call{value: devBalance}() (#1282)
External calls sending eth:
- (sent) = _devAddress.call{value: devBalance}() (#1282)
State variables written after the call(s):
- _tokenTransfer(address(this),_devAddress,devPortion,false) (#1285)
- _devFee = _previousdevFee (#1367)
- _devFee = 0 (#1361)
- _tokenTransfer(address(this),_devAddress,devPortion,false) (#1285)
- _liquidityFee = _previousLiquidityFee (#1366)
- _liquidityFee = 0 (#1360)
- _tokenTransfer(address(this),_devAddress,devPortion,false) (#1285)
- _taxFee = _previousTaxFee (#1365)
- _taxFee = 0 (#1359)
Apply the check-effects-interactions pattern.
Additional information: link
BANG.transferTokens(address,uint256) (#1108-1111) ignores return value by token.transfer(recepient,amount) (#1110)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
BANG._tdevTotal (#877) is never initialized. It is used in:
- BANG.totaldevFees() (#1032-1034)
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
BANG.reflectionFromToken(uint256,bool)._rv_scope_0 (#1128) is a storage variable never initialized
Initialize all storage variables.
Additional information: link
Combination 1: Reentrancy vulnerabilities + Functions that send Ether to arbitraty destination. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
Combination 2: Unchecked transfer + Functions that send Ether to arbitraty destination. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
Combination 3: Reentrancy vulnerabilities + Unchecked transfer vulnerability. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
BANG.swapAndLiquify(uint256) (#1256-1296) performs a multiplication on the result of a division:
-devPortion = otherHalf.div(totalLiqFee).mul(_devFee) (#1276)
Consider ordering multiplication before division.
Additional information: link
BANG._getRValues(uint256,uint256,uint256,uint256,uint256)._rv (#1218) 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
BANG.addLiquidity(uint256,uint256,address) (#1337-1350) ignores return value by pancakeRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,lp,block.timestamp) (#1342-1349)
Ensure that all the return values of the function calls are used.
Additional information: link
BANG._approve(address,address,uint256).owner (#1194) shadows:
- Ownable.owner() (#797-799) (function)
Rename the local variables that shadow another component.
Additional information: link
BANG.newMaxTxnLimits(uint256,uint256) (#1113-1118) should emit an event for:
- _buyMaxTxAmount = maxBuy * 10 ** 9 (#1116)
- _sellMaxTxAmount = maxSell * 10 ** 9 (#1117)
Emit an event for critical parameter changes.
Additional information: link
BANG.setdevAddress(address).devAddress (#1099) lacks a zero-check on :
- _devAddress = devAddress (#1100)
Check that the address is not zero.
Additional information: link
Variable 'BANG.reflectionFromToken(uint256,bool)._rv (#1123)' in BANG.reflectionFromToken(uint256,bool) (#1120-1133) potentially used before declaration: (_rv,_tv) = _getValues(tAmount) (#1128)
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 BANG.transferFrom(address,address,uint256) (#995-999):
External calls:
- _transfer(sender,recipient,amount) (#996)
- pancakeRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,lp,block.timestamp) (#1342-1349)
- pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1307-1313)
- (sent) = _devAddress.call{value: devBalance}() (#1282)
External calls sending eth:
- _transfer(sender,recipient,amount) (#996)
- pancakeRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,lp,block.timestamp) (#1342-1349)
- (sent) = _devAddress.call{value: devBalance}() (#1282)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#997)
- _allowances[owner][spender] = amount (#1198)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in BANG.transferFrom(address,address,uint256) (#995-999):
External calls:
- _transfer(sender,recipient,amount) (#996)
- pancakeRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,lp,block.timestamp) (#1342-1349)
- pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1307-1313)
- (sent) = _devAddress.call{value: devBalance}() (#1282)
External calls sending eth:
- _transfer(sender,recipient,amount) (#996)
- pancakeRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,lp,block.timestamp) (#1342-1349)
- (sent) = _devAddress.call{value: devBalance}() (#1282)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1199)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#997)
Apply the check-effects-interactions pattern.
Additional information: link
Address.verifyCallResult(bool,bytes,string) (#647-667) uses assembly
- INLINE ASM (#659-662)
Do not use evm assembly.
Additional information: link
SafeMath.trySub(uint256,uint256) (#263-268) is never used and should be removed
Remove unused functions.
Additional information: link
solc-0.8.6 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 BANG.swapAndLiquify(uint256) (#1256-1296):
- (sent) = _devAddress.call{value: devBalance}() (#1282)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Constant BANG._pancakeRouterAddress (#894) is not in UPPER_CASE_WITH_UNDERSCORES
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#773)" inOwnable (#756-828)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable BANG._rTotalSupply (#864) is too similar to BANG._tTotalSupply (#846)
Prevent variables from having similar names.
Additional information: link
BANG.slitherConstructorConstantVariables() (#830-1431) uses literals with too many digits:
- _tTotalSupply = 100000000 * 10 ** 9 (#846)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
BANG._tdevTotal (#877) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
newMaxTxnLimits(uint256,uint256) should be declared external:
- BANG.newMaxTxnLimits(uint256,uint256) (#1113-1118)
Use the external attribute for functions never called from the contract.
Additional information: link
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Token is deployed only at one blockchain
Token has only one trading pair
Unable to find PancakeSwap trading pair to compute liquidity.
Unable to find PancakeSwap trading pair to compute volume.
Unable to find PancakeSwap trading pair to compute number of swaps.
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Token was delisted (assigned to inactive / untracked listing) from CoinMarketCap
Additional information: link
Unable to find token contract audit
Unable to find audit link on the website
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
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
Token has no active CoinMarketCap listing / rank
Token has relatively low CoinGecko rank
Twitter account link seems to be invalid