Boji Token was created on 3rd April 2022 with a powerful community which is all open communication for building a better world for stray animals with the partnerships with charities and Non-governmental organizations. The aim is to bring the crypto world and animal lovers together and support all the animals that need helps, feeding the hungry animals and adopt them from the streets and shelters with Boji Token community.
Reentrancy in BOJI._transfer(address,address,uint256) (boji.sol#268-316):
External calls:
- swapTokensForEth(contractTokenBalance) (boji.sol#291)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (boji.sol#327-333)
External calls sending eth:
- sendETHToTeam(address(this).balance) (boji.sol#295)
- _opsTeamWalletAddress.transfer(amount) (boji.sol#337)
State variables written after the call(s):
- _tokenTransfer(sender,recipient,amount,takeFee) (boji.sol#308)
- _rOwned[address(this)] = _rOwned[address(this)].add(rTeamFee) (boji.sol#424)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (boji.sol#531)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (boji.sol#385)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (boji.sol#394)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (boji.sol#405)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (boji.sol#415)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (boji.sol#386)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (boji.sol#396)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (boji.sol#406)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (boji.sol#417)
- _tokenTransfer(sender,recipient,amount,takeFee) (boji.sol#308)
- _rTotal = _rTotal.sub(rFee) (boji.sol#430)
- _tokenTransfer(sender,recipient,amount,takeFee) (boji.sol#308)
- _tOwned[address(this)] = _tOwned[address(this)].add(tTeamFee) (boji.sol#426)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (boji.sol#533)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (boji.sol#404)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (boji.sol#414)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (boji.sol#395)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (boji.sol#416)
- cooldown[sender] = block.timestamp + (60) (boji.sol#311)
- cooldown[recipient] = block.timestamp + (60) (boji.sol#314)
Apply the check-effects-interactions pattern.
Additional information: link
BOJI.sendETHToTeam(uint256) (boji.sol#336-338) sends eth to arbitrary user
Dangerous calls:
- _opsTeamWalletAddress.transfer(amount) (boji.sol#337)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
BOJI._setTaxFee(uint256) (boji.sol#499-502) contains a tautology or contradiction:
- require(bool,string)(taxFee >= 0 && taxFee <= 3,taxFee should be between 0 and 3) (boji.sol#500)
Fix the incorrect comparison by changing the value type or the comparison.
Additional information: link
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
Contract ownership is not renounced (belongs to a wallet)
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.
BOJI._approve(address,address,uint256).owner (boji.sol#260) shadows:
- Ownable.owner() (Ownable.sol#34-36) (function)
BOJI.allowance(address,address).owner (boji.sol#140) shadows:
- Ownable.owner() (Ownable.sol#34-36) (function)
Rename the local variables that shadow another component.
Additional information: link
Address.isContract(address) (Address.sol#26-36) uses assembly
- INLINE ASM (Address.sol#32-34)
Address._verifyCallResult(bool,bytes,string) (Address.sol#189-209) uses assembly
- INLINE ASM (Address.sol#201-204)
Do not use evm assembly.
Additional information: link
Variable BOJI._getValues(uint256).rTransferAmount (boji.sol#440) is too similar to BOJI._transferFromExcluded(address,address,uint256).tTransferAmount (boji.sol#403)
Variable BOJI._getRValues(uint256,uint256,uint256,uint256,uint256).rTransferAmount (boji.sol#458) is too similar to BOJI._getValues(uint256).tTransferAmount (boji.sol#438)
Variable BOJI._transferToExcluded(address,address,uint256).rTransferAmount (boji.sol#393) is too similar to BOJI._transferStandard(address,address,uint256).tTransferAmount (boji.sol#384)
Variable BOJI._transferToExcluded(address,address,uint256).rTransferAmount (boji.sol#393) is too similar to BOJI._transferToExcluded(address,address,uint256).tTransferAmount (boji.sol#393)
Variable BOJI._getRValues(uint256,uint256,uint256,uint256,uint256).rTransferAmount (boji.sol#458) is too similar to BOJI._transferStandard(address,address,uint256).tTransferAmount (boji.sol#384)
Variable BOJI._getValues(uint256).rTransferAmount (boji.sol#440) is too similar to BOJI._transferBothExcluded(address,address,uint256).tTransferAmount (boji.sol#413)
Variable BOJI._transferToExcluded(address,address,uint256).rTransferAmount (boji.sol#393) is too similar to BOJI._transferBothExcluded(address,address,uint256).tTransferAmount (boji.sol#413)
Variable BOJI.reflectionFromToken(uint256,bool).rTransferAmount (boji.sol#203) is too similar to BOJI._transferToExcluded(address,address,uint256).tTransferAmount (boji.sol#393)
Variable BOJI.reflectionFromToken(uint256,bool).rTransferAmount (boji.sol#203) is too similar to BOJI._transferBothExcluded(address,address,uint256).tTransferAmount (boji.sol#413)
Variable BOJI.reflectionFromToken(uint256,bool).rTransferAmount (boji.sol#203) is too similar to BOJI._transferStandard(address,address,uint256).tTransferAmount (boji.sol#384)
Variable BOJI._getValues(uint256).rTransferAmount (boji.sol#440) is too similar to BOJI._getTValues(uint256,uint256,uint256,uint256).tTransferAmount (boji.sol#448)
Variable BOJI._transferBothExcluded(address,address,uint256).rTransferAmount (boji.sol#413) is too similar to BOJI._transferBothExcluded(address,address,uint256).tTransferAmount (boji.sol#413)
Variable BOJI._transferStandard(address,address,uint256).rTransferAmount (boji.sol#384) is too similar to BOJI._transferBothExcluded(address,address,uint256).tTransferAmount (boji.sol#413)
Variable BOJI._transferBothExcluded(address,address,uint256).rTransferAmount (boji.sol#413) is too similar to BOJI._transferStandard(address,address,uint256).tTransferAmount (boji.sol#384)
Variable BOJI._transferToExcluded(address,address,uint256).rTransferAmount (boji.sol#393) is too similar to BOJI._getTValues(uint256,uint256,uint256,uint256).tTransferAmount (boji.sol#448)
Variable BOJI.reflectionFromToken(uint256,bool).rTransferAmount (boji.sol#203) is too similar to BOJI._getValues(uint256).tTransferAmount (boji.sol#438)
Variable BOJI._transferStandard(address,address,uint256).rTransferAmount (boji.sol#384) is too similar to BOJI._transferToExcluded(address,address,uint256).tTransferAmount (boji.sol#393)
Variable BOJI._transferBothExcluded(address,address,uint256).rTransferAmount (boji.sol#413) is too similar to BOJI._transferFromExcluded(address,address,uint256).tTransferAmount (boji.sol#403)
Variable BOJI._getRValues(uint256,uint256,uint256,uint256,uint256).rTransferAmount (boji.sol#458) is too similar to BOJI._getTValues(uint256,uint256,uint256,uint256).tTransferAmount (boji.sol#448)
Variable BOJI._transferFromExcluded(address,address,uint256).rTransferAmount (boji.sol#403) is too similar to BOJI._getTValues(uint256,uint256,uint256,uint256).tTransferAmount (boji.sol#448)
Variable BOJI._transferToExcluded(address,address,uint256).rTransferAmount (boji.sol#393) is too similar to BOJI._getValues(uint256).tTransferAmount (boji.sol#438)
Variable BOJI._getRValues(uint256,uint256,uint256,uint256,uint256).rTransferAmount (boji.sol#458) is too similar to BOJI._transferToExcluded(address,address,uint256).tTransferAmount (boji.sol#393)
Variable BOJI._transferBothExcluded(address,address,uint256).rTransferAmount (boji.sol#413) is too similar to BOJI._transferToExcluded(address,address,uint256).tTransferAmount (boji.sol#393)
Variable BOJI._transferBothExcluded(address,address,uint256).rTransferAmount (boji.sol#413) is too similar to BOJI._getTValues(uint256,uint256,uint256,uint256).tTransferAmount (boji.sol#448)
Variable BOJI.reflectionFromToken(uint256,bool).rTransferAmount (boji.sol#203) is too similar to BOJI._getTValues(uint256,uint256,uint256,uint256).tTransferAmount (boji.sol#448)
Variable BOJI._transferToExcluded(address,address,uint256).rTransferAmount (boji.sol#393) is too similar to BOJI._transferFromExcluded(address,address,uint256).tTransferAmount (boji.sol#403)
Variable BOJI._transferStandard(address,address,uint256).rTransferAmount (boji.sol#384) is too similar to BOJI._transferStandard(address,address,uint256).tTransferAmount (boji.sol#384)
Variable BOJI.reflectionFromToken(uint256,bool).rTransferAmount (boji.sol#203) is too similar to BOJI._transferFromExcluded(address,address,uint256).tTransferAmount (boji.sol#403)
Variable BOJI._transferStandard(address,address,uint256).rTransferAmount (boji.sol#384) is too similar to BOJI._transferFromExcluded(address,address,uint256).tTransferAmount (boji.sol#403)
Variable BOJI._transferFromExcluded(address,address,uint256).rTransferAmount (boji.sol#403) is too similar to BOJI._transferFromExcluded(address,address,uint256).tTransferAmount (boji.sol#403)
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (IUniswapV2Router01.sol#11) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (IUniswapV2Router01.sol#12)
Variable BOJI._transferStandard(address,address,uint256).rTransferAmount (boji.sol#384) is too similar to BOJI._getValues(uint256).tTransferAmount (boji.sol#438)
Variable BOJI._transferFromExcluded(address,address,uint256).rTransferAmount (boji.sol#403) is too similar to BOJI._transferToExcluded(address,address,uint256).tTransferAmount (boji.sol#393)
Variable BOJI._transferFromExcluded(address,address,uint256).rTransferAmount (boji.sol#403) is too similar to BOJI._getValues(uint256).tTransferAmount (boji.sol#438)
Variable BOJI._getRValues(uint256,uint256,uint256,uint256,uint256).rTransferAmount (boji.sol#458) is too similar to BOJI._transferFromExcluded(address,address,uint256).tTransferAmount (boji.sol#403)
Variable BOJI._transferFromExcluded(address,address,uint256).rTransferAmount (boji.sol#403) is too similar to BOJI._transferBothExcluded(address,address,uint256).tTransferAmount (boji.sol#413)
Variable BOJI._transferBothExcluded(address,address,uint256).rTransferAmount (boji.sol#413) is too similar to BOJI._getValues(uint256).tTransferAmount (boji.sol#438)
Variable BOJI._transferStandard(address,address,uint256).rTransferAmount (boji.sol#384) is too similar to BOJI._getTValues(uint256,uint256,uint256,uint256).tTransferAmount (boji.sol#448)
Variable BOJI._getValues(uint256).rTransferAmount (boji.sol#440) is too similar to BOJI._transferStandard(address,address,uint256).tTransferAmount (boji.sol#384)
Variable BOJI._getValues(uint256).rTransferAmount (boji.sol#440) is too similar to BOJI._getValues(uint256).tTransferAmount (boji.sol#438)
Variable BOJI._transferFromExcluded(address,address,uint256).rTransferAmount (boji.sol#403) is too similar to BOJI._transferStandard(address,address,uint256).tTransferAmount (boji.sol#384)
Variable BOJI._getValues(uint256).rTransferAmount (boji.sol#440) is too similar to BOJI._transferToExcluded(address,address,uint256).tTransferAmount (boji.sol#393)
Variable BOJI._getRValues(uint256,uint256,uint256,uint256,uint256).rTransferAmount (boji.sol#458) is too similar to BOJI._transferBothExcluded(address,address,uint256).tTransferAmount (boji.sol#413)
Prevent variables from having similar names.
Additional information: link
BOJI._tokenTransfer(address,address,uint256,bool) (boji.sol#360-381) performs a multiplication on the result of a division:
-tTeamFee = amount.mul(_teamFee).div(100) (boji.sol#375)
-rTeamFee = tTeamFee.mul(_getRate()) (boji.sol#376)
Consider ordering multiplication before division.
Additional information: link
BOJI._setTaxFee(uint256) (boji.sol#499-502) should emit an event for:
- _taxFee = taxFee (boji.sol#501)
BOJI.setnumOfTokensToExchangeForTeam(uint256) (boji.sol#517-519) should emit an event for:
- _numOfTokensToExchangeForTeam = numOfTokensToExchangeForTeam * (10 ** 9) (boji.sol#518)
BOJI.setLiquidityFeePercent(uint256) (boji.sol#509-511) should emit an event for:
- _liquidityFee = liquidityFee (boji.sol#510)
BOJI._setMaxTxAmount(uint256) (boji.sol#521-526) should emit an event for:
- _maxTxAmount = _tempMaxTxAmount (boji.sol#525)
BOJI._setTeamFee(uint256) (boji.sol#504-507) should emit an event for:
- _teamFee = teamFee (boji.sol#506)
Emit an event for critical parameter changes.
Additional information: link
BOJI._setOpsTeamWallet(address).opsTeamWalletAddress (boji.sol#513) lacks a zero-check on :
- _opsTeamWalletAddress = opsTeamWalletAddress (boji.sol#514)
BOJI.constructor(address).opsTeamWalletAddress (boji.sol#92) lacks a zero-check on :
- _opsTeamWalletAddress = opsTeamWalletAddress (boji.sol#94)
Check that the address is not zero.
Additional information: link
BOJI.includeAccount(address) (boji.sol#225-236) has costly operations inside a loop:
- _excluded.pop() (boji.sol#232)
Use a local variable to hold the loop computation result.
Additional information: link
deliver(uint256) should be declared external:
- BOJI.deliver(uint256) (boji.sol#188-195)
isExcluded(address) should be declared external:
- BOJI.isExcluded(address) (boji.sol#165-167)
totalFees() should be declared external:
- BOJI.totalFees() (boji.sol#184-186)
getMaxTxAmount() should be declared external:
- BOJI.getMaxTxAmount() (boji.sol#487-489)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (Ownable.sol#53-55)
transfer(address,uint256) should be declared external:
- BOJI.transfer(address,uint256) (boji.sol#135-138)
decimals() should be declared external:
- BOJI.decimals() (boji.sol#122-124)
increaseAllowance(address,uint256) should be declared external:
- BOJI.increaseAllowance(address,uint256) (boji.sol#155-158)
getNumOfTokensToExchangeForTeam() should be declared external:
- BOJI.getNumOfTokensToExchangeForTeam() (boji.sol#491-493)
isExcludedFromFee(address) should be declared external:
- BOJI.isExcludedFromFee(address) (boji.sol#256-258)
name() should be declared external:
- BOJI.name() (boji.sol#114-116)
transferFrom(address,address,uint256) should be declared external:
- BOJI.transferFrom(address,address,uint256) (boji.sol#149-153)
symbol() should be declared external:
- BOJI.symbol() (boji.sol#118-120)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (Ownable.sol#61-64)
totalSupply() should be declared external:
- BOJI.totalSupply() (boji.sol#126-128)
decreaseAllowance(address,uint256) should be declared external:
- BOJI.decreaseAllowance(address,uint256) (boji.sol#160-163)
reflectionFromToken(uint256,bool) should be declared external:
- BOJI.reflectionFromToken(uint256,bool) (boji.sol#197-206)
_getETHBalance() should be declared external:
- BOJI._getETHBalance() (boji.sol#495-497)
allowance(address,address) should be declared external:
- BOJI.allowance(address,address) (boji.sol#140-142)
approve(address,uint256) should be declared external:
- BOJI.approve(address,uint256) (boji.sol#144-147)
Use the external attribute for functions never called from the contract.
Additional information: link
Reentrancy in BOJI.transferFrom(address,address,uint256) (boji.sol#149-153):
External calls:
- _transfer(sender,recipient,amount) (boji.sol#150)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (boji.sol#327-333)
External calls sending eth:
- _transfer(sender,recipient,amount) (boji.sol#150)
- _opsTeamWalletAddress.transfer(amount) (boji.sol#337)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (boji.sol#151)
- _allowances[owner][spender] = amount (boji.sol#264)
Reentrancy in BOJI._transfer(address,address,uint256) (boji.sol#268-316):
External calls:
- swapTokensForEth(contractTokenBalance) (boji.sol#291)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (boji.sol#327-333)
External calls sending eth:
- sendETHToTeam(address(this).balance) (boji.sol#295)
- _opsTeamWalletAddress.transfer(amount) (boji.sol#337)
State variables written after the call(s):
- _tokenTransfer(sender,recipient,amount,takeFee) (boji.sol#308)
- _liquidityFee = _previousLiquidityFee (boji.sol#253)
- _liquidityFee = 0 (boji.sol#247)
- _tokenTransfer(sender,recipient,amount,takeFee) (boji.sol#308)
- _previousLiquidityFee = _liquidityFee (boji.sol#243)
- _tokenTransfer(sender,recipient,amount,takeFee) (boji.sol#308)
- _previousTaxFee = _taxFee (boji.sol#241)
- _tokenTransfer(sender,recipient,amount,takeFee) (boji.sol#308)
- _previousTeamFee = _teamFee (boji.sol#242)
- _tokenTransfer(sender,recipient,amount,takeFee) (boji.sol#308)
- _tFeeTotal = _tFeeTotal.add(tFee) (boji.sol#431)
- _tokenTransfer(sender,recipient,amount,takeFee) (boji.sol#308)
- _taxFee = _previousTaxFee (boji.sol#251)
- _taxFee = 0 (boji.sol#245)
- _tokenTransfer(sender,recipient,amount,takeFee) (boji.sol#308)
- _teamFee = _previousTeamFee (boji.sol#252)
- _teamFee = 0 (boji.sol#246)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in BOJI._transfer(address,address,uint256) (boji.sol#268-316):
External calls:
- swapTokensForEth(contractTokenBalance) (boji.sol#291)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (boji.sol#327-333)
External calls sending eth:
- sendETHToTeam(address(this).balance) (boji.sol#295)
- _opsTeamWalletAddress.transfer(amount) (boji.sol#337)
Event emitted after the call(s):
- Transfer(sender,recipient,tTransferAmount) (boji.sol#389)
- _tokenTransfer(sender,recipient,amount,takeFee) (boji.sol#308)
- Transfer(sender,recipient,tTransferAmount) (boji.sol#409)
- _tokenTransfer(sender,recipient,amount,takeFee) (boji.sol#308)
- Transfer(sender,recipient,tTransferAmount) (boji.sol#399)
- _tokenTransfer(sender,recipient,amount,takeFee) (boji.sol#308)
- Transfer(sender,recipient,tTransferAmount) (boji.sol#420)
- _tokenTransfer(sender,recipient,amount,takeFee) (boji.sol#308)
Reentrancy in BOJI.transferFrom(address,address,uint256) (boji.sol#149-153):
External calls:
- _transfer(sender,recipient,amount) (boji.sol#150)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (boji.sol#327-333)
External calls sending eth:
- _transfer(sender,recipient,amount) (boji.sol#150)
- _opsTeamWalletAddress.transfer(amount) (boji.sol#337)
Event emitted after the call(s):
- Approval(owner,spender,amount) (boji.sol#265)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (boji.sol#151)
Apply the check-effects-interactions pattern.
Additional information: link
BOJI._transfer(address,address,uint256) (boji.sol#268-316) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(! cooldownEnabled || (cooldown[sender] < block.timestamp && cooldown[recipient] < block.timestamp),Cooldown is enabled. Try again in a few minutes.) (boji.sol#272)
Avoid relying on block.timestamp.
Additional information: link
Different versions of Solidity are used:
- Version used: ['>=0.5.0', '>=0.6.2', '^0.8.0', '^0.8.4', '^0.8.9']
- ^0.8.0 (Address.sol#3)
- ^0.8.0 (Context.sol#3)
- ^0.8.4 (IERC20.sol#5)
- >=0.5.0 (IUniswapV2Factory.sol#3)
- >=0.5.0 (IUniswapV2Pair.sol#3)
- >=0.6.2 (IUniswapV2Router01.sol#2)
- >=0.6.2 (IUniswapV2Router02.sol#2)
- ^0.8.0 (Ownable.sol#3)
- ^0.8.0 (SafeMath.sol#3)
- ^0.8.9 (boji.sol#20)
Use one Solidity version.
Additional information: link
SafeMath.tryDiv(uint256,uint256) (SafeMath.sol#63-68) is never used and should be removed
Address.sendValue(address,uint256) (Address.sol#54-59) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (Address.sol#108-114) is never used and should be removed
SafeMath.tryMod(uint256,uint256) (SafeMath.sol#75-80) is never used and should be removed
Address.functionDelegateCall(address,bytes,string) (Address.sol#178-187) is never used and should be removed
Address.functionDelegateCall(address,bytes) (Address.sol#168-170) is never used and should be removed
SafeMath.tryAdd(uint256,uint256) (SafeMath.sol#21-27) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (SafeMath.sol#216-225) is never used and should be removed
BOJI._getMaxTxAmount() (boji.sol#483-485) is never used and should be removed
BOJI._getTaxFee() (boji.sol#479-481) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (Address.sol#122-133) is never used and should be removed
SafeMath.div(uint256,uint256,string) (SafeMath.sol#190-199) is never used and should be removed
Context._msgData() (Context.sol#20-22) is never used and should be removed
Address.functionStaticCall(address,bytes) (Address.sol#141-143) is never used and should be removed
SafeMath.mod(uint256,uint256) (SafeMath.sol#150-152) is never used and should be removed
Address._verifyCallResult(bool,bytes,string) (Address.sol#189-209) is never used and should be removed
SafeMath.tryMul(uint256,uint256) (SafeMath.sol#46-56) is never used and should be removed
SafeMath.trySub(uint256,uint256) (SafeMath.sol#34-39) is never used and should be removed
Address.isContract(address) (Address.sol#26-36) is never used and should be removed
Address.functionCall(address,bytes,string) (Address.sol#89-95) is never used and should be removed
Address.functionStaticCall(address,bytes,string) (Address.sol#151-160) is never used and should be removed
Address.functionCall(address,bytes) (Address.sol#79-81) is never used and should be removed
Remove unused functions.
Additional information: link
BOJI._previousLiquidityFee (boji.sol#57) is set pre-construction with a non-constant function or state variable:
- _liquidityFee
BOJI._rTotal (boji.sol#47) is set pre-construction with a non-constant function or state variable:
- (MAX - (MAX % _tTotal))
BOJI._previousTaxFee (boji.sol#58) is set pre-construction with a non-constant function or state variable:
- _taxFee
BOJI._previousTeamFee (boji.sol#59) is set pre-construction with a non-constant function or state variable:
- _teamFee
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 (Context.sol#3) allows old versions
Pragma version>=0.5.0 (IUniswapV2Pair.sol#3) allows old versions
Pragma version^0.8.0 (Address.sol#3) allows old versions
Pragma version^0.8.0 (Ownable.sol#3) allows old versions
Pragma version>=0.6.2 (IUniswapV2Router02.sol#2) allows old versions
solc-0.8.13 is not recommended for deployment
Pragma version^0.8.9 (boji.sol#20) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
Pragma version>=0.6.2 (IUniswapV2Router01.sol#2) allows old versions
Pragma version^0.8.0 (SafeMath.sol#3) allows old versions
Pragma version>=0.5.0 (IUniswapV2Factory.sol#3) 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.functionStaticCall(address,bytes,string) (Address.sol#151-160):
- (success,returndata) = target.staticcall(data) (Address.sol#158)
Low level call in Address.sendValue(address,uint256) (Address.sol#54-59):
- (success) = recipient.call{value: amount}() (Address.sol#57)
Low level call in Address.functionCallWithValue(address,bytes,uint256,string) (Address.sol#122-133):
- (success,returndata) = target.call{value: value}(data) (Address.sol#131)
Low level call in Address.functionDelegateCall(address,bytes,string) (Address.sol#178-187):
- (success,returndata) = target.delegatecall(data) (Address.sol#185)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function BOJI._getETHBalance() (boji.sol#495-497) is not in mixedCase
Function BOJI._setTeamFee(uint256) (boji.sol#504-507) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (IUniswapV2Pair.sol#21) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (IUniswapV2Pair.sol#38) is not in mixedCase
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (IUniswapV2Pair.sol#20) is not in mixedCase
Variable BOJI.MIN_BUY_SELL_TXN_AMOUNT (boji.sol#73) is not in mixedCase
Variable BOJI._teamFee (boji.sol#55) is not in mixedCase
Variable BOJI._liquidityFee (boji.sol#56) is not in mixedCase
Variable BOJI._opsTeamWalletAddress (boji.sol#61) is not in mixedCase
Parameter BOJI.enableDisableBuySellLimit(bool)._buySellLimitEnabled (boji.sol#173) is not in mixedCase
Function BOJI._setOpsTeamWallet(address) (boji.sol#513-515) is not in mixedCase
Function IUniswapV2Router01.WETH() (IUniswapV2Router01.sol#6) is not in mixedCase
Function BOJI._setBuySellLimit(uint256) (boji.sol#178-181) is not in mixedCase
Function BOJI._setMaxTxAmount(uint256) (boji.sol#521-526) is not in mixedCase
Function BOJI._setTaxFee(uint256) (boji.sol#499-502) is not in mixedCase
Variable BOJI._taxFee (boji.sol#54) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Reentrancy in BOJI.transferFrom(address,address,uint256) (boji.sol#149-153):
External calls:
- _transfer(sender,recipient,amount) (boji.sol#150)
- _opsTeamWalletAddress.transfer(amount) (boji.sol#337)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (boji.sol#151)
- _allowances[owner][spender] = amount (boji.sol#264)
Event emitted after the call(s):
- Approval(owner,spender,amount) (boji.sol#265)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (boji.sol#151)
Reentrancy in BOJI._transfer(address,address,uint256) (boji.sol#268-316):
External calls:
- sendETHToTeam(address(this).balance) (boji.sol#295)
- _opsTeamWalletAddress.transfer(amount) (boji.sol#337)
State variables written after the call(s):
- _tokenTransfer(sender,recipient,amount,takeFee) (boji.sol#308)
- _liquidityFee = _previousLiquidityFee (boji.sol#253)
- _liquidityFee = 0 (boji.sol#247)
- _tokenTransfer(sender,recipient,amount,takeFee) (boji.sol#308)
- _previousLiquidityFee = _liquidityFee (boji.sol#243)
- _tokenTransfer(sender,recipient,amount,takeFee) (boji.sol#308)
- _previousTaxFee = _taxFee (boji.sol#241)
- _tokenTransfer(sender,recipient,amount,takeFee) (boji.sol#308)
- _previousTeamFee = _teamFee (boji.sol#242)
- _tokenTransfer(sender,recipient,amount,takeFee) (boji.sol#308)
- _rOwned[address(this)] = _rOwned[address(this)].add(rTeamFee) (boji.sol#424)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (boji.sol#531)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (boji.sol#385)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (boji.sol#394)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (boji.sol#405)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (boji.sol#415)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (boji.sol#386)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (boji.sol#396)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (boji.sol#406)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (boji.sol#417)
- _tokenTransfer(sender,recipient,amount,takeFee) (boji.sol#308)
- _rTotal = _rTotal.sub(rFee) (boji.sol#430)
- _tokenTransfer(sender,recipient,amount,takeFee) (boji.sol#308)
- _tFeeTotal = _tFeeTotal.add(tFee) (boji.sol#431)
- _tokenTransfer(sender,recipient,amount,takeFee) (boji.sol#308)
- _tOwned[address(this)] = _tOwned[address(this)].add(tTeamFee) (boji.sol#426)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (boji.sol#533)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (boji.sol#404)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (boji.sol#414)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (boji.sol#395)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (boji.sol#416)
- _tokenTransfer(sender,recipient,amount,takeFee) (boji.sol#308)
- _taxFee = _previousTaxFee (boji.sol#251)
- _taxFee = 0 (boji.sol#245)
- _tokenTransfer(sender,recipient,amount,takeFee) (boji.sol#308)
- _teamFee = _previousTeamFee (boji.sol#252)
- _teamFee = 0 (boji.sol#246)
- cooldown[sender] = block.timestamp + (60) (boji.sol#311)
- cooldown[recipient] = block.timestamp + (60) (boji.sol#314)
Event emitted after the call(s):
- Transfer(sender,recipient,tTransferAmount) (boji.sol#389)
- _tokenTransfer(sender,recipient,amount,takeFee) (boji.sol#308)
- Transfer(sender,recipient,tTransferAmount) (boji.sol#409)
- _tokenTransfer(sender,recipient,amount,takeFee) (boji.sol#308)
- Transfer(sender,recipient,tTransferAmount) (boji.sol#399)
- _tokenTransfer(sender,recipient,amount,takeFee) (boji.sol#308)
- Transfer(sender,recipient,tTransferAmount) (boji.sol#420)
- _tokenTransfer(sender,recipient,amount,takeFee) (boji.sol#308)
Apply the check-effects-interactions pattern.
Additional information: link
BOJI.slitherConstructorVariables() (boji.sol#31-537) uses literals with too many digits:
- _tTotal = 700000000000000 * (10 ** 9) (boji.sol#46)
BOJI.slitherConstructorVariables() (boji.sol#31-537) uses literals with too many digits:
- _numOfTokensToExchangeForTeam = 500000000 * (10 ** 9) (boji.sol#81)
BOJI.slitherConstructorVariables() (boji.sol#31-537) uses literals with too many digits:
- _maxTxAmount = 20000000000000 * (10 ** 9) (boji.sol#76)
BOJI.slitherConstructorVariables() (boji.sol#31-537) uses literals with too many digits:
- MIN_BUY_SELL_TXN_AMOUNT = 20000000000000 (boji.sol#73)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
BOJI._name (boji.sol#50) should be constant
BOJI._tTotal (boji.sol#46) should be constant
BOJI._symbol (boji.sol#51) should be constant
BOJI._decimals (boji.sol#52) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
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.
Contract has 10% buy tax and 10% sell tax.
Taxes are low but contract ownership is not renounced. Token has a high risk of becoming a honeypot.
Token is deployed only at one blockchain
Number of Binance Smart Chain (BSC) token holders is low.
Token has a considerable age, but average PancakeSwap 30d trading volume is low
Young tokens have high risks of price dump / death
Token has relatively low CoinGecko rank
Token has relatively low CoinMarketCap rank