Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
FenixToken.swapETHForTokens(uint256) (#821-836) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#828-833)
FenixToken.addLiquidity(uint256,uint256) (#838-851) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#843-850)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
FenixToken._transfer(address,address,uint256) (#664-781) uses a weak PRNG: "_bBSLimit = _bBSLimitMin + uint256(keccak256(bytes)(abi.encodePacked(block.timestamp,block.difficulty))) % (_bBSLimitMax - _bBSLimitMin + 1) (#725)"
Do not use block.timestamp, now or blockhash as a source of randomness
Additional information: link
Reentrancy in FenixToken._transfer(address,address,uint256) (#664-781):
External calls:
- swapTokens(contractTokenBalance) (#693)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#810-816)
External calls sending eth:
- swapTokens(contractTokenBalance) (#693)
- recipient.transfer(amount) (#1134)
State variables written after the call(s):
- _removeOldSellHistories() (#720)
- _sellHistories[i].time = _sellHistories[j].time (#1021)
- _sellHistories[i].bnbAmount = _sellHistories[j].bnbAmount (#1022)
- _sellHistories.pop() (#1032)
Reentrancy in FenixToken._transfer(address,address,uint256) (#664-781):
External calls:
- swapTokens(contractTokenBalance) (#693)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#810-816)
- buyBackTokens(_bBSLimit) (#728)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#828-833)
External calls sending eth:
- swapTokens(contractTokenBalance) (#693)
- recipient.transfer(amount) (#1134)
- buyBackTokens(_bBSLimit) (#728)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#828-833)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#780)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#957)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#873)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#882)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#893)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#903)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#874)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#884)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#894)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#905)
- _tokenTransfer(from,to,amount,takeFee) (#780)
- _rTotal = _rTotal.sub(rFee) (#912)
- _tokenTransfer(from,to,amount,takeFee) (#780)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#959)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#892)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#902)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#883)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#904)
- buyBackTokens(_bBSLimit) (#728)
- inSwapAndLiquify = true (#510)
- inSwapAndLiquify = false (#512)
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.
FenixToken._transfer(address,address,uint256).sellHistory (#680) is a local variable never initialized
Initialize all the variables. If a variable is meant to be initialized to zero, explicitly set it to zero to improve code readability.
Additional information: link
FenixToken.addLiquidity(uint256,uint256) (#838-851) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#843-850)
Ensure that all the return values of the function calls are used.
Additional information: link
FenixToken.allowance(address,address).owner (#565) shadows:
- Ownable.owner() (#155-157) (function)
FenixToken._approve(address,address,uint256).owner (#656) shadows:
- Ownable.owner() (#155-157) (function)
Rename the local variables that shadow another component.
Additional information: link
FenixToken.SetBuyBackMaxTimeForHistories(uint256) (#1037-1039) should emit an event for:
- _buyBackMaxTimeForHistories = newMinutes * 60 (#1038)
FenixToken.SetBuyBackDivisor(uint256) (#1041-1043) should emit an event for:
- _buyBackDivisor = newDivisor (#1042)
FenixToken.SetBuyBackTimeInterval(uint256) (#1049-1051) should emit an event for:
- _buyBackTimeInterval = newMinutes * 60 (#1050)
FenixToken.SetBuyBackRangeRate(uint256) (#1053-1056) should emit an event for:
- _buyBackRangeRate = newPercent (#1055)
FenixToken.SetSwapMinutes(uint256) (#1062-1064) should emit an event for:
- _intervalMinutesForSwap = newMinutes * 60 (#1063)
FenixToken.setTaxFeePercent(uint256) (#1066-1068) should emit an event for:
- _taxFee = taxFee (#1067)
FenixToken.setBuyFee(uint256,uint256) (#1070-1073) should emit an event for:
- _buyTaxFee = buyTaxFee (#1071)
- _buyLiquidityFee = buyLiquidityFee (#1072)
FenixToken.setSellFee(uint256,uint256) (#1075-1078) should emit an event for:
- _sellTaxFee = sellTaxFee (#1076)
- _sellLiquidityFee = sellLiquidityFee (#1077)
FenixToken.setLiquidityFeePercent(uint256) (#1080-1082) should emit an event for:
- _liquidityFee = liquidityFee (#1081)
FenixToken.setBuyBackSellLimit(uint256) (#1084-1086) should emit an event for:
- buyBackSellLimit = buyBackSellSetLimit (#1085)
FenixToken.setMaxTxAmount(uint256) (#1088-1090) should emit an event for:
- _maxTxAmount = maxTxAmount (#1089)
FenixToken.setMarketingDivisor(uint256) (#1092-1094) should emit an event for:
- marketingDivisor = divisor (#1093)
FenixToken.setNumTokensSellToAddToBuyBack(uint256) (#1096-1098) should emit an event for:
- minimumTokensBeforeSwap = _minimumTokensBeforeSwap (#1097)
Emit an event for critical parameter changes.
Additional information: link
FenixToken.setMarketingAddress(address)._marketingAddress (#1100) lacks a zero-check on :
- marketingAddress = address(_marketingAddress) (#1101)
Check that the address is not zero.
Additional information: link
Reentrancy in FenixToken._transfer(address,address,uint256) (#664-781):
External calls:
- swapTokens(contractTokenBalance) (#693)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#810-816)
- buyBackTokens(_bBSLimit) (#728)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#828-833)
External calls sending eth:
- swapTokens(contractTokenBalance) (#693)
- recipient.transfer(amount) (#1134)
- buyBackTokens(_bBSLimit) (#728)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#828-833)
State variables written after the call(s):
- removeAllFee() (#744)
- _liquidityFee = 0 (#981)
- _liquidityFee = _buyLiquidityFee (#746)
- removeAllFee() (#750)
- _liquidityFee = 0 (#981)
- _liquidityFee = _sellLiquidityFee (#752)
- removeAllFee() (#757)
- _liquidityFee = 0 (#981)
- _liquidityFee = _addressFees[from]._liquidityFee (#759)
- _liquidityFee = _addressFees[from]._sellLiquidityFee (#764)
- removeAllFee() (#771)
- _liquidityFee = 0 (#981)
- _liquidityFee = _addressFees[to]._buyLiquidityFee (#774)
- _tokenTransfer(from,to,amount,takeFee) (#780)
- _liquidityFee = _previousLiquidityFee (#986)
- _liquidityFee = 0 (#981)
- removeAllFee() (#744)
- _previousLiquidityFee = _liquidityFee (#978)
- removeAllFee() (#750)
- _previousLiquidityFee = _liquidityFee (#978)
- removeAllFee() (#757)
- _previousLiquidityFee = _liquidityFee (#978)
- removeAllFee() (#771)
- _previousLiquidityFee = _liquidityFee (#978)
- _tokenTransfer(from,to,amount,takeFee) (#780)
- _previousLiquidityFee = _liquidityFee (#978)
- removeAllFee() (#744)
- _previousTaxFee = _taxFee (#977)
- removeAllFee() (#750)
- _previousTaxFee = _taxFee (#977)
- removeAllFee() (#757)
- _previousTaxFee = _taxFee (#977)
- removeAllFee() (#771)
- _previousTaxFee = _taxFee (#977)
- _tokenTransfer(from,to,amount,takeFee) (#780)
- _previousTaxFee = _taxFee (#977)
- _tokenTransfer(from,to,amount,takeFee) (#780)
- _tFeeTotal = _tFeeTotal.add(tFee) (#913)
- removeAllFee() (#744)
- _taxFee = 0 (#980)
- _taxFee = _buyTaxFee (#745)
- removeAllFee() (#750)
- _taxFee = 0 (#980)
- _taxFee = _sellTaxFee (#751)
- removeAllFee() (#757)
- _taxFee = 0 (#980)
- _taxFee = _addressFees[from]._taxFee (#758)
- _taxFee = _addressFees[from]._sellTaxFee (#763)
- removeAllFee() (#771)
- _taxFee = 0 (#980)
- _taxFee = _addressFees[to]._buyTaxFee (#773)
- _tokenTransfer(from,to,amount,takeFee) (#780)
- _taxFee = _previousTaxFee (#985)
- _taxFee = 0 (#980)
Reentrancy in FenixToken.changeRouterVersion(address) (#1137-1150):
External calls:
- _pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1143-1144)
State variables written after the call(s):
- uniswapV2Pair = _pair (#1146)
- uniswapV2Router = _uniswapV2Router (#1149)
Reentrancy in FenixToken.constructor() (#515-537):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#525-526)
State variables written after the call(s):
- _isExcludedFromFee[owner()] = true (#531)
- _isExcludedFromFee[address(this)] = true (#532)
- _startTimeForSwap = block.timestamp (#534)
- uniswapV2Router = _uniswapV2Router (#528)
Reentrancy in FenixToken.transferFrom(address,address,uint256) (#574-578):
External calls:
- _transfer(sender,recipient,amount) (#575)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#828-833)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#810-816)
External calls sending eth:
- _transfer(sender,recipient,amount) (#575)
- recipient.transfer(amount) (#1134)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#828-833)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#576)
- _allowances[owner][spender] = amount (#660)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in FenixToken._transfer(address,address,uint256) (#664-781):
External calls:
- swapTokens(contractTokenBalance) (#693)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#810-816)
- buyBackTokens(_bBSLimit) (#728)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#828-833)
External calls sending eth:
- swapTokens(contractTokenBalance) (#693)
- recipient.transfer(amount) (#1134)
- buyBackTokens(_bBSLimit) (#728)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#828-833)
Event emitted after the call(s):
- SwapETHForTokens(amount,path) (#835)
- buyBackTokens(_bBSLimit) (#728)
- Transfer(sender,recipient,tTransferAmount) (#877)
- _tokenTransfer(from,to,amount,takeFee) (#780)
- Transfer(sender,recipient,tTransferAmount) (#897)
- _tokenTransfer(from,to,amount,takeFee) (#780)
- Transfer(sender,recipient,tTransferAmount) (#887)
- _tokenTransfer(from,to,amount,takeFee) (#780)
- Transfer(sender,recipient,tTransferAmount) (#908)
- _tokenTransfer(from,to,amount,takeFee) (#780)
Reentrancy in FenixToken.constructor() (#515-537):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#525-526)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_tTotal) (#536)
Reentrancy in FenixToken.swapETHForTokens(uint256) (#821-836):
External calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#828-833)
Event emitted after the call(s):
- SwapETHForTokens(amount,path) (#835)
Reentrancy in FenixToken.swapTokensForEth(uint256) (#801-819):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#810-816)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (#818)
Reentrancy in FenixToken.transferFrom(address,address,uint256) (#574-578):
External calls:
- _transfer(sender,recipient,amount) (#575)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#828-833)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#810-816)
External calls sending eth:
- _transfer(sender,recipient,amount) (#575)
- recipient.transfer(amount) (#1134)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#828-833)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#661)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#576)
Apply the check-effects-interactions pattern.
Additional information: link
Ownable.unlock() (#190-195) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp > _lockTime,Contract is locked until 7 days) (#192)
FenixToken._transfer(address,address,uint256) (#664-781) uses timestamp for comparisons
Dangerous comparisons:
- overMinimumTokenBalance && _startTimeForSwap + _intervalMinutesForSwap <= block.timestamp (#690)
- _sellHistories[i].time >= startTime (#710)
- balance > _bBSLimit (#727)
FenixToken.buyBackTokens(uint256) (#795-799) uses timestamp for comparisons
Dangerous comparisons:
- amount > 0 (#796)
FenixToken._removeOldSellHistories() (#1013-1035) uses timestamp for comparisons
Dangerous comparisons:
- _sellHistories[j].time >= maxStartTimeForHistories (#1019)
Avoid relying on block.timestamp.
Additional information: link
Address.isContract(address) (#85-94) uses assembly
- INLINE ASM (#92)
Address._functionCallWithValue(address,bytes,uint256,string) (#122-139) uses assembly
- INLINE ASM (#131-134)
Do not use evm assembly.
Additional information: link
FenixToken.includeInReward(address) (#643-654) has costly operations inside a loop:
- _excluded.pop() (#650)
Use a local variable to hold the loop computation result.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#122-139) is never used and should be removed
Address.functionCall(address,bytes) (#105-107) is never used and should be removed
Address.functionCall(address,bytes,string) (#109-111) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#113-115) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#117-120) is never used and should be removed
Address.isContract(address) (#85-94) is never used and should be removed
Address.sendValue(address,uint256) (#96-102) is never used and should be removed
Context._msgData() (#8-11) is never used and should be removed
FenixToken.addLiquidity(uint256,uint256) (#838-851) is never used and should be removed
SafeMath.mod(uint256,uint256) (#73-75) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#77-80) is never used and should be removed
Remove unused functions.
Additional information: link
FenixToken._rTotal (#425) is set pre-construction with a non-constant function or state variable:
- (MAX - (MAX % _tTotal))
FenixToken._previousTaxFee (#448) is set pre-construction with a non-constant function or state variable:
- _taxFee
FenixToken._previousLiquidityFee (#451) 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) (#96-102):
- (success) = recipient.call{value: amount}() (#100)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#122-139):
- (success,returndata) = target.call{value: weiValue}(data) (#125)
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() (#235) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#236) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#252) is not in mixedCase
Function IUniswapV2Router01.WETH() (#273) is not in mixedCase
Parameter FenixToken.calculateTaxFee(uint256)._amount (#962) is not in mixedCase
Parameter FenixToken.calculateLiquidityFee(uint256)._amount (#968) is not in mixedCase
Function FenixToken.SetBuyBackMaxTimeForHistories(uint256) (#1037-1039) is not in mixedCase
Function FenixToken.SetBuyBackDivisor(uint256) (#1041-1043) is not in mixedCase
Function FenixToken.GetBuyBackTimeInterval() (#1045-1047) is not in mixedCase
Function FenixToken.SetBuyBackTimeInterval(uint256) (#1049-1051) is not in mixedCase
Function FenixToken.SetBuyBackRangeRate(uint256) (#1053-1056) is not in mixedCase
Function FenixToken.GetSwapMinutes() (#1058-1060) is not in mixedCase
Function FenixToken.SetSwapMinutes(uint256) (#1062-1064) is not in mixedCase
Parameter FenixToken.setNumTokensSellToAddToBuyBack(uint256)._minimumTokensBeforeSwap (#1096) is not in mixedCase
Parameter FenixToken.setMarketingAddress(address)._marketingAddress (#1100) is not in mixedCase
Parameter FenixToken.setSwapAndLiquifyEnabled(bool)._enabled (#1104) is not in mixedCase
Parameter FenixToken.setBuyBackEnabled(bool)._enabled (#1109) is not in mixedCase
Parameter FenixToken.setAutoBuyBackEnabled(bool)._enabled (#1114) is not in mixedCase
Parameter FenixToken.changeRouterVersion(address)._router (#1137) is not in mixedCase
Parameter FenixToken.transferForeignToken(address,address)._token (#1156) is not in mixedCase
Parameter FenixToken.transferForeignToken(address,address)._to (#1156) is not in mixedCase
Function FenixToken.Sweep() (#1162-1165) is not in mixedCase
Parameter FenixToken.setAddressFee(address,bool,uint256,uint256)._address (#1167) is not in mixedCase
Parameter FenixToken.setAddressFee(address,bool,uint256,uint256)._enable (#1167) is not in mixedCase
Parameter FenixToken.setAddressFee(address,bool,uint256,uint256)._addressTaxFee (#1167) is not in mixedCase
Parameter FenixToken.setAddressFee(address,bool,uint256,uint256)._addressLiquidityFee (#1167) is not in mixedCase
Parameter FenixToken.setBuyAddressFee(address,bool,uint256,uint256)._address (#1173) is not in mixedCase
Parameter FenixToken.setBuyAddressFee(address,bool,uint256,uint256)._enable (#1173) is not in mixedCase
Parameter FenixToken.setBuyAddressFee(address,bool,uint256,uint256)._addressTaxFee (#1173) is not in mixedCase
Parameter FenixToken.setBuyAddressFee(address,bool,uint256,uint256)._addressLiquidityFee (#1173) is not in mixedCase
Parameter FenixToken.setSellAddressFee(address,bool,uint256,uint256)._address (#1179) is not in mixedCase
Parameter FenixToken.setSellAddressFee(address,bool,uint256,uint256)._enable (#1179) is not in mixedCase
Parameter FenixToken.setSellAddressFee(address,bool,uint256,uint256)._addressTaxFee (#1179) is not in mixedCase
Parameter FenixToken.setSellAddressFee(address,bool,uint256,uint256)._addressLiquidityFee (#1179) is not in mixedCase
Variable FenixToken._taxFee (#447) is not in mixedCase
Variable FenixToken._liquidityFee (#450) is not in mixedCase
Variable FenixToken._buyTaxFee (#453) is not in mixedCase
Variable FenixToken._buyLiquidityFee (#454) is not in mixedCase
Variable FenixToken._sellTaxFee (#456) is not in mixedCase
Variable FenixToken._startTimeForSwap (#459) is not in mixedCase
Variable FenixToken._intervalMinutesForSwap (#460) is not in mixedCase
Variable FenixToken._buyBackRangeRate (#462) is not in mixedCase
Variable FenixToken._addressFees (#465) is not in mixedCase
Variable FenixToken._maxTxAmount (#469) is not in mixedCase
Variable FenixToken._sellHistories (#474) is not in mixedCase
Variable FenixToken._isAutoBuyBack (#475) is not in mixedCase
Variable FenixToken._buyBackDivisor (#476) is not in mixedCase
Variable FenixToken._buyBackTimeInterval (#477) is not in mixedCase
Variable FenixToken._buyBackMaxTimeForHistories (#478) is not in mixedCase
Variable FenixToken._isEnabledBuyBackAndBurn (#487) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#9)" inContext (#3-12)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in FenixToken._transfer(address,address,uint256) (#664-781):
External calls:
- swapTokens(contractTokenBalance) (#693)
- recipient.transfer(amount) (#1134)
State variables written after the call(s):
- _removeOldSellHistories() (#720)
- _sellHistories[i].time = _sellHistories[j].time (#1021)
- _sellHistories[i].bnbAmount = _sellHistories[j].bnbAmount (#1022)
- _sellHistories.pop() (#1032)
Reentrancy in FenixToken._transfer(address,address,uint256) (#664-781):
External calls:
- swapTokens(contractTokenBalance) (#693)
- recipient.transfer(amount) (#1134)
External calls sending eth:
- swapTokens(contractTokenBalance) (#693)
- recipient.transfer(amount) (#1134)
- buyBackTokens(_bBSLimit) (#728)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#828-833)
State variables written after the call(s):
- removeAllFee() (#744)
- _liquidityFee = 0 (#981)
- _liquidityFee = _buyLiquidityFee (#746)
- removeAllFee() (#750)
- _liquidityFee = 0 (#981)
- _liquidityFee = _sellLiquidityFee (#752)
- removeAllFee() (#757)
- _liquidityFee = 0 (#981)
- _liquidityFee = _addressFees[from]._liquidityFee (#759)
- _liquidityFee = _addressFees[from]._sellLiquidityFee (#764)
- removeAllFee() (#771)
- _liquidityFee = 0 (#981)
- _liquidityFee = _addressFees[to]._buyLiquidityFee (#774)
- _tokenTransfer(from,to,amount,takeFee) (#780)
- _liquidityFee = _previousLiquidityFee (#986)
- _liquidityFee = 0 (#981)
- removeAllFee() (#744)
- _previousLiquidityFee = _liquidityFee (#978)
- removeAllFee() (#750)
- _previousLiquidityFee = _liquidityFee (#978)
- removeAllFee() (#757)
- _previousLiquidityFee = _liquidityFee (#978)
- removeAllFee() (#771)
- _previousLiquidityFee = _liquidityFee (#978)
- _tokenTransfer(from,to,amount,takeFee) (#780)
- _previousLiquidityFee = _liquidityFee (#978)
- removeAllFee() (#744)
- _previousTaxFee = _taxFee (#977)
- removeAllFee() (#750)
- _previousTaxFee = _taxFee (#977)
- removeAllFee() (#757)
- _previousTaxFee = _taxFee (#977)
- removeAllFee() (#771)
- _previousTaxFee = _taxFee (#977)
- _tokenTransfer(from,to,amount,takeFee) (#780)
- _previousTaxFee = _taxFee (#977)
- _tokenTransfer(from,to,amount,takeFee) (#780)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#957)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#873)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#882)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#893)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#903)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#874)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#884)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#894)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#905)
- _tokenTransfer(from,to,amount,takeFee) (#780)
- _rTotal = _rTotal.sub(rFee) (#912)
- _tokenTransfer(from,to,amount,takeFee) (#780)
- _tFeeTotal = _tFeeTotal.add(tFee) (#913)
- _tokenTransfer(from,to,amount,takeFee) (#780)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#959)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#892)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#902)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#883)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#904)
- removeAllFee() (#744)
- _taxFee = 0 (#980)
- _taxFee = _buyTaxFee (#745)
- removeAllFee() (#750)
- _taxFee = 0 (#980)
- _taxFee = _sellTaxFee (#751)
- removeAllFee() (#757)
- _taxFee = 0 (#980)
- _taxFee = _addressFees[from]._taxFee (#758)
- _taxFee = _addressFees[from]._sellTaxFee (#763)
- removeAllFee() (#771)
- _taxFee = 0 (#980)
- _taxFee = _addressFees[to]._buyTaxFee (#773)
- _tokenTransfer(from,to,amount,takeFee) (#780)
- _taxFee = _previousTaxFee (#985)
- _taxFee = 0 (#980)
- buyBackTokens(_bBSLimit) (#728)
- inSwapAndLiquify = true (#510)
- inSwapAndLiquify = false (#512)
Event emitted after the call(s):
- SwapETHForTokens(amount,path) (#835)
- buyBackTokens(_bBSLimit) (#728)
- Transfer(sender,recipient,tTransferAmount) (#877)
- _tokenTransfer(from,to,amount,takeFee) (#780)
- Transfer(sender,recipient,tTransferAmount) (#887)
- _tokenTransfer(from,to,amount,takeFee) (#780)
- Transfer(sender,recipient,tTransferAmount) (#897)
- _tokenTransfer(from,to,amount,takeFee) (#780)
- Transfer(sender,recipient,tTransferAmount) (#908)
- _tokenTransfer(from,to,amount,takeFee) (#780)
Reentrancy in FenixToken.transferFrom(address,address,uint256) (#574-578):
External calls:
- _transfer(sender,recipient,amount) (#575)
- recipient.transfer(amount) (#1134)
External calls sending eth:
- _transfer(sender,recipient,amount) (#575)
- recipient.transfer(amount) (#1134)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#828-833)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#576)
- _allowances[owner][spender] = amount (#660)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#661)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#576)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#278) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#279)
Variable FenixToken._transferToExcluded(address,address,uint256).rTransferAmount (#881) is too similar to FenixToken._transferFromExcluded(address,address,uint256).tTransferAmount (#891)
Variable FenixToken._transferFromExcluded(address,address,uint256).rTransferAmount (#891) is too similar to FenixToken._transferBothExcluded(address,address,uint256).tTransferAmount (#901)
Variable FenixToken._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#933) is too similar to FenixToken._transferToExcluded(address,address,uint256).tTransferAmount (#881)
Variable FenixToken._transferBothExcluded(address,address,uint256).rTransferAmount (#901) is too similar to FenixToken._transferFromExcluded(address,address,uint256).tTransferAmount (#891)
Variable FenixToken._transferStandard(address,address,uint256).rTransferAmount (#872) is too similar to FenixToken._transferStandard(address,address,uint256).tTransferAmount (#872)
Variable FenixToken._getValues(uint256).rTransferAmount (#918) is too similar to FenixToken._transferBothExcluded(address,address,uint256).tTransferAmount (#901)
Variable FenixToken._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#933) is too similar to FenixToken._transferFromExcluded(address,address,uint256).tTransferAmount (#891)
Variable FenixToken._transferStandard(address,address,uint256).rTransferAmount (#872) is too similar to FenixToken._transferBothExcluded(address,address,uint256).tTransferAmount (#901)
Variable FenixToken._transferToExcluded(address,address,uint256).rTransferAmount (#881) is too similar to FenixToken._getValues(uint256).tTransferAmount (#917)
Variable FenixToken._transferFromExcluded(address,address,uint256).rTransferAmount (#891) is too similar to FenixToken._transferFromExcluded(address,address,uint256).tTransferAmount (#891)
Variable FenixToken.reflectionFromToken(uint256,bool).rTransferAmount (#622) is too similar to FenixToken._transferBothExcluded(address,address,uint256).tTransferAmount (#901)
Variable FenixToken._transferToExcluded(address,address,uint256).rTransferAmount (#881) is too similar to FenixToken._transferStandard(address,address,uint256).tTransferAmount (#872)
Variable FenixToken._getValues(uint256).rTransferAmount (#918) is too similar to FenixToken._transferFromExcluded(address,address,uint256).tTransferAmount (#891)
Variable FenixToken._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#933) is too similar to FenixToken._getTValues(uint256).tTransferAmount (#925)
Variable FenixToken._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#933) is too similar to FenixToken._getValues(uint256).tTransferAmount (#917)
Variable FenixToken._transferToExcluded(address,address,uint256).rTransferAmount (#881) is too similar to FenixToken._transferBothExcluded(address,address,uint256).tTransferAmount (#901)
Variable FenixToken._transferStandard(address,address,uint256).rTransferAmount (#872) is too similar to FenixToken._transferFromExcluded(address,address,uint256).tTransferAmount (#891)
Variable FenixToken._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#933) is too similar to FenixToken._transferStandard(address,address,uint256).tTransferAmount (#872)
Variable FenixToken.reflectionFromToken(uint256,bool).rTransferAmount (#622) is too similar to FenixToken._transferFromExcluded(address,address,uint256).tTransferAmount (#891)
Variable FenixToken._transferToExcluded(address,address,uint256).rTransferAmount (#881) is too similar to FenixToken._transferToExcluded(address,address,uint256).tTransferAmount (#881)
Variable FenixToken._transferBothExcluded(address,address,uint256).rTransferAmount (#901) is too similar to FenixToken._transferBothExcluded(address,address,uint256).tTransferAmount (#901)
Variable FenixToken._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#933) is too similar to FenixToken._transferBothExcluded(address,address,uint256).tTransferAmount (#901)
Variable FenixToken._transferFromExcluded(address,address,uint256).rTransferAmount (#891) is too similar to FenixToken._transferToExcluded(address,address,uint256).tTransferAmount (#881)
Variable FenixToken._transferStandard(address,address,uint256).rTransferAmount (#872) is too similar to FenixToken._getValues(uint256).tTransferAmount (#917)
Variable FenixToken._transferBothExcluded(address,address,uint256).rTransferAmount (#901) is too similar to FenixToken._getTValues(uint256).tTransferAmount (#925)
Variable FenixToken.reflectionFromToken(uint256,bool).rTransferAmount (#622) is too similar to FenixToken._getTValues(uint256).tTransferAmount (#925)
Variable FenixToken._transferBothExcluded(address,address,uint256).rTransferAmount (#901) is too similar to FenixToken._getValues(uint256).tTransferAmount (#917)
Variable FenixToken._getValues(uint256).rTransferAmount (#918) is too similar to FenixToken._getTValues(uint256).tTransferAmount (#925)
Variable FenixToken._transferToExcluded(address,address,uint256).rTransferAmount (#881) is too similar to FenixToken._getTValues(uint256).tTransferAmount (#925)
Variable FenixToken._transferStandard(address,address,uint256).rTransferAmount (#872) is too similar to FenixToken._transferToExcluded(address,address,uint256).tTransferAmount (#881)
Variable FenixToken.reflectionFromToken(uint256,bool).rTransferAmount (#622) is too similar to FenixToken._getValues(uint256).tTransferAmount (#917)
Variable FenixToken._transferBothExcluded(address,address,uint256).rTransferAmount (#901) is too similar to FenixToken._transferStandard(address,address,uint256).tTransferAmount (#872)
Variable FenixToken._transferFromExcluded(address,address,uint256).rTransferAmount (#891) is too similar to FenixToken._getTValues(uint256).tTransferAmount (#925)
Variable FenixToken._getValues(uint256).rTransferAmount (#918) is too similar to FenixToken._getValues(uint256).tTransferAmount (#917)
Variable FenixToken.reflectionFromToken(uint256,bool).rTransferAmount (#622) is too similar to FenixToken._transferStandard(address,address,uint256).tTransferAmount (#872)
Variable FenixToken._transferBothExcluded(address,address,uint256).rTransferAmount (#901) is too similar to FenixToken._transferToExcluded(address,address,uint256).tTransferAmount (#881)
Variable FenixToken._transferFromExcluded(address,address,uint256).rTransferAmount (#891) is too similar to FenixToken._getValues(uint256).tTransferAmount (#917)
Variable FenixToken._getValues(uint256).rTransferAmount (#918) is too similar to FenixToken._transferStandard(address,address,uint256).tTransferAmount (#872)
Variable FenixToken.reflectionFromToken(uint256,bool).rTransferAmount (#622) is too similar to FenixToken._transferToExcluded(address,address,uint256).tTransferAmount (#881)
Variable FenixToken._transferFromExcluded(address,address,uint256).rTransferAmount (#891) is too similar to FenixToken._transferStandard(address,address,uint256).tTransferAmount (#872)
Variable FenixToken._getValues(uint256).rTransferAmount (#918) is too similar to FenixToken._transferToExcluded(address,address,uint256).tTransferAmount (#881)
Variable FenixToken._transferStandard(address,address,uint256).rTransferAmount (#872) is too similar to FenixToken._getTValues(uint256).tTransferAmount (#925)
Prevent variables from having similar names.
Additional information: link
FenixToken.prepareForPreSale() (#1119-1124) uses literals with too many digits:
- _maxTxAmount = 1000000000 * 10 ** 6 * 10 ** 9 (#1123)
FenixToken.afterPreSale() (#1126-1131) uses literals with too many digits:
- _maxTxAmount = 3000000 * 10 ** 6 * 10 ** 9 (#1130)
FenixToken.slitherConstructorVariables() (#408-1186) uses literals with too many digits:
- marketingAddress = address(0x000000000000000000000000000000000000dEaD) (#412)
FenixToken.slitherConstructorVariables() (#408-1186) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#413)
FenixToken.slitherConstructorVariables() (#408-1186) uses literals with too many digits:
- _tTotal = 1000000000000 * 10 ** 9 (#424)
FenixToken.slitherConstructorVariables() (#408-1186) uses literals with too many digits:
- _maxTxAmount = 1000000000000 * 10 ** 9 (#469)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
FenixToken._decimals (#430) should be constant
FenixToken._isEnabledBuyBackAndBurn (#487) should be constant
FenixToken._name (#428) should be constant
FenixToken._symbol (#429) should be constant
FenixToken._tTotal (#424) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#164-167)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#169-173)
getUnlockTime() should be declared external:
- Ownable.getUnlockTime() (#175-177)
getTime() should be declared external:
- Ownable.getTime() (#179-181)
lock(uint256) should be declared external:
- Ownable.lock(uint256) (#183-188)
unlock() should be declared external:
- Ownable.unlock() (#190-195)
name() should be declared external:
- FenixToken.name() (#539-541)
symbol() should be declared external:
- FenixToken.symbol() (#543-545)
decimals() should be declared external:
- FenixToken.decimals() (#547-549)
totalSupply() should be declared external:
- FenixToken.totalSupply() (#551-553)
transfer(address,uint256) should be declared external:
- FenixToken.transfer(address,uint256) (#560-563)
allowance(address,address) should be declared external:
- FenixToken.allowance(address,address) (#565-567)
approve(address,uint256) should be declared external:
- FenixToken.approve(address,uint256) (#569-572)
transferFrom(address,address,uint256) should be declared external:
- FenixToken.transferFrom(address,address,uint256) (#574-578)
increaseAllowance(address,uint256) should be declared external:
- FenixToken.increaseAllowance(address,uint256) (#580-583)
decreaseAllowance(address,uint256) should be declared external:
- FenixToken.decreaseAllowance(address,uint256) (#585-588)
isExcludedFromReward(address) should be declared external:
- FenixToken.isExcludedFromReward(address) (#590-592)
totalFees() should be declared external:
- FenixToken.totalFees() (#594-596)
minimumTokensBeforeSwapAmount() should be declared external:
- FenixToken.minimumTokensBeforeSwapAmount() (#598-600)
buyBackSellLimitAmount() should be declared external:
- FenixToken.buyBackSellLimitAmount() (#602-604)
deliver(uint256) should be declared external:
- FenixToken.deliver(uint256) (#606-613)
reflectionFromToken(uint256,bool) should be declared external:
- FenixToken.reflectionFromToken(uint256,bool) (#616-625)
excludeFromReward(address) should be declared external:
- FenixToken.excludeFromReward(address) (#633-641)
isExcludedFromFee(address) should be declared external:
- FenixToken.isExcludedFromFee(address) (#989-991)
excludeFromFee(address) should be declared external:
- FenixToken.excludeFromFee(address) (#993-995)
includeInFee(address) should be declared external:
- FenixToken.includeInFee(address) (#997-999)
GetBuyBackTimeInterval() should be declared external:
- FenixToken.GetBuyBackTimeInterval() (#1045-1047)
GetSwapMinutes() should be declared external:
- FenixToken.GetSwapMinutes() (#1058-1060)
setBuyBackEnabled(bool) should be declared external:
- FenixToken.setBuyBackEnabled(bool) (#1109-1112)
setAutoBuyBackEnabled(bool) should be declared external:
- FenixToken.setAutoBuyBackEnabled(bool) (#1114-1117)
changeRouterVersion(address) should be declared external:
- FenixToken.changeRouterVersion(address) (#1137-1150)
transferForeignToken(address,address) should be declared external:
- FenixToken.transferForeignToken(address,address) (#1156-1160)
Use the external attribute for functions never called from the contract.
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.
Number of Binance Smart Chain (BSC) token holders is low.
Token is deployed only at one blockchain
Token has only one trading pair
Unable to find 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
Unable to find Telegram and Twitter accounts