BNB Gun Fire Token Logo

BGF [BNB Gun Fire] Token

About BGF

Listings

Not Found
Token 4 months

Website

Not Found

Description

Not Found

Social

Not Found

Laser Scorebeta Last Audit: 13 October 2022

report
Token seems to be anonymous. As long as we are unable to find website score is limited.


Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)

Reentrancy in BGF._transferFrom(address,address,uint256) (#314-327):
External calls:
- swapBack(sender,recipient) (#317)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(swapThreshold,0,path,address(this),block.timestamp) (#417-423)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountLiquidity,0,0,owner(),block.timestamp) (#480-487)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#491)
- (tmpSuccess2) = address(rewardFeeReceiver).call{gas: 30000,value: amountBNBReward}() (#492)
External calls sending eth:
- swapBack(sender,recipient) (#317)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountLiquidity,0,0,owner(),block.timestamp) (#480-487)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#491)
- (tmpSuccess2) = address(rewardFeeReceiver).call{gas: 30000,value: amountBNBReward}() (#492)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#320)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#323)
- amountReceived = takeFee(sender,recipient,amount) (#322)
- _balances[address(this)] = _balances[address(this)].add(contractTokens) (#365)
- _balances[burnFeeReceiver] = _balances[burnFeeReceiver].add(burnTokens) (#366)
Apply the check-effects-interactions pattern.

Additional information: link


Contract ownership is not renounced (belongs to a wallet)

BGF.swapBack(address,address).tmpSuccess (#491) is written in both
(tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#491)
tmpSuccess = false (#495)
BGF.swapBack(address,address).tmpSuccess2 (#492) is written in both
(tmpSuccess2) = address(rewardFeeReceiver).call{gas: 30000,value: amountBNBReward}() (#492)
tmpSuccess2 = false (#496)
Fix or remove the writes.

Additional information: link

BGF.ZERO (#198) should be constant
BGF._totalSupply (#206) should be constant
BGF.max_uint (#205) should be constant
BGF.feeDenominator (#234) should be constant
BGF.WBNB (#194) should be constant
BGF.DEAD (#197) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#104-106)
setCheckBuySell(address,bool) should be declared external:
- BGF.setCheckBuySell(address,bool) (#378-382)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#112-115)
approve(address,uint256) should be declared external:
- BGF.approve(address,uint256) (#297-301)
getCirculatingSupply() should be declared external:
- BGF.getCirculatingSupply() (#540-542)
Use the external attribute for functions never called from the contract.

Additional information: link

BGF.swapBack(address,address) (#407-498) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountLiquidity,0,0,owner(),block.timestamp) (#480-487)
Ensure that all the return values of the function calls are used.

Additional information: link

BGF.setSwapBackSettings(bool,uint256) (#534-537) should emit an event for:
- swapThreshold = _amount (#536)
BGF.setFees(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256) (#504-524) should emit an event for:
- sellRewardFee = _sellRewardFee (#505)
- sellMarketingFee = _sellMarketingFee (#506)
- sellLiquidityFee = _sellLiquidityFee (#507)
- buyRewardFee = _buyRewardFee (#508)
- buyMarketingFee = _buyMarketingFee (#509)
- buyLiquidityFee = _buyLiquidityFee (#510)
- transferRewardFee = _transferRewardFee (#511)
- transferMarketingFee = _transferMarketingFee (#512)
- transferLiquidityFee = _transferLiquidityFee (#513)
- burnFee = _burnFee (#514)
- totalFeeBuy = _buyRewardFee.add(_buyMarketingFee).add(_buyLiquidityFee).add(_burnFee) (#515)
- totalFeeSell = _sellRewardFee.add(_sellMarketingFee).add(_sellLiquidityFee).add(_burnFee) (#518)
- totalFeeTransfer = _transferRewardFee.add(_transferMarketingFee).add(_transferLiquidityFee).add(_burnFee) (#521)
Emit an event for critical parameter changes.

Additional information: link

BGF.setrewardFeeReceivers(address)._rewardFeeReceiver (#530) lacks a zero-check on :
- rewardFeeReceiver = _rewardFeeReceiver (#531)
BGF.setmarketingFeeReceivers(address)._marketingFeeReceiver (#526) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#527)
Check that the address is not zero.

Additional information: link

Reentrancy in BGF.swapBack(address,address) (#407-498):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(swapThreshold,0,path,address(this),block.timestamp) (#417-423)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = amountLiquidity (#477)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in BGF._transferFrom(address,address,uint256) (#314-327):
External calls:
- swapBack(sender,recipient) (#317)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(swapThreshold,0,path,address(this),block.timestamp) (#417-423)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountLiquidity,0,0,owner(),block.timestamp) (#480-487)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#491)
- (tmpSuccess2) = address(rewardFeeReceiver).call{gas: 30000,value: amountBNBReward}() (#492)
External calls sending eth:
- swapBack(sender,recipient) (#317)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountLiquidity,0,0,owner(),block.timestamp) (#480-487)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#491)
- (tmpSuccess2) = address(rewardFeeReceiver).call{gas: 30000,value: amountBNBReward}() (#492)
Event emitted after the call(s):
- Transfer(sender,recipient,amountReceived) (#325)
- Transfer(sender,address(this),contractTokens) (#367)
- amountReceived = takeFee(sender,recipient,amount) (#322)
- Transfer(sender,burnFeeReceiver,burnTokens) (#370)
- amountReceived = takeFee(sender,recipient,amount) (#322)
Apply the check-effects-interactions pattern.

Additional information: link

Context._msgData() (#64-66) is never used and should be removed
Remove unused functions.

Additional information: link

BGF.burnFeeReceiver (#241) is set pre-construction with a non-constant function or state variable:
- DEAD
BGF.totalFeeTransfer (#232) is set pre-construction with a non-constant function or state variable:
- transferRewardFee + transferMarketingFee + transferLiquidityFee + burnFee
BGF.totalFeeSell (#220) is set pre-construction with a non-constant function or state variable:
- sellLiquidityFee + sellRewardFee + sellMarketingFee + burnFee
BGF.totalFeeBuy (#226) is set pre-construction with a non-constant function or state variable:
- buyLiquidityFee + buyRewardFee + buyMarketingFee + burnFee
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.7.0<0.9.0 (#3) is too complex
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 BGF.swapBack(address,address) (#407-498):
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#491)
- (tmpSuccess2) = address(rewardFeeReceiver).call{gas: 30000,value: amountBNBReward}() (#492)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

Variable BGF.WBNB (#194) is not in mixedCase
Parameter BGF.setFees(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)._transferRewardFee (#504) is not in mixedCase
Function IDEXRouter.WETH() (#134) is not in mixedCase
Constant BGF._decimals (#204) is not in UPPER_CASE_WITH_UNDERSCORES
Parameter BGF.setFees(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)._burnFee (#504) is not in mixedCase
Parameter BGF.setFees(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)._sellMarketingFee (#504) is not in mixedCase
Parameter BGF.setFees(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)._buyRewardFee (#504) is not in mixedCase
Parameter BGF.setFees(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)._sellRewardFee (#504) is not in mixedCase
Parameter BGF.setFees(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)._buyMarketingFee (#504) is not in mixedCase
Parameter BGF.setFees(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)._buyLiquidityFee (#504) is not in mixedCase
Parameter BGF.setFees(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)._transferMarketingFee (#504) is not in mixedCase
Variable BGF._balances (#208) is not in mixedCase
Constant BGF._name (#200) is not in UPPER_CASE_WITH_UNDERSCORES
Parameter BGF.setmarketingFeeReceivers(address)._marketingFeeReceiver (#526) is not in mixedCase
Parameter BGF.setFees(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)._sellLiquidityFee (#504) is not in mixedCase
Constant BGF._symbol (#201) is not in UPPER_CASE_WITH_UNDERSCORES
Parameter BGF.setSwapBackSettings(bool,uint256)._amount (#534) is not in mixedCase
Variable BGF.DEAD (#197) is not in mixedCase
Parameter BGF.setSwapBackSettings(bool,uint256)._enabled (#534) is not in mixedCase
Parameter BGF.setrewardFeeReceivers(address)._rewardFeeReceiver (#530) is not in mixedCase
Variable BGF.max_uint (#205) is not in mixedCase
Variable BGF._totalSupply (#206) is not in mixedCase
Variable BGF._allowances (#209) is not in mixedCase
Variable BGF.ZERO (#198) is not in mixedCase
Parameter BGF.setFees(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)._transferLiquidityFee (#504) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#139) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#140)
Prevent variables from having similar names.

Additional information: link

BGF.slitherConstructorVariables() (#190-545) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#198)
BGF.slitherConstructorVariables() (#190-545) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#197)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

Holders:


Average 30d number of PancakeSwap swaps is less than 1. Token is either dead or inactive.

Contract has 6% buy tax and 6% sell tax.
Taxes are low but contract ownership is not renounced. Token has a high risk of becoming a honeypot.


Average 30d PancakeSwap volume is low.


Number of Binance Smart Chain (BSC) token holders is low.


Average PancakeSwap trading volume, liqudity, number of swaps are low. Token seems to be inactive.


Token is deployed only at one blockchain


Token has only one trading pair


Unable to find Telegram and Twitter accounts


Unable to find website, listings and other project-related information


Young tokens have high risks of scam / price dump / death


Token has no active CoinGecko listing / rank


Token has no active CoinMarketCap listing / rank

Price for BGF