QBG Token Logo

QBG Token

About QBG

Listings

Not Found
Token 2 years

Website

Not Found

Description

Not Found

Social

Not Found

Laser Scorebeta Last Audit: 12 February 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...)

QBGToken.addLiquidity(uint256,uint256) (#733-745) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#737-744)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in QBGToken._transfer(address,address,uint256) (#655-700):
External calls:
- swapAndLiquify(contractTokenBalance) (#680)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#737-744)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#724-730)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#680)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#737-744)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee,user) (#699)
- _rOwned[sender] = _rOwned[sender].sub(param.rAmount) (#797)
- _rOwned[address(0)] = _rOwned[address(0)].add(rBurn) (#557)
- _rOwned[fundAddress] = _rOwned[fundAddress].add(rFund) (#566)
- _rOwned[sender] = _rOwned[sender].sub(param.rAmount) (#787)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#548)
- _rOwned[marketAddress] = _rOwned[marketAddress].add(rMarket) (#575)
- _rOwned[sender] = _rOwned[sender].sub(param.rAmount) (#809)
- _rOwned[sender] = _rOwned[sender].sub(param.rAmount) (#776)
- _rOwned[recipient] = _rOwned[recipient].add(param.rTransferAmount) (#788)
- _rOwned[recipient] = _rOwned[recipient].add(param.rTransferAmount) (#810)
- _rOwned[recipient] = _rOwned[recipient].add(param.rTransferAmount) (#799)
- _rOwned[recipient] = _rOwned[recipient].add(param.rTransferAmount) (#778)
- _rOwned[parent] = _rOwned[parent].add(rv) (#615)
- _tokenTransfer(from,to,amount,takeFee,user) (#699)
- _rTotal = _rTotal.sub(rFee) (#627)
- _tokenTransfer(from,to,amount,takeFee,user) (#699)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#775)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#808)
- _tOwned[recipient] = _tOwned[recipient].add(param.tTransferAmount) (#798)
- _tOwned[address(0)] = _tOwned[address(0)].add(tBurn) (#559)
- _tOwned[recipient] = _tOwned[recipient].add(param.tTransferAmount) (#777)
- _tOwned[fundAddress] = _tOwned[fundAddress].add(tFund) (#568)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#550)
- _tOwned[marketAddress] = _tOwned[marketAddress].add(tMarket) (#577)
- _tOwned[parent] = _tOwned[parent].add(tv) (#617)
Apply the check-effects-interactions pattern.

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.

Reentrancy in QBGToken._transfer(address,address,uint256) (#655-700):
External calls:
- swapAndLiquify(contractTokenBalance) (#680)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#737-744)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#724-730)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#680)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#737-744)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee,user) (#699)
- _tFeeTotal = _tFeeTotal.add(tFee) (#628)
Reentrancy in QBGToken.swapAndLiquify(uint256) (#702-714):
External calls:
- swapTokensForEth(half) (#709)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#724-730)
- addLiquidity(otherHalf,newBalance) (#713)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#737-744)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#713)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#737-744)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#713)
- _allowances[owner][spender] = amount (#639)
Reentrancy in QBGToken.transferFrom(address,address,uint256) (#411-415):
External calls:
- _transfer(sender,recipient,amount) (#412)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#737-744)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#724-730)
External calls sending eth:
- _transfer(sender,recipient,amount) (#412)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#737-744)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#413)
- _allowances[owner][spender] = amount (#639)
Apply the check-effects-interactions pattern.

Additional information: link

QBGToken._getValues(uint256,bool,address) (#499-526) performs a multiplication on the result of a division:
-tFee = tAmount * _totalFee / 100 (#520)
-rFee = tFee.mul(currentRate) (#521)
QBGToken._takeShare(uint256,uint256,address,address) (#594-624) performs a multiplication on the result of a division:
-tv = tShare / size (#606)
-rv = tv.mul(currentRate) (#607)
Consider ordering multiplication before division.

Additional information: link

QBGToken.addLiquidity(uint256,uint256) (#733-745) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#737-744)
Ensure that all the return values of the function calls are used.

Additional information: link

QBGToken.allowance(address,address).owner (#402) shadows:
- Ownable.owner() (#221-223) (function)
QBGToken.getForefathers(address,uint256).owner (#583) shadows:
- Ownable.owner() (#221-223) (function)
QBGToken._approve(address,address,uint256).owner (#635) shadows:
- Ownable.owner() (#221-223) (function)
Rename the local variables that shadow another component.

Additional information: link

QBGToken.setMaxTx(uint256) (#372-374) should emit an event for:
- _maxTxAmount = maxTx (#373)
Emit an event for critical parameter changes.

Additional information: link

QBGToken.constructor(address,address,address,address,address)._wbnb (#346) lacks a zero-check on :
- wbnb = _wbnb (#356)
QBGToken.constructor(address,address,address,address,address)._holder (#346) lacks a zero-check on :
- holder = _holder (#362)
QBGToken.constructor(address,address,address,address,address)._fundAddress (#346) lacks a zero-check on :
- fundAddress = _fundAddress (#363)
QBGToken.constructor(address,address,address,address,address)._marketAddress (#346) lacks a zero-check on :
- marketAddress = _marketAddress (#364)
QBGToken.setPair(address).pair (#368) lacks a zero-check on :
- uniswapV2Pair = pair (#369)
Check that the address is not zero.

Additional information: link

Reentrancy in QBGToken._transfer(address,address,uint256) (#655-700):
External calls:
- swapAndLiquify(contractTokenBalance) (#680)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#737-744)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#724-730)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#680)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#737-744)
Event emitted after the call(s):
- Transfer(sender,recipient,param.tTransferAmount) (#789)
- _tokenTransfer(from,to,amount,takeFee,user) (#699)
- Transfer(sender,recipient,param.tTransferAmount) (#811)
- _tokenTransfer(from,to,amount,takeFee,user) (#699)
- Transfer(sender,recipient,param.tTransferAmount) (#800)
- _tokenTransfer(from,to,amount,takeFee,user) (#699)
- Transfer(from,address(0),tBurn) (#561)
- _tokenTransfer(from,to,amount,takeFee,user) (#699)
- Transfer(from,address(this),tLiquidity) (#552)
- _tokenTransfer(from,to,amount,takeFee,user) (#699)
- Transfer(sender,recipient,param.tTransferAmount) (#779)
- _tokenTransfer(from,to,amount,takeFee,user) (#699)
- Transfer(from,parent,tv) (#619)
- _tokenTransfer(from,to,amount,takeFee,user) (#699)
Reentrancy in QBGToken.swapAndLiquify(uint256) (#702-714):
External calls:
- swapTokensForEth(half) (#709)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#724-730)
- addLiquidity(otherHalf,newBalance) (#713)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#737-744)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#713)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#737-744)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#640)
- addLiquidity(otherHalf,newBalance) (#713)
Reentrancy in QBGToken.transferFrom(address,address,uint256) (#411-415):
External calls:
- _transfer(sender,recipient,amount) (#412)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#737-744)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#724-730)
External calls sending eth:
- _transfer(sender,recipient,amount) (#412)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#737-744)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#640)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#413)
Apply the check-effects-interactions pattern.

Additional information: link

Address.isContract(address) (#151-156) uses assembly
- INLINE ASM (#154)
Address._functionCallWithValue(address,bytes,uint256,string) (#186-207) uses assembly
- INLINE ASM (#199-202)
QBGToken._isContract(address) (#825-829) uses assembly
- INLINE ASM (#827)
Do not use evm assembly.

Additional information: link

QBGToken.includeInReward(address) (#462-473) has costly operations inside a loop:
- _excluded.pop() (#469)
Use a local variable to hold the loop computation result.

Additional information: link

Address._functionCallWithValue(address,bytes,uint256,string) (#186-207) is never used and should be removed
Address.functionCall(address,bytes) (#166-168) is never used and should be removed
Address.functionCall(address,bytes,string) (#171-173) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#176-178) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#181-184) is never used and should be removed
Address.isContract(address) (#151-156) is never used and should be removed
Address.sendValue(address,uint256) (#158-164) is never used and should be removed
Context._msgData() (#143-146) is never used and should be removed
SafeMath.mod(uint256,uint256) (#127-129) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#132-135) is never used and should be removed
TransferHelper.safeApprove(address,address,uint256) (#263-267) is never used and should be removed
TransferHelper.safeTransferFrom(address,address,address,uint256) (#275-279) is never used and should be removed
Remove unused functions.

Additional information: link

QBGToken._rTotal (#303) is set pre-construction with a non-constant function or state variable:
- (MAX - (MAX % _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

Low level call in Address.sendValue(address,uint256) (#158-164):
- (success) = recipient.call{value: amount}() (#162)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#186-207):
- (success,returndata) = target.call{value: weiValue}(data) (#190)
Low level call in TransferHelper.safeApprove(address,address,uint256) (#263-267):
- (success,data) = token.call(abi.encodeWithSelector(0x095ea7b3,to,value)) (#265)
Low level call in TransferHelper.safeTransfer(address,address,uint256) (#269-273):
- (success,data) = token.call(abi.encodeWithSelector(0xa9059cbb,to,value)) (#271)
Low level call in TransferHelper.safeTransferFrom(address,address,address,uint256) (#275-279):
- (success,data) = token.call(abi.encodeWithSelector(0x23b872dd,from,to,value)) (#277)
Low level call in TransferHelper.safeTransferETH(address,uint256) (#281-284):
- (success) = to.call{value: value}(new bytes(0)) (#282)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

Variable QBGToken._liquidityFee (#309) is not in mixedCase
Variable QBGToken._burnFee (#311) is not in mixedCase
Variable QBGToken._taxFee (#313) is not in mixedCase
Variable QBGToken._fundFee (#315) is not in mixedCase
Variable QBGToken._marketFee (#318) is not in mixedCase
Variable QBGToken._perTierFee (#321) is not in mixedCase
Variable QBGToken._maxTxAmount (#328) is not in mixedCase
Constant QBGToken.rootAddress (#334) is not in UPPER_CASE_WITH_UNDERSCORES
Variable QBGToken._recommerMapping (#336) is not in mixedCase
Variable QBGToken._tierMapping (#338) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (#144)" inContext (#138-147)
Remove redundant statements if they congest code but offer no value.

Additional information: link

QBGToken.slitherConstructorVariables() (#287-833) uses literals with too many digits:
- _tTotal = 2100000000 * 10 ** 9 (#302)
QBGToken.slitherConstructorVariables() (#287-833) uses literals with too many digits:
- _maxTxAmount = 500000 * 10 ** 9 (#328)
QBGToken.slitherConstructorConstantVariables() (#287-833) uses literals with too many digits:
- rootAddress = address(0x000000000000000000000000000000000000dEaD) (#334)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

QBGToken._burnFee (#311) should be constant
QBGToken._decimals (#300) should be constant
QBGToken._fundFee (#315) should be constant
QBGToken._liquidityFee (#309) should be constant
QBGToken._marketFee (#318) should be constant
QBGToken._name (#306) should be constant
QBGToken._perTierFee (#321) should be constant
QBGToken._symbol (#307) should be constant
QBGToken._tTotal (#302) should be constant
QBGToken._taxFee (#313) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#230-234)
name() should be declared external:
- QBGToken.name() (#376-378)
symbol() should be declared external:
- QBGToken.symbol() (#380-382)
decimals() should be declared external:
- QBGToken.decimals() (#384-386)
totalSupply() should be declared external:
- QBGToken.totalSupply() (#388-390)
transfer(address,uint256) should be declared external:
- QBGToken.transfer(address,uint256) (#397-400)
allowance(address,address) should be declared external:
- QBGToken.allowance(address,address) (#402-404)
approve(address,uint256) should be declared external:
- QBGToken.approve(address,uint256) (#406-409)
transferFrom(address,address,uint256) should be declared external:
- QBGToken.transferFrom(address,address,uint256) (#411-415)
increaseAllowance(address,uint256) should be declared external:
- QBGToken.increaseAllowance(address,uint256) (#417-420)
decreaseAllowance(address,uint256) should be declared external:
- QBGToken.decreaseAllowance(address,uint256) (#422-425)
isExcludedFromReward(address) should be declared external:
- QBGToken.isExcludedFromReward(address) (#427-429)
totalFees() should be declared external:
- QBGToken.totalFees() (#431-433)
reflectionFromToken(uint256,bool) should be declared external:
- QBGToken.reflectionFromToken(uint256,bool) (#435-444)
excludeFromReward(address) should be declared external:
- QBGToken.excludeFromReward(address) (#452-460)
excludeFromFee(address) should be declared external:
- QBGToken.excludeFromFee(address) (#476-478)
includeInFee(address) should be declared external:
- QBGToken.includeInFee(address) (#480-482)
isExcludedFromFee(address) should be declared external:
- QBGToken.isExcludedFromFee(address) (#631-633)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.


Average 30d PancakeSwap volume is less than $100. Token is either dead or inactive.


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


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


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


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 QBG