BJG Token Logo

BJG Token

About BJG

Listings

Not Found
Token 3 months

Website

Not Found

Description

Not Found

Social

Not Found

Laser Scorebeta Last Audit: 6 February 2022

report
Code:


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

BJG.addLiquidity(uint256,uint256) (#760-773) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in BJG._transfer(address,address,uint256) (#669-707):
External calls:
- swapAndLiquify(contractTokenBalance) (#691)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#749-755)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#691)
- recipient.transfer(amount) (#633)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#694)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#702)
- finalAmount = takeFee(sender,recipient,amount) (#696-697)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#787)
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.

BJG.addLiquidity(uint256,uint256) (#760-773) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
Ensure that all the return values of the function calls are used.

Additional information: link

BJG.allowance(address,address).owner (#524) shadows:
- Ownable.owner() (#152-154) (function)
BJG._approve(address,address,uint256).owner (#547) shadows:
- Ownable.owner() (#152-154) (function)
Rename the local variables that shadow another component.

Additional information: link

BJG.setBuyTaxes(uint256,uint256,uint256) (#567-573) should emit an event for:
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyTeamFee) (#572)
BJG.setSellTaxes(uint256,uint256,uint256) (#575-581) should emit an event for:
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellTeamFee) (#580)
BJG.setDistributionSettings(uint256,uint256,uint256) (#583-589) should emit an event for:
- _liquidityShare = newLiquidityShare (#584)
- _teamShare = newTeamShare (#586)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_teamShare) (#588)
BJG.setMaxTxAmount(uint256) (#591-593) should emit an event for:
- _maxTxAmount = maxTxAmount (#592)
BJG.setWalletLimit(uint256) (#603-605) should emit an event for:
- _walletMax = newLimit (#604)
BJG.setNumTokensBeforeSwap(uint256) (#607-609) should emit an event for:
- minimumTokensBeforeSwap = newLimit (#608)
Emit an event for critical parameter changes.

Additional information: link

BJG.setMarketingWalletAddress(address).newAddress (#611) lacks a zero-check on :
- marketingWalletAddress = address(newAddress) (#612)
BJG.setTeamWalletAddress(address).newAddress (#615) lacks a zero-check on :
- teamWalletAddress = address(newAddress) (#616)
Check that the address is not zero.

Additional information: link

Reentrancy in BJG.changeRouterVersion(address) (#636-653):
External calls:
- newPairAddress = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#644-645)
State variables written after the call(s):
- isMarketPair[address(uniswapPair)] = true (#652)
- isWalletLimitExempt[address(uniswapPair)] = true (#651)
- uniswapPair = newPairAddress (#648)
- uniswapV2Router = _uniswapV2Router (#649)
Reentrancy in BJG.constructor() (#468-502):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#472-473)
State variables written after the call(s):
- _allowances[address(this)][address(uniswapV2Router)] = _totalSupply (#476)
- _balances[_msgSender()] = _totalSupply (#500)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_teamShare) (#485)
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyTeamFee) (#483)
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellTeamFee) (#484)
- isExcludedFromFee[owner()] = true (#478)
- isExcludedFromFee[marketingWalletAddress] = true (#479)
- isExcludedFromFee[teamWalletAddress] = true (#480)
- isExcludedFromFee[address(this)] = true (#481)
- isMarketPair[address(uniswapPair)] = true (#498)
- isTxLimitExempt[owner()] = true (#493)
- isTxLimitExempt[address(this)] = true (#494)
- isTxLimitExempt[marketingWalletAddress] = true (#495)
- isTxLimitExempt[teamWalletAddress] = true (#496)
- isWalletLimitExempt[owner()] = true (#487)
- isWalletLimitExempt[address(uniswapPair)] = true (#488)
- isWalletLimitExempt[address(this)] = true (#489)
- isWalletLimitExempt[marketingWalletAddress] = true (#490)
- isWalletLimitExempt[teamWalletAddress] = true (#491)
- uniswapV2Router = _uniswapV2Router (#475)
Reentrancy in BJG.swapAndLiquify(uint256) (#716-738):
External calls:
- swapTokensForEth(tokensForSwap) (#721)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#749-755)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#737)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#731)
- recipient.transfer(amount) (#633)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#734)
- recipient.transfer(amount) (#633)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#737)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#737)
- _allowances[owner][spender] = amount (#551)
Reentrancy in BJG.transferFrom(address,address,uint256) (#663-667):
External calls:
- _transfer(sender,recipient,amount) (#664)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#749-755)
External calls sending eth:
- _transfer(sender,recipient,amount) (#664)
- recipient.transfer(amount) (#633)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#665)
- _allowances[owner][spender] = amount (#551)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in BJG._transfer(address,address,uint256) (#669-707):
External calls:
- swapAndLiquify(contractTokenBalance) (#691)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#749-755)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#691)
- recipient.transfer(amount) (#633)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#788)
- finalAmount = takeFee(sender,recipient,amount) (#696-697)
- Transfer(sender,recipient,finalAmount) (#704)
Reentrancy in BJG.constructor() (#468-502):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#472-473)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_totalSupply) (#501)
Reentrancy in BJG.swapAndLiquify(uint256) (#716-738):
External calls:
- swapTokensForEth(tokensForSwap) (#721)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#749-755)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#737)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#731)
- recipient.transfer(amount) (#633)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#734)
- recipient.transfer(amount) (#633)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#737)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#552)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#737)
Reentrancy in BJG.swapTokensForEth(uint256) (#740-758):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#749-755)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (#757)
Reentrancy in BJG.transferFrom(address,address,uint256) (#663-667):
External calls:
- _transfer(sender,recipient,amount) (#664)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#749-755)
External calls sending eth:
- _transfer(sender,recipient,amount) (#664)
- recipient.transfer(amount) (#633)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#552)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#665)
Apply the check-effects-interactions pattern.

Additional information: link

Ownable.unlock() (#187-192) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp > _lockTime,Contract is locked until 7 days) (#189)
Avoid relying on block.timestamp.

Additional information: link

Address.isContract(address) (#83-92) uses assembly
- INLINE ASM (#90)
Address._functionCallWithValue(address,bytes,uint256,string) (#119-136) uses assembly
- INLINE ASM (#128-131)
Do not use evm assembly.

Additional information: link

Address._functionCallWithValue(address,bytes,uint256,string) (#119-136) is never used and should be removed
Address.functionCall(address,bytes) (#102-104) is never used and should be removed
Address.functionCall(address,bytes,string) (#106-108) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#110-112) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#114-117) is never used and should be removed
Address.isContract(address) (#83-92) is never used and should be removed
Address.sendValue(address,uint256) (#94-100) is never used and should be removed
Context._msgData() (#10-13) is never used and should be removed
SafeMath.mod(uint256,uint256) (#71-73) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#75-78) is never used and should be removed
Remove unused functions.

Additional information: link

BJG._totalSupply (#432) is set pre-construction with a non-constant function or state variable:
- 600 * 10 ** _decimals
BJG._maxTxAmount (#433) is set pre-construction with a non-constant function or state variable:
- 2 * 10 ** _decimals
BJG._walletMax (#434) is set pre-construction with a non-constant function or state variable:
- 5 * 10 ** _decimals
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.0 (#2) allows old versions
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.sendValue(address,uint256) (#94-100):
- (success) = recipient.call{value: amount}() (#98)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#119-136):
- (success,returndata) = target.call{value: weiValue}(data) (#122)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#226) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#227) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#243) is not in mixedCase
Function IUniswapV2Router01.WETH() (#262) is not in mixedCase
Parameter BJG.setSwapAndLiquifyEnabled(bool)._enabled (#619) is not in mixedCase
Variable BJG._balances (#408) is not in mixedCase
Variable BJG._buyLiquidityFee (#416) is not in mixedCase
Variable BJG._buyMarketingFee (#417) is not in mixedCase
Variable BJG._buyTeamFee (#418) is not in mixedCase
Variable BJG._sellLiquidityFee (#420) is not in mixedCase
Variable BJG._sellMarketingFee (#421) is not in mixedCase
Variable BJG._sellTeamFee (#422) is not in mixedCase
Variable BJG._liquidityShare (#424) is not in mixedCase
Variable BJG._marketingShare (#425) is not in mixedCase
Variable BJG._teamShare (#426) is not in mixedCase
Variable BJG._totalTaxIfBuying (#428) is not in mixedCase
Variable BJG._totalTaxIfSelling (#429) is not in mixedCase
Variable BJG._totalDistributionShares (#430) is not in mixedCase
Variable BJG._maxTxAmount (#433) is not in mixedCase
Variable BJG._walletMax (#434) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (#11)" inContext (#4-14)
Remove redundant statements if they congest code but offer no value.

Additional information: link

Reentrancy in BJG._transfer(address,address,uint256) (#669-707):
External calls:
- swapAndLiquify(contractTokenBalance) (#691)
- recipient.transfer(amount) (#633)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#691)
- recipient.transfer(amount) (#633)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#694)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#702)
- finalAmount = takeFee(sender,recipient,amount) (#696-697)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#787)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#788)
- finalAmount = takeFee(sender,recipient,amount) (#696-697)
- Transfer(sender,recipient,finalAmount) (#704)
Reentrancy in BJG.swapAndLiquify(uint256) (#716-738):
External calls:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#731)
- recipient.transfer(amount) (#633)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#734)
- recipient.transfer(amount) (#633)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#731)
- recipient.transfer(amount) (#633)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#734)
- recipient.transfer(amount) (#633)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#737)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#737)
- _allowances[owner][spender] = amount (#551)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#552)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#737)
Reentrancy in BJG.transferFrom(address,address,uint256) (#663-667):
External calls:
- _transfer(sender,recipient,amount) (#664)
- recipient.transfer(amount) (#633)
External calls sending eth:
- _transfer(sender,recipient,amount) (#664)
- recipient.transfer(amount) (#633)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#765-772)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#665)
- _allowances[owner][spender] = amount (#551)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#552)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#665)
Apply the check-effects-interactions pattern.

Additional information: link

Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#267) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#268)
Prevent variables from having similar names.

Additional information: link

BJG.slitherConstructorVariables() (#395-795) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#406)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

BJG._decimals (#402) should be constant
BJG._name (#400) should be constant
BJG._symbol (#401) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

waiveOwnership() should be declared external:
- Ownable.waiveOwnership() (#161-164)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#166-170)
getUnlockTime() should be declared external:
- Ownable.getUnlockTime() (#172-174)
getTime() should be declared external:
- Ownable.getTime() (#176-178)
lock(uint256) should be declared external:
- Ownable.lock(uint256) (#180-185)
unlock() should be declared external:
- Ownable.unlock() (#187-192)
name() should be declared external:
- BJG.name() (#504-506)
symbol() should be declared external:
- BJG.symbol() (#508-510)
decimals() should be declared external:
- BJG.decimals() (#512-514)
totalSupply() should be declared external:
- BJG.totalSupply() (#516-518)
allowance(address,address) should be declared external:
- BJG.allowance(address,address) (#524-526)
increaseAllowance(address,uint256) should be declared external:
- BJG.increaseAllowance(address,uint256) (#528-531)
decreaseAllowance(address,uint256) should be declared external:
- BJG.decreaseAllowance(address,uint256) (#533-536)
minimumTokensBeforeSwapAmount() should be declared external:
- BJG.minimumTokensBeforeSwapAmount() (#538-540)
approve(address,uint256) should be declared external:
- BJG.approve(address,uint256) (#542-545)
setMarketPairStatus(address,bool) should be declared external:
- BJG.setMarketPairStatus(address,bool) (#555-557)
setIsExcludedFromFee(address,bool) should be declared external:
- BJG.setIsExcludedFromFee(address,bool) (#563-565)
setSwapAndLiquifyEnabled(bool) should be declared external:
- BJG.setSwapAndLiquifyEnabled(bool) (#619-622)
setSwapAndLiquifyByLimitOnly(bool) should be declared external:
- BJG.setSwapAndLiquifyByLimitOnly(bool) (#624-626)
getCirculatingSupply() should be declared external:
- BJG.getCirculatingSupply() (#628-630)
changeRouterVersion(address) should be declared external:
- BJG.changeRouterVersion(address) (#636-653)
transfer(address,uint256) should be declared external:
- BJG.transfer(address,uint256) (#658-661)
transferFrom(address,address,uint256) should be declared external:
- BJG.transferFrom(address,address,uint256) (#663-667)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


Token seems to be untradeable: there is no PancakeSwap trading pair and no trading volumes. Ignore for presale.


Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive.


Unable to find Telegram and Twitter accounts

Search:


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

Anti-Scam Checks

Price for BJG