Byakko is a token on the Binance Smart Chain which has Gaming, NFT's and staking all in one place:
NFT Collection
Grow your army, build siege weapons and assemble mystical artefacts to help Byakko win his war against the forces of evil.
NFT Staking
Put your NFT army at work and collect, unlock and combine countless rewards after each legendary battle for the ultimate combo.
Play-2-Earn Game
Make alliances, build your defence and conquer your enemies in epic battles to get extraordinary treasures.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
BYK.addLiquidity(uint256,uint256) (#1746-1759) sends eth to arbitrary user
Dangerous calls:
- uniswapV2LiquidityRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1751-1758)
BYK.sendETHToCapitalFund(uint256) (#1761-1766) sends eth to arbitrary user
Dangerous calls:
- _treasuryWalletAddress.transfer(ethRaised.div(100).mul(_treasuryDistribution)) (#1764)
- _marketingWalletAddress.transfer(ethRaised.div(100).mul(_marketingDistribution)) (#1765)
BYK.sendETHToTeam(uint256) (#2058-2061) sends eth to arbitrary user
Dangerous calls:
- _treasuryWalletAddress.transfer(amount.div(100).mul(_treasuryDistribution)) (#2059)
- _marketingWalletAddress.transfer(amount.div(100).mul(_marketingDistribution)) (#2060)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in BYK._transfer(address,address,uint256) (#1612-1702):
External calls:
- swapAndLiquify(contractTokenBalance) (#1669)
- uniswapV2LiquidityRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1751-1758)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1737-1743)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#1669)
- uniswapV2LiquidityRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1751-1758)
- _treasuryWalletAddress.transfer(ethRaised.div(100).mul(_treasuryDistribution)) (#1764)
- _marketingWalletAddress.transfer(ethRaised.div(100).mul(_marketingDistribution)) (#1765)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#1699)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#1562)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1818)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1799)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1800)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1485)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1839)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1840)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1820)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1487)
- _tokenTransfer(from,to,amount,takeFee) (#1699)
- _rTotal = _rTotal.sub(rFee).sub(rBurn) (#1494)
- _tokenTransfer(from,to,amount,takeFee) (#1699)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#1564)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1484)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1838)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1819)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1486)
- _tokenTransfer(from,to,amount,takeFee) (#1699)
- _tTotal = _tTotal.sub(tBurn) (#1497)
Apply the check-effects-interactions pattern.
Additional information: link
BYK.empireSweepCall(uint256,bytes) (#2101-2103) ignores return value by IERC20(uniswapV2Router.WETH()).transfer(owner(),amount) (#2102)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
BYK.setFees(uint256,uint256,uint256) (#1939-1955) contains a tautology or contradiction:
- require(bool,string)(burnFee >= 0 && burnFee <= 1500 && taxFee >= 0 && taxFee <= 1500 && liquidityFee >= 0 && liquidityFee <= 1500,Must be a number between 0 and 1500) (#1940)
BYK.setBuyFees(uint256,uint256,uint256) (#1957-1970) contains a tautology or contradiction:
- require(bool,string)(buyBurnFee >= 0 && buyBurnFee <= 1500 && buyTaxFee >= 0 && buyTaxFee <= 1500 && buyLiquidityFee >= 0 && buyLiquidityFee <= 1500,Must be a number between 0 and 1500) (#1958)
BYK.setSellFees(uint256,uint256,uint256) (#1972-1985) contains a tautology or contradiction:
- require(bool,string)(sellBurnFee >= 0 && sellBurnFee <= 1500 && sellTaxFee >= 0 && sellTaxFee <= 1500 && sellLiquidityFee >= 0 && sellLiquidityFee <= 1500,Must be a number between 0 and 1500) (#1973)
Fix the incorrect comparison by changing the value type or the comparison.
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.
Address.isContract(address) (#297-309) uses assembly
- INLINE ASM (#305-307)
Address._functionCallWithValue(address,bytes,uint256,string) (#424-451) uses assembly
- INLINE ASM (#443-446)
Do not use evm assembly.
Additional information: link
BYK.includeInReward(address) (#1996-2007) has costly operations inside a loop:
- _excluded.pop() (#2003)
Use a local variable to hold the loop computation result.
Additional information: link
BYK.sendETHToCapitalFund(uint256) (#1761-1766) performs a multiplication on the result of a division:
-_treasuryWalletAddress.transfer(ethRaised.div(100).mul(_treasuryDistribution)) (#1764)
BYK.sendETHToCapitalFund(uint256) (#1761-1766) performs a multiplication on the result of a division:
-_marketingWalletAddress.transfer(ethRaised.div(100).mul(_marketingDistribution)) (#1765)
BYK.sendETHToTeam(uint256) (#2058-2061) performs a multiplication on the result of a division:
-_treasuryWalletAddress.transfer(amount.div(100).mul(_treasuryDistribution)) (#2059)
BYK.sendETHToTeam(uint256) (#2058-2061) performs a multiplication on the result of a division:
-_marketingWalletAddress.transfer(amount.div(100).mul(_marketingDistribution)) (#2060)
Consider ordering multiplication before division.
Additional information: link
BYK.addLiquidity(uint256,uint256) (#1746-1759) ignores return value by uniswapV2LiquidityRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1751-1758)
BYK.unsweep(uint256) (#2106-2110) ignores return value by IERC20(uniswapV2Router.WETH()).approve(sweepablePair,amount) (#2107)
Ensure that all the return values of the function calls are used.
Additional information: link
BYK.allowance(address,address).owner (#1384) shadows:
- Ownable.owner() (#476-478) (function)
BYK._approve(address,address,uint256).owner (#1602) shadows:
- Ownable.owner() (#476-478) (function)
Rename the local variables that shadow another component.
Additional information: link
BYK.createSweepablePair(IEmpireFactory,bool) (#2082-2092) should emit an event for:
- uniswapV2Pair = sweepablePair (#2090)
Emit an event for critical parameter changes.
Additional information: link
BYK.setMarketingWallet(address).marketingWallet (#2024) lacks a zero-check on :
- _marketingWalletAddress = marketingWallet (#2025)
BYK.setTreasuryWallet(address).treasuryWallet (#2029) lacks a zero-check on :
- _treasuryWalletAddress = treasuryWallet (#2030)
BYK.transferETH(address,uint256).recipient (#2050) lacks a zero-check on :
- (success) = recipient.call{value: amount}() (#2054)
Check that the address is not zero.
Additional information: link
Reentrancy in BYK._transfer(address,address,uint256) (#1612-1702):
External calls:
- swapAndLiquify(contractTokenBalance) (#1669)
- uniswapV2LiquidityRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1751-1758)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1737-1743)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#1669)
- uniswapV2LiquidityRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1751-1758)
- _treasuryWalletAddress.transfer(ethRaised.div(100).mul(_treasuryDistribution)) (#1764)
- _marketingWalletAddress.transfer(ethRaised.div(100).mul(_marketingDistribution)) (#1765)
State variables written after the call(s):
- _burnFee = _buy_burnFee (#1678)
- _burnFee = _sell_burnFee (#1687)
- _tokenTransfer(from,to,amount,takeFee) (#1699)
- _burnFee = _previousBurnFee (#1593)
- _burnFee = 0 (#1587)
- restoreAllFee() (#1701)
- _burnFee = _previousBurnFee (#1593)
- _liquidityFee = _buy_liquidityFee (#1676)
- _liquidityFee = _sell_liquidityFee (#1685)
- _tokenTransfer(from,to,amount,takeFee) (#1699)
- _liquidityFee = _previousLiquidityFee (#1594)
- _liquidityFee = 0 (#1588)
- restoreAllFee() (#1701)
- _liquidityFee = _previousLiquidityFee (#1594)
- _tokenTransfer(from,to,amount,takeFee) (#1699)
- _previousBurnFee = _burnFee (#1583)
- _tokenTransfer(from,to,amount,takeFee) (#1699)
- _previousLiquidityFee = _liquidityFee (#1584)
- _tokenTransfer(from,to,amount,takeFee) (#1699)
- _previousTaxFee = _taxFee (#1582)
- _tokenTransfer(from,to,amount,takeFee) (#1699)
- _tBurnTotal = _tBurnTotal.add(tBurn) (#1495)
- _tokenTransfer(from,to,amount,takeFee) (#1699)
- _tFeeTotal = _tFeeTotal.add(tFee) (#1496)
- _taxFee = _buy_taxFee (#1677)
- _taxFee = _sell_taxFee (#1686)
- _tokenTransfer(from,to,amount,takeFee) (#1699)
- _taxFee = _previousTaxFee (#1592)
- _taxFee = 0 (#1586)
- restoreAllFee() (#1701)
- _taxFee = _previousTaxFee (#1592)
Reentrancy in BYK.constructor(uint256) (#1323-1352):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapRouter.factory()).createPair(address(this),_uniswapRouter.WETH()) (#1335-1336)
State variables written after the call(s):
- _excluded.push(uniswapV2Pair) (#1349)
- _isExcluded[uniswapV2Pair] = true (#1348)
- _isExcludedFromFee[owner()] = true (#1345)
- _isExcludedFromFee[address(this)] = true (#1346)
- addLiquidityHolder(msg.sender) (#1343)
- _liquidityHolders[liquidityHolder] = true (#1883)
- snipeBlockAmt = _snipeBlockAmt (#1341)
- uniswapV2LiquidityRouter = _uniswapRouter (#1339)
- uniswapV2Router = _uniswapRouter (#1338)
Reentrancy in BYK.createSweepablePair(IEmpireFactory,bool) (#2082-2092):
External calls:
- sweepablePair = _factory.createPair(uniswapV2Router.WETH(),address(this),pairType,0) (#2087)
State variables written after the call(s):
- uniswapV2Pair = sweepablePair (#2090)
Reentrancy in BYK.swapAndLiquify(uint256) (#1704-1726):
External calls:
- swapTokensForEth(halfOfLiquify) (#1716)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1737-1743)
- addLiquidity(otherHalfOfLiquify,newBalance) (#1722)
- uniswapV2LiquidityRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1751-1758)
External calls sending eth:
- addLiquidity(otherHalfOfLiquify,newBalance) (#1722)
- uniswapV2LiquidityRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1751-1758)
State variables written after the call(s):
- addLiquidity(otherHalfOfLiquify,newBalance) (#1722)
- _allowances[owner][spender] = amount (#1608)
Reentrancy in BYK.swapAndLiquify(uint256) (#1704-1726):
External calls:
- swapTokensForEth(halfOfLiquify) (#1716)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1737-1743)
- addLiquidity(otherHalfOfLiquify,newBalance) (#1722)
- uniswapV2LiquidityRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1751-1758)
- sendETHToCapitalFund(portionForFees) (#1723)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1737-1743)
External calls sending eth:
- addLiquidity(otherHalfOfLiquify,newBalance) (#1722)
- uniswapV2LiquidityRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1751-1758)
- sendETHToCapitalFund(portionForFees) (#1723)
- _treasuryWalletAddress.transfer(ethRaised.div(100).mul(_treasuryDistribution)) (#1764)
- _marketingWalletAddress.transfer(ethRaised.div(100).mul(_marketingDistribution)) (#1765)
State variables written after the call(s):
- sendETHToCapitalFund(portionForFees) (#1723)
- _allowances[owner][spender] = amount (#1608)
Reentrancy in BYK.transferFrom(address,address,uint256) (#1395-1406):
External calls:
- _transfer(sender,recipient,amount) (#1396)
- uniswapV2LiquidityRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1751-1758)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1737-1743)
External calls sending eth:
- _transfer(sender,recipient,amount) (#1396)
- uniswapV2LiquidityRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1751-1758)
- _treasuryWalletAddress.transfer(ethRaised.div(100).mul(_treasuryDistribution)) (#1764)
- _marketingWalletAddress.transfer(ethRaised.div(100).mul(_marketingDistribution)) (#1765)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#1397-1404)
- _allowances[owner][spender] = amount (#1608)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in BYK._transfer(address,address,uint256) (#1612-1702):
External calls:
- swapAndLiquify(contractTokenBalance) (#1669)
- uniswapV2LiquidityRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1751-1758)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1737-1743)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#1669)
- uniswapV2LiquidityRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1751-1758)
- _treasuryWalletAddress.transfer(ethRaised.div(100).mul(_treasuryDistribution)) (#1764)
- _marketingWalletAddress.transfer(ethRaised.div(100).mul(_marketingDistribution)) (#1765)
Event emitted after the call(s):
- Transfer(sender,recipient,tTransferAmount) (#1803)
- _tokenTransfer(from,to,amount,takeFee) (#1699)
- Transfer(sender,recipient,tTransferAmount) (#1823)
- _tokenTransfer(from,to,amount,takeFee) (#1699)
- Transfer(sender,recipient,tTransferAmount) (#1843)
- _tokenTransfer(from,to,amount,takeFee) (#1699)
- Transfer(sender,recipient,tTransferAmount) (#1490)
- _tokenTransfer(from,to,amount,takeFee) (#1699)
Reentrancy in BYK.constructor(uint256) (#1323-1352):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapRouter.factory()).createPair(address(this),_uniswapRouter.WETH()) (#1335-1336)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_tTotal) (#1351)
Reentrancy in BYK.swapAndLiquify(uint256) (#1704-1726):
External calls:
- swapTokensForEth(halfOfLiquify) (#1716)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1737-1743)
- addLiquidity(otherHalfOfLiquify,newBalance) (#1722)
- uniswapV2LiquidityRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1751-1758)
External calls sending eth:
- addLiquidity(otherHalfOfLiquify,newBalance) (#1722)
- uniswapV2LiquidityRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1751-1758)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1609)
- addLiquidity(otherHalfOfLiquify,newBalance) (#1722)
Reentrancy in BYK.swapAndLiquify(uint256) (#1704-1726):
External calls:
- swapTokensForEth(halfOfLiquify) (#1716)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1737-1743)
- addLiquidity(otherHalfOfLiquify,newBalance) (#1722)
- uniswapV2LiquidityRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1751-1758)
- sendETHToCapitalFund(portionForFees) (#1723)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1737-1743)
External calls sending eth:
- addLiquidity(otherHalfOfLiquify,newBalance) (#1722)
- uniswapV2LiquidityRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1751-1758)
- sendETHToCapitalFund(portionForFees) (#1723)
- _treasuryWalletAddress.transfer(ethRaised.div(100).mul(_treasuryDistribution)) (#1764)
- _marketingWalletAddress.transfer(ethRaised.div(100).mul(_marketingDistribution)) (#1765)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1609)
- sendETHToCapitalFund(portionForFees) (#1723)
- SwapAndLiquify(halfOfLiquify,newBalance,otherHalfOfLiquify) (#1725)
Reentrancy in BYK.sweep(uint256,bytes) (#2095-2098):
External calls:
- IEmpirePair(sweepablePair).sweep(amount,data) (#2096)
Event emitted after the call(s):
- Sweep(amount) (#2097)
Reentrancy in BYK.transferFrom(address,address,uint256) (#1395-1406):
External calls:
- _transfer(sender,recipient,amount) (#1396)
- uniswapV2LiquidityRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1751-1758)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1737-1743)
External calls sending eth:
- _transfer(sender,recipient,amount) (#1396)
- uniswapV2LiquidityRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1751-1758)
- _treasuryWalletAddress.transfer(ethRaised.div(100).mul(_treasuryDistribution)) (#1764)
- _marketingWalletAddress.transfer(ethRaised.div(100).mul(_marketingDistribution)) (#1765)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1609)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#1397-1404)
Reentrancy in BYK.unsweep(uint256) (#2106-2110):
External calls:
- IERC20(uniswapV2Router.WETH()).approve(sweepablePair,amount) (#2107)
- IEmpirePair(sweepablePair).unsweep(amount) (#2108)
Event emitted after the call(s):
- Unsweep(amount) (#2109)
Apply the check-effects-interactions pattern.
Additional information: link
Ownable.lock(uint256) (#518-528) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(time <= (block.timestamp + 31536000),Only lockable for up to 1 year) (#519-522)
Ownable.unlock() (#531-539) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(now > _lockTime,Contract is locked) (#536)
Avoid relying on block.timestamp.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#424-451) is never used and should be removed
Address.functionCall(address,bytes) (#359-364) is never used and should be removed
Address.functionCall(address,bytes,string) (#372-378) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#391-403) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#411-422) is never used and should be removed
Address.isContract(address) (#297-309) is never used and should be removed
Address.sendValue(address,uint256) (#327-339) is never used and should be removed
Context._msgData() (#273-276) is never used and should be removed
SafeMath.mod(uint256,uint256) (#242-244) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#258-265) is never used and should be removed
Remove unused functions.
Additional information: link
BYK._rTotal (#1234) is set pre-construction with a non-constant function or state variable:
- (MAX - (MAX % _tTotal))
BYK._totalFees (#1253) is set pre-construction with a non-constant function or state variable:
- _taxFee.add(_burnFee).add(_liquidityFee)
BYK._totalBuyFees (#1254) is set pre-construction with a non-constant function or state variable:
- _buy_taxFee.add(_buy_burnFee).add(_buy_liquidityFee)
BYK._totalSellFees (#1255) is set pre-construction with a non-constant function or state variable:
- _sell_taxFee.add(_sell_burnFee).add(_sell_liquidityFee)
BYK._previousTaxFee (#1256) is set pre-construction with a non-constant function or state variable:
- _taxFee
BYK._previousBurnFee (#1257) is set pre-construction with a non-constant function or state variable:
- _burnFee
BYK._previousLiquidityFee (#1258) is set pre-construction with a non-constant function or state variable:
- _liquidityFee
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) (#327-339):
- (success) = recipient.call{value: amount}() (#334)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#424-451):
- (success,returndata) = target.call{value: weiValue}(data) (#433-434)
Low level call in BYK.transferETH(address,uint256) (#2050-2056):
- (success) = recipient.call{value: amount}() (#2054)
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() (#605) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#607) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#638) is not in mixedCase
Function IUniswapV2Router01.WETH() (#684) is not in mixedCase
Function IEmpireRouter.WETH() (#1012) is not in mixedCase
Parameter BYK.calculateTaxFee(uint256)._amount (#1567) is not in mixedCase
Parameter BYK.calculateBurnFee(uint256)._amount (#1571) is not in mixedCase
Parameter BYK.calculateLiquidityFee(uint256)._amount (#1575) is not in mixedCase
Parameter BYK.setNumTokensSellToAddToLiquidity(uint256)._numTokensSellToAddToLiquidity (#1894) is not in mixedCase
Parameter BYK.setSwapAndLiquifyEnabled(bool)._enabled (#1906) is not in mixedCase
Parameter BYK.setRouter(address)._routerAddress (#1911) is not in mixedCase
Parameter BYK.setLiquidityAddress(address)._liquidityAddress (#1924) is not in mixedCase
Parameter BYK.transferAnyTokens(address,address,uint256)._tokenAddr (#2045) is not in mixedCase
Parameter BYK.transferAnyTokens(address,address,uint256)._to (#2045) is not in mixedCase
Parameter BYK.transferAnyTokens(address,address,uint256)._amount (#2045) is not in mixedCase
Parameter BYK.createSweepablePair(IEmpireFactory,bool)._factory (#2082) is not in mixedCase
Variable BYK._liquidityFee (#1239) is not in mixedCase
Variable BYK._taxFee (#1240) is not in mixedCase
Variable BYK._burnFee (#1241) is not in mixedCase
Variable BYK._sell_liquidityFee (#1244) is not in mixedCase
Variable BYK._sell_taxFee (#1245) is not in mixedCase
Variable BYK._sell_burnFee (#1246) is not in mixedCase
Variable BYK._buy_liquidityFee (#1249) is not in mixedCase
Variable BYK._buy_taxFee (#1250) is not in mixedCase
Variable BYK._buy_burnFee (#1251) is not in mixedCase
Variable BYK._totalFees (#1253) is not in mixedCase
Variable BYK._totalBuyFees (#1254) is not in mixedCase
Variable BYK._totalSellFees (#1255) is not in mixedCase
Variable BYK._feeDecimal (#1260) is not in mixedCase
Variable BYK._maxTxAmount (#1261) is not in mixedCase
Variable BYK._portionSwap (#1263) is not in mixedCase
Variable BYK._treasuryDistribution (#1264) is not in mixedCase
Variable BYK._marketingDistribution (#1265) is not in mixedCase
Variable BYK._marketingWalletAddress (#1271) is not in mixedCase
Variable BYK._treasuryWalletAddress (#1272) is not in mixedCase
Variable BYK._stopFee (#1279) is not in mixedCase
Variable BYK._hasLiqBeenAdded (#1280) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#274)" inContext (#268-277)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in BYK._transfer(address,address,uint256) (#1612-1702):
External calls:
- swapAndLiquify(contractTokenBalance) (#1669)
- _treasuryWalletAddress.transfer(ethRaised.div(100).mul(_treasuryDistribution)) (#1764)
- _marketingWalletAddress.transfer(ethRaised.div(100).mul(_marketingDistribution)) (#1765)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#1669)
- uniswapV2LiquidityRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1751-1758)
- _treasuryWalletAddress.transfer(ethRaised.div(100).mul(_treasuryDistribution)) (#1764)
- _marketingWalletAddress.transfer(ethRaised.div(100).mul(_marketingDistribution)) (#1765)
State variables written after the call(s):
- _burnFee = _buy_burnFee (#1678)
- _burnFee = _sell_burnFee (#1687)
- _tokenTransfer(from,to,amount,takeFee) (#1699)
- _burnFee = _previousBurnFee (#1593)
- _burnFee = 0 (#1587)
- restoreAllFee() (#1701)
- _burnFee = _previousBurnFee (#1593)
- _liquidityFee = _buy_liquidityFee (#1676)
- _liquidityFee = _sell_liquidityFee (#1685)
- _tokenTransfer(from,to,amount,takeFee) (#1699)
- _liquidityFee = _previousLiquidityFee (#1594)
- _liquidityFee = 0 (#1588)
- restoreAllFee() (#1701)
- _liquidityFee = _previousLiquidityFee (#1594)
- _tokenTransfer(from,to,amount,takeFee) (#1699)
- _previousBurnFee = _burnFee (#1583)
- _tokenTransfer(from,to,amount,takeFee) (#1699)
- _previousLiquidityFee = _liquidityFee (#1584)
- _tokenTransfer(from,to,amount,takeFee) (#1699)
- _previousTaxFee = _taxFee (#1582)
- _tokenTransfer(from,to,amount,takeFee) (#1699)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#1562)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1818)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1799)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1800)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1485)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1839)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1840)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1820)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1487)
- _tokenTransfer(from,to,amount,takeFee) (#1699)
- _rTotal = _rTotal.sub(rFee).sub(rBurn) (#1494)
- _tokenTransfer(from,to,amount,takeFee) (#1699)
- _tBurnTotal = _tBurnTotal.add(tBurn) (#1495)
- _tokenTransfer(from,to,amount,takeFee) (#1699)
- _tFeeTotal = _tFeeTotal.add(tFee) (#1496)
- _tokenTransfer(from,to,amount,takeFee) (#1699)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#1564)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1484)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1838)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1819)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1486)
- _tokenTransfer(from,to,amount,takeFee) (#1699)
- _tTotal = _tTotal.sub(tBurn) (#1497)
- _taxFee = _buy_taxFee (#1677)
- _taxFee = _sell_taxFee (#1686)
- _tokenTransfer(from,to,amount,takeFee) (#1699)
- _taxFee = _previousTaxFee (#1592)
- _taxFee = 0 (#1586)
- restoreAllFee() (#1701)
- _taxFee = _previousTaxFee (#1592)
Event emitted after the call(s):
- Transfer(sender,recipient,tTransferAmount) (#1803)
- _tokenTransfer(from,to,amount,takeFee) (#1699)
- Transfer(sender,recipient,tTransferAmount) (#1843)
- _tokenTransfer(from,to,amount,takeFee) (#1699)
- Transfer(sender,recipient,tTransferAmount) (#1823)
- _tokenTransfer(from,to,amount,takeFee) (#1699)
- Transfer(sender,recipient,tTransferAmount) (#1490)
- _tokenTransfer(from,to,amount,takeFee) (#1699)
Reentrancy in BYK.swapAndLiquify(uint256) (#1704-1726):
External calls:
- sendETHToCapitalFund(portionForFees) (#1723)
- _treasuryWalletAddress.transfer(ethRaised.div(100).mul(_treasuryDistribution)) (#1764)
- _marketingWalletAddress.transfer(ethRaised.div(100).mul(_marketingDistribution)) (#1765)
External calls sending eth:
- addLiquidity(otherHalfOfLiquify,newBalance) (#1722)
- uniswapV2LiquidityRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1751-1758)
- sendETHToCapitalFund(portionForFees) (#1723)
- _treasuryWalletAddress.transfer(ethRaised.div(100).mul(_treasuryDistribution)) (#1764)
- _marketingWalletAddress.transfer(ethRaised.div(100).mul(_marketingDistribution)) (#1765)
Event emitted after the call(s):
- SwapAndLiquify(halfOfLiquify,newBalance,otherHalfOfLiquify) (#1725)
Reentrancy in BYK.transferFrom(address,address,uint256) (#1395-1406):
External calls:
- _transfer(sender,recipient,amount) (#1396)
- _treasuryWalletAddress.transfer(ethRaised.div(100).mul(_treasuryDistribution)) (#1764)
- _marketingWalletAddress.transfer(ethRaised.div(100).mul(_marketingDistribution)) (#1765)
External calls sending eth:
- _transfer(sender,recipient,amount) (#1396)
- uniswapV2LiquidityRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityAddress,block.timestamp) (#1751-1758)
- _treasuryWalletAddress.transfer(ethRaised.div(100).mul(_treasuryDistribution)) (#1764)
- _marketingWalletAddress.transfer(ethRaised.div(100).mul(_marketingDistribution)) (#1765)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#1397-1404)
- _allowances[owner][spender] = amount (#1608)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1609)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#1397-1404)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#689) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#690)
Variable IEmpireRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#1017) is too similar to IEmpireRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#1018)
Variable BYK.reflectionFromToken(uint256,bool).rTransferAmount (#1458) is too similar to BYK._getTValues(uint256).tTransferAmount (#1524)
Variable BYK._getValues(uint256).rTransferAmount (#1507) is too similar to BYK._getTValues(uint256).tTransferAmount (#1524)
Variable BYK._transferFromExcluded(address,address,uint256).rTransferAmount (#1830) is too similar to BYK._transferFromExcluded(address,address,uint256).tTransferAmount (#1832)
Variable BYK._transferFromExcluded(address,address,uint256).rTransferAmount (#1830) is too similar to BYK._getValues(uint256).tTransferAmount (#1502)
Variable BYK._transferFromExcluded(address,address,uint256).rTransferAmount (#1830) is too similar to BYK._transferStandard(address,address,uint256).tTransferAmount (#1793)
Variable BYK._transferToExcluded(address,address,uint256).rTransferAmount (#1810) is too similar to BYK._getValues(uint256).tTransferAmount (#1502)
Variable BYK._transferFromExcluded(address,address,uint256).rTransferAmount (#1830) is too similar to BYK._transferToExcluded(address,address,uint256).tTransferAmount (#1812)
Variable BYK._transferBothExcluded(address,address,uint256).rTransferAmount (#1476) is too similar to BYK._getValues(uint256).tTransferAmount (#1502)
Variable BYK._transferBothExcluded(address,address,uint256).rTransferAmount (#1476) is too similar to BYK._transferFromExcluded(address,address,uint256).tTransferAmount (#1832)
Variable BYK._transferStandard(address,address,uint256).rTransferAmount (#1791) is too similar to BYK._getValues(uint256).tTransferAmount (#1502)
Variable BYK._transferToExcluded(address,address,uint256).rTransferAmount (#1810) is too similar to BYK._transferToExcluded(address,address,uint256).tTransferAmount (#1812)
Variable BYK._getRValues(uint256,uint256,uint256,uint256,uint256).rTransferAmount (#1535) is too similar to BYK._transferFromExcluded(address,address,uint256).tTransferAmount (#1832)
Variable BYK._getRValues(uint256,uint256,uint256,uint256,uint256).rTransferAmount (#1535) is too similar to BYK._getValues(uint256).tTransferAmount (#1502)
Variable BYK._transferBothExcluded(address,address,uint256).rTransferAmount (#1476) is too similar to BYK._transferStandard(address,address,uint256).tTransferAmount (#1793)
Variable BYK._transferStandard(address,address,uint256).rTransferAmount (#1791) is too similar to BYK._transferStandard(address,address,uint256).tTransferAmount (#1793)
Variable BYK._transferBothExcluded(address,address,uint256).rTransferAmount (#1476) is too similar to BYK._transferToExcluded(address,address,uint256).tTransferAmount (#1812)
Variable BYK._transferStandard(address,address,uint256).rTransferAmount (#1791) is too similar to BYK._transferToExcluded(address,address,uint256).tTransferAmount (#1812)
Variable BYK._getRValues(uint256,uint256,uint256,uint256,uint256).rTransferAmount (#1535) is too similar to BYK._transferStandard(address,address,uint256).tTransferAmount (#1793)
Variable BYK._getRValues(uint256,uint256,uint256,uint256,uint256).rTransferAmount (#1535) is too similar to BYK._transferToExcluded(address,address,uint256).tTransferAmount (#1812)
Variable BYK._transferFromExcluded(address,address,uint256).rTransferAmount (#1830) is too similar to BYK._getTValues(uint256).tTransferAmount (#1524)
Variable BYK._transferToExcluded(address,address,uint256).rTransferAmount (#1810) is too similar to BYK._getTValues(uint256).tTransferAmount (#1524)
Variable BYK._transferBothExcluded(address,address,uint256).rTransferAmount (#1476) is too similar to BYK._getTValues(uint256).tTransferAmount (#1524)
Variable BYK._transferStandard(address,address,uint256).rTransferAmount (#1791) is too similar to BYK._getTValues(uint256).tTransferAmount (#1524)
Variable BYK._transferBothExcluded(address,address,uint256).rTransferAmount (#1476) is too similar to BYK._transferBothExcluded(address,address,uint256).tTransferAmount (#1478)
Variable BYK._getRValues(uint256,uint256,uint256,uint256,uint256).rTransferAmount (#1535) is too similar to BYK._getTValues(uint256).tTransferAmount (#1524)
Variable BYK._getValues(uint256).rTransferAmount (#1507) is too similar to BYK._transferToExcluded(address,address,uint256).tTransferAmount (#1812)
Variable BYK._getValues(uint256).rTransferAmount (#1507) is too similar to BYK._transferStandard(address,address,uint256).tTransferAmount (#1793)
Variable BYK._getRValues(uint256,uint256,uint256,uint256,uint256).rTransferAmount (#1535) is too similar to BYK._transferBothExcluded(address,address,uint256).tTransferAmount (#1478)
Variable BYK._getValues(uint256).rTransferAmount (#1507) is too similar to BYK._getValues(uint256).tTransferAmount (#1502)
Variable BYK._getValues(uint256).rTransferAmount (#1507) is too similar to BYK._transferBothExcluded(address,address,uint256).tTransferAmount (#1478)
Variable BYK._transferStandard(address,address,uint256).rTransferAmount (#1791) is too similar to BYK._transferFromExcluded(address,address,uint256).tTransferAmount (#1832)
Variable BYK._transferToExcluded(address,address,uint256).rTransferAmount (#1810) is too similar to BYK._transferFromExcluded(address,address,uint256).tTransferAmount (#1832)
Variable BYK._transferToExcluded(address,address,uint256).rTransferAmount (#1810) is too similar to BYK._transferStandard(address,address,uint256).tTransferAmount (#1793)
Variable BYK._transferFromExcluded(address,address,uint256).rTransferAmount (#1830) is too similar to BYK._transferBothExcluded(address,address,uint256).tTransferAmount (#1478)
Variable BYK.reflectionFromToken(uint256,bool).rTransferAmount (#1458) is too similar to BYK._transferFromExcluded(address,address,uint256).tTransferAmount (#1832)
Variable BYK._getValues(uint256).rTransferAmount (#1507) is too similar to BYK._transferFromExcluded(address,address,uint256).tTransferAmount (#1832)
Variable BYK._transferStandard(address,address,uint256).rTransferAmount (#1791) is too similar to BYK._transferBothExcluded(address,address,uint256).tTransferAmount (#1478)
Variable BYK.reflectionFromToken(uint256,bool).rTransferAmount (#1458) is too similar to BYK._transferToExcluded(address,address,uint256).tTransferAmount (#1812)
Variable BYK._transferToExcluded(address,address,uint256).rTransferAmount (#1810) is too similar to BYK._transferBothExcluded(address,address,uint256).tTransferAmount (#1478)
Variable BYK.reflectionFromToken(uint256,bool).rTransferAmount (#1458) is too similar to BYK._transferStandard(address,address,uint256).tTransferAmount (#1793)
Variable BYK.reflectionFromToken(uint256,bool).rTransferAmount (#1458) is too similar to BYK._getValues(uint256).tTransferAmount (#1502)
Variable BYK.reflectionFromToken(uint256,bool).rTransferAmount (#1458) is too similar to BYK._transferBothExcluded(address,address,uint256).tTransferAmount (#1478)
Prevent variables from having similar names.
Additional information: link
BYK.getCirculatingSupply() (#1441-1450) uses literals with too many digits:
- burnAddressTokens = balanceOf(0x000000000000000000000000000000000000dEaD).add(balanceOf(0x0000000000000000000000000000000000000000)) (#1442)
BYK.removeAddressFromSupply(address) (#2113-2121) uses literals with too many digits:
- require(bool,string)(removedAddress != 0x000000000000000000000000000000000000dEaD || removedAddress != 0x0000000000000000000000000000000000000000,Cannot add burn address (already accounted for)) (#2116)
BYK.addAddressToSupply(address) (#2124-2131) uses literals with too many digits:
- require(bool,string)(addedAddress != 0x000000000000000000000000000000000000dEaD || addedAddress != 0x0000000000000000000000000000000000000000,Cannot add burn address (already accounted for)) (#2127)
BYK.slitherConstructorVariables() (#1213-2134) uses literals with too many digits:
- _tTotal = 100000000 * 10 ** 9 (#1233)
BYK.slitherConstructorVariables() (#1213-2134) uses literals with too many digits:
- _maxTxAmount = 500000 * 10 ** 9 (#1261)
BYK.slitherConstructorVariables() (#1213-2134) uses literals with too many digits:
- numTokensSellToAddToLiquidity = 100000 * 10 ** 9 (#1262)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
BYK._decimals (#1230) should be constant
BYK._feeDecimal (#1260) should be constant
BYK._name (#1228) should be constant
BYK._symbol (#1229) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#495-498)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#504-511)
getUnlockTime() should be declared external:
- Ownable.getUnlockTime() (#513-515)
lock(uint256) should be declared external:
- Ownable.lock(uint256) (#518-528)
unlock() should be declared external:
- Ownable.unlock() (#531-539)
name() should be declared external:
- BYK.name() (#1358-1360)
symbol() should be declared external:
- BYK.symbol() (#1362-1364)
decimals() should be declared external:
- BYK.decimals() (#1366-1368)
transfer(address,uint256) should be declared external:
- BYK.transfer(address,uint256) (#1379-1382)
allowance(address,address) should be declared external:
- BYK.allowance(address,address) (#1384-1387)
approve(address,uint256) should be declared external:
- BYK.approve(address,uint256) (#1389-1393)
transferFrom(address,address,uint256) should be declared external:
- BYK.transferFrom(address,address,uint256) (#1395-1406)
increaseAllowance(address,uint256) should be declared external:
- BYK.increaseAllowance(address,uint256) (#1408-1415)
decreaseAllowance(address,uint256) should be declared external:
- BYK.decreaseAllowance(address,uint256) (#1417-1427)
isExcludedFromReward(address) should be declared external:
- BYK.isExcludedFromReward(address) (#1429-1431)
totalFees() should be declared external:
- BYK.totalFees() (#1433-1435)
totalBurn() should be declared external:
- BYK.totalBurn() (#1437-1439)
getCirculatingSupply() should be declared external:
- BYK.getCirculatingSupply() (#1441-1450)
reflectionFromToken(uint256,bool) should be declared external:
- BYK.reflectionFromToken(uint256,bool) (#1452-1461)
isExcludedFromFee(address) should be declared external:
- BYK.isExcludedFromFee(address) (#1597-1599)
isSniperCheck(address) should be declared external:
- BYK.isSniperCheck(address) (#1856-1858)
isLiquidityHolderCheck(address) should be declared external:
- BYK.isLiquidityHolderCheck(address) (#1860-1862)
excludeFromReward(address) should be declared external:
- BYK.excludeFromReward(address) (#1987-1994)
excludeFromFee(address) should be declared external:
- BYK.excludeFromFee(address) (#2009-2012)
includeInFee(address) should be declared external:
- BYK.includeInFee(address) (#2014-2017)
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
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 scam / 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 CoinGecko listing / rank
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Token has relatively low CoinMarketCap rank
Last post in Twitter was more than 30 days ago
Unable to find Discord account