Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
WethReceiver.getWeth(address,uint256) (#1266-1270) ignores return value by IERC20(weth).transfer(_exilonToken,amount) (#1269)
Exilon.addLiquidity() (#1507-1529) ignores return value by IERC20(weth).transfer(_dexPairExilonWeth,msg.value) (#1523)
Exilon._distributeLpFee(address,uint256,bool,Exilon.PoolInfo) (#2035-2154) ignores return value by IERC20(poolInfo.weth).transfer(poolInfo.dexPair,amountOfWeth) (#2148)
Exilon._distributeLpFee(address,uint256,bool,Exilon.PoolInfo) (#2035-2154) ignores return value by IERC20(poolInfo.weth).transfer(poolInfo.dexPair,wethAmountReturn) (#2152)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Exilon._distributeLpFee(address,uint256,bool,Exilon.PoolInfo) (#2035-2154) uses a dangerous strict equality:
- _feeAmountInTokens == 0 (#2048)
Exilon._distributeLpFee(address,uint256,bool,Exilon.PoolInfo) (#2035-2154) uses a dangerous strict equality:
- from == poolInfo.dexPair (#2052)
Exilon._distributeLpFee(address,uint256,bool,Exilon.PoolInfo) (#2035-2154) uses a dangerous strict equality:
- poolInfo.tokenReserves == 0 (#2061)
Exilon._distributeLpFee(address,uint256,bool,Exilon.PoolInfo) (#2035-2154) uses a dangerous strict equality:
- wethFeesPrice == 0 || (isForce == false && wethFeesPrice + contractBalance < wethLimitForLpFee) (#2073-2074)
Exilon._distributeLpFee(address,uint256,bool,Exilon.PoolInfo) (#2035-2154) uses a dangerous strict equality:
- amountTokenToSell == 0 (#2100)
Exilon._getDexPairInfo(Exilon.PoolInfo,address,bool) (#2202-2223) uses a dangerous strict equality:
- token0 == tokenAddress (#2209)
Don't use strict equality to determine if an account has enough Ether or tokens.
Additional information: link
Exilon.constructor(IPancakeRouter02,address,address[],address,address) (#1430-1503) performs a multiplication on the result of a division:
-amountToDistribute = notFixedInternalTotalSupply / toDistribute.length (#1490)
-fixedAmountDistributed = (amountToDistribute * notFixedExternalTotalSupply) / notFixedInternalTotalSupply (#1498-1499)
Exilon._trasnferFromNotFixedToFixed(address,address,uint256) (#1930-1978) performs a multiplication on the result of a division:
-(transferAmount,fees) = _makeSellAction(_dexPairExilonWeth,from,amount,amount >= (((notFixedBalanceFrom * notFixedExternalTotalSupply) / notFixedInternalTotalSupply) * 9) / 10,notFixedInternalTotalSupply) (#1953-1962)
Consider ordering multiplication before division.
Additional information: link
Different versions of Solidity is used:
- Version used: ['0.8.10', '^0.8.0']
- ^0.8.0 (#4)
- ^0.8.0 (#93)
- ^0.8.0 (#118)
- ^0.8.0 (#186)
- ^0.8.0 (#212)
- ^0.8.0 (#241)
- ^0.8.0 (#452)
- ^0.8.0 (#670)
- ^0.8.0 (#753)
- ^0.8.0 (#781)
- ^0.8.0 (#829)
- ^0.8.0 (#889)
- ^0.8.0 (#914)
- ^0.8.0 (#1026)
- ^0.8.0 (#1190)
- ^0.8.0 (#1243)
- 0.8.10 (#1256)
- ^0.8.0 (#1276)
- 0.8.10 (#1305)
Use one Solidity version.
Additional information: link
Reentrancy in Exilon._distributeLpFee(address,uint256,bool,Exilon.PoolInfo) (#2035-2154):
External calls:
- IPancakePair(poolInfo.dexPair).skim(address(this)) (#2087)
State variables written after the call(s):
- feeAmountInTokens = _feeAmountInTokens (#2102)
Reentrancy in Exilon._distributeLpFee(address,uint256,bool,Exilon.PoolInfo) (#2035-2154):
External calls:
- IPancakePair(poolInfo.dexPair).skim(address(this)) (#2087)
- IPancakePair(poolInfo.dexPair).swap(amount0Out,amount1Out,_wethReceiver,) (#2118)
- WethReceiver(_wethReceiver).getWeth(poolInfo.weth,amountOfWethToBuy) (#2119)
State variables written after the call(s):
- _fixedBalances[poolInfo.dexPair] += amountOfTokens (#2143)
- feeAmountInTokens = _feeAmountInTokens - amountOfTokens (#2144)
Reentrancy in Exilon._makeBuyAction(address,address,address,uint256,uint256) (#2225-2285):
External calls:
- _distributeLpFee(from,fees.lpFee + additionalToLp,false,poolInfo) (#2271)
- IPancakePair(poolInfo.dexPair).skim(address(this)) (#2087)
- IPancakePair(poolInfo.dexPair).swap(amount0Out,amount1Out,_wethReceiver,) (#2118)
- WethReceiver(_wethReceiver).getWeth(poolInfo.weth,amountOfWethToBuy) (#2119)
- IERC20(poolInfo.weth).transfer(poolInfo.dexPair,amountOfWeth) (#2148)
- IPancakePair(poolInfo.dexPair).mint(defaultLpMintAddress) (#2149)
- IERC20(poolInfo.weth).transfer(poolInfo.dexPair,wethAmountReturn) (#2152)
State variables written after the call(s):
- _fixedBalances[reserveFeeAddress] += fees.reserveFee (#2275)
Reentrancy in Exilon._makeSellAction(address,address,uint256,bool,uint256) (#2287-2366):
External calls:
- _distributeLpFee(from,fees.lpFee + additionalToLp,false,poolInfo) (#2352)
- IPancakePair(poolInfo.dexPair).skim(address(this)) (#2087)
- IPancakePair(poolInfo.dexPair).swap(amount0Out,amount1Out,_wethReceiver,) (#2118)
- WethReceiver(_wethReceiver).getWeth(poolInfo.weth,amountOfWethToBuy) (#2119)
- IERC20(poolInfo.weth).transfer(poolInfo.dexPair,amountOfWeth) (#2148)
- IPancakePair(poolInfo.dexPair).mint(defaultLpMintAddress) (#2149)
- IERC20(poolInfo.weth).transfer(poolInfo.dexPair,wethAmountReturn) (#2152)
State variables written after the call(s):
- _fixedBalances[reserveFeeAddress] += fees.reserveFee (#2356)
Reentrancy in Exilon._transferFromFixedToFixed(address,address,uint256) (#1829-1877):
External calls:
- (transferAmount,fees) = _makeBuyAction(_dexPairExilonWeth,from,to,amount,_notFixedInternalTotalSupply) (#1843-1849)
- IPancakePair(poolInfo.dexPair).skim(address(this)) (#2087)
- IPancakePair(poolInfo.dexPair).swap(amount0Out,amount1Out,_wethReceiver,) (#2118)
- WethReceiver(_wethReceiver).getWeth(poolInfo.weth,amountOfWethToBuy) (#2119)
- IERC20(poolInfo.weth).transfer(poolInfo.dexPair,amountOfWeth) (#2148)
- IPancakePair(poolInfo.dexPair).mint(defaultLpMintAddress) (#2149)
- IERC20(poolInfo.weth).transfer(poolInfo.dexPair,wethAmountReturn) (#2152)
- (transferAmount,fees_scope_0) = _makeSellAction(_dexPairExilonWeth,from,amount,amount >= (fixedBalanceFrom * 9) / 10,_notFixedInternalTotalSupply) (#1858-1864)
- IPancakePair(poolInfo.dexPair).skim(address(this)) (#2087)
- IPancakePair(poolInfo.dexPair).swap(amount0Out,amount1Out,_wethReceiver,) (#2118)
- WethReceiver(_wethReceiver).getWeth(poolInfo.weth,amountOfWethToBuy) (#2119)
- IERC20(poolInfo.weth).transfer(poolInfo.dexPair,amountOfWeth) (#2148)
- IPancakePair(poolInfo.dexPair).mint(defaultLpMintAddress) (#2149)
- IERC20(poolInfo.weth).transfer(poolInfo.dexPair,wethAmountReturn) (#2152)
State variables written after the call(s):
- _fixedBalances[to] += transferAmount (#1874)
Reentrancy in Exilon._transferFromFixedToNotFixed(address,address,uint256) (#1879-1928):
External calls:
- (transferAmount,fees) = _makeBuyAction(_dexPairExilonWeth,from,to,amount,notFixedInternalTotalSupply) (#1899-1905)
- IPancakePair(poolInfo.dexPair).skim(address(this)) (#2087)
- IPancakePair(poolInfo.dexPair).swap(amount0Out,amount1Out,_wethReceiver,) (#2118)
- WethReceiver(_wethReceiver).getWeth(poolInfo.weth,amountOfWethToBuy) (#2119)
- IERC20(poolInfo.weth).transfer(poolInfo.dexPair,amountOfWeth) (#2148)
- IPancakePair(poolInfo.dexPair).mint(defaultLpMintAddress) (#2149)
- IERC20(poolInfo.weth).transfer(poolInfo.dexPair,wethAmountReturn) (#2152)
State variables written after the call(s):
- _notFixedExternalTotalSupply = notFixedExternalTotalSupply (#1922)
- _notFixedInternalTotalSupply = notFixedInternalTotalSupply (#1925)
Reentrancy in Exilon._trasnferFromNotFixedToFixed(address,address,uint256) (#1930-1978):
External calls:
- (transferAmount,fees) = _makeSellAction(_dexPairExilonWeth,from,amount,amount >= (((notFixedBalanceFrom * notFixedExternalTotalSupply) / notFixedInternalTotalSupply) * 9) / 10,notFixedInternalTotalSupply) (#1953-1962)
- IPancakePair(poolInfo.dexPair).skim(address(this)) (#2087)
- IPancakePair(poolInfo.dexPair).swap(amount0Out,amount1Out,_wethReceiver,) (#2118)
- WethReceiver(_wethReceiver).getWeth(poolInfo.weth,amountOfWethToBuy) (#2119)
- IERC20(poolInfo.weth).transfer(poolInfo.dexPair,amountOfWeth) (#2148)
- IPancakePair(poolInfo.dexPair).mint(defaultLpMintAddress) (#2149)
- IERC20(poolInfo.weth).transfer(poolInfo.dexPair,wethAmountReturn) (#2152)
State variables written after the call(s):
- _fixedBalances[to] += transferAmount (#1968)
- _notFixedExternalTotalSupply = notFixedExternalTotalSupply (#1972)
- _notFixedInternalTotalSupply = notFixedInternalTotalSupply (#1975)
Apply the check-effects-interactions pattern.
Additional information: link
Exilon._distributeLpFee(address,uint256,bool,Exilon.PoolInfo).amount0Out (#2110) is a local variable never initialized
Exilon._makeBuyAction(address,address,address,uint256,uint256).additionalToLp (#2258) is a local variable never initialized
Exilon._makeSellAction(address,address,uint256,bool,uint256).additionalToLp (#2336) is a local variable never initialized
Exilon._makeBuyAction(address,address,address,uint256,uint256).poolInfo (#2232) is a local variable never initialized
Exilon._transferFromFixedToNotFixed(address,address,uint256).distributionAmount (#1893) is a local variable never initialized
Exilon._distributeLpFee(address,uint256,bool,Exilon.PoolInfo).wethAmountReturn (#2082) is a local variable never initialized
Exilon._trasnferFromNotFixedToFixed(address,address,uint256).distributionAmount (#1947) is a local variable never initialized
PancakeLibrary.getAmountsOut(address,uint256,address[]).i (#1001) is a local variable never initialized
Exilon._makeTransferAction(address,address,address,uint256).poolInfoUsd (#2392) is a local variable never initialized
Exilon.forceLpFeesDistribute().poolInfo (#1562) is a local variable never initialized
Exilon._distributeLpFee(address,uint256,bool,Exilon.PoolInfo).amount1Out (#2111) is a local variable never initialized
Exilon._makeSellAction(address,address,uint256,bool,uint256).poolInfo (#2349) is a local variable never initialized
Exilon._makeTransferAction(address,address,address,uint256).poolInfoExilon (#2387) 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
Exilon.addLiquidity() (#1507-1529) ignores return value by IPancakePair(_dexPairExilonWeth).mint(defaultLpMintAddress) (#1525)
Exilon._distributeLpFee(address,uint256,bool,Exilon.PoolInfo) (#2035-2154) ignores return value by IPancakePair(poolInfo.dexPair).mint(defaultLpMintAddress) (#2149)
Exilon._makeTransferAction(address,address,address,uint256) (#2368-2415) ignores return value by IPancakePair(to).factory() (#2379-2384)
Exilon._makeTransferAction(address,address,address,uint256) (#2368-2415) ignores return value by IPancakePair(to).token0() (#2381-2383)
Ensure that all the return values of the function calls are used.
Additional information: link
WethReceiver.constructor(address)._exilonToken (#1262) lacks a zero-check on :
- exilonToken = _exilonToken (#1263)
Exilon.constructor(IPancakeRouter02,address,address[],address,address).weth (#1440) lacks a zero-check on :
- _weth = weth (#1441)
Exilon.constructor(IPancakeRouter02,address,address[],address,address)._dexPairExilonWeth (#1443) lacks a zero-check on :
- dexPairExilonWeth = _dexPairExilonWeth (#1444)
Exilon.constructor(IPancakeRouter02,address,address[],address,address)._usdAddress (#1432) lacks a zero-check on :
- usdAddress = _usdAddress (#1447)
Exilon.constructor(IPancakeRouter02,address,address[],address,address)._defaultLpMintAddress (#1434) lacks a zero-check on :
- defaultLpMintAddress = _defaultLpMintAddress (#1455)
Exilon.constructor(IPancakeRouter02,address,address[],address,address)._marketingAddress (#1435) lacks a zero-check on :
- marketingAddress = _marketingAddress (#1456)
Exilon.setDefaultLpMintAddress(address).newValue (#1720) lacks a zero-check on :
- defaultLpMintAddress = newValue (#1722)
Check that the address is not zero.
Additional information: link
Reentrancy in Exilon._distributeLpFee(address,uint256,bool,Exilon.PoolInfo) (#2035-2154):
External calls:
- IPancakePair(poolInfo.dexPair).skim(address(this)) (#2087)
State variables written after the call(s):
- _fixedBalances[poolInfo.dexPair] += amountTokenToSell (#2107)
Reentrancy in Exilon._transferFromFixedToFixed(address,address,uint256) (#1829-1877):
External calls:
- (transferAmount,fees) = _makeBuyAction(_dexPairExilonWeth,from,to,amount,_notFixedInternalTotalSupply) (#1843-1849)
- IPancakePair(poolInfo.dexPair).skim(address(this)) (#2087)
- IPancakePair(poolInfo.dexPair).swap(amount0Out,amount1Out,_wethReceiver,) (#2118)
- WethReceiver(_wethReceiver).getWeth(poolInfo.weth,amountOfWethToBuy) (#2119)
- IERC20(poolInfo.weth).transfer(poolInfo.dexPair,amountOfWeth) (#2148)
- IPancakePair(poolInfo.dexPair).mint(defaultLpMintAddress) (#2149)
- IERC20(poolInfo.weth).transfer(poolInfo.dexPair,wethAmountReturn) (#2152)
State variables written after the call(s):
- _notFixedExternalTotalSupply += fees.distributeFee (#1853)
Reentrancy in Exilon._transferFromFixedToFixed(address,address,uint256) (#1829-1877):
External calls:
- (transferAmount,fees_scope_0) = _makeSellAction(_dexPairExilonWeth,from,amount,amount >= (fixedBalanceFrom * 9) / 10,_notFixedInternalTotalSupply) (#1858-1864)
- IPancakePair(poolInfo.dexPair).skim(address(this)) (#2087)
- IPancakePair(poolInfo.dexPair).swap(amount0Out,amount1Out,_wethReceiver,) (#2118)
- WethReceiver(_wethReceiver).getWeth(poolInfo.weth,amountOfWethToBuy) (#2119)
- IERC20(poolInfo.weth).transfer(poolInfo.dexPair,amountOfWeth) (#2148)
- IPancakePair(poolInfo.dexPair).mint(defaultLpMintAddress) (#2149)
- IERC20(poolInfo.weth).transfer(poolInfo.dexPair,wethAmountReturn) (#2152)
State variables written after the call(s):
- _notFixedExternalTotalSupply += fees_scope_0.distributeFee (#1868)
Reentrancy in Exilon._transferFromFixedToNotFixed(address,address,uint256) (#1879-1928):
External calls:
- (transferAmount,fees) = _makeBuyAction(_dexPairExilonWeth,from,to,amount,notFixedInternalTotalSupply) (#1899-1905)
- IPancakePair(poolInfo.dexPair).skim(address(this)) (#2087)
- IPancakePair(poolInfo.dexPair).swap(amount0Out,amount1Out,_wethReceiver,) (#2118)
- WethReceiver(_wethReceiver).getWeth(poolInfo.weth,amountOfWethToBuy) (#2119)
- IERC20(poolInfo.weth).transfer(poolInfo.dexPair,amountOfWeth) (#2148)
- IPancakePair(poolInfo.dexPair).mint(defaultLpMintAddress) (#2149)
- IERC20(poolInfo.weth).transfer(poolInfo.dexPair,wethAmountReturn) (#2152)
State variables written after the call(s):
- _notFixedBalances[to] += notFixedAmount (#1919)
Reentrancy in Exilon.constructor(IPancakeRouter02,address,address[],address,address) (#1430-1503):
External calls:
- _dexPairExilonWeth = dexFactory.createPair(address(this),weth) (#1443)
State variables written after the call(s):
- _fixedBalances[address(this)] = _INITIAL_AMOUNT_TO_LIQUIDITY (#1467)
- _notFixedBalances[toDistribute[i]] = amountToDistribute (#1496)
- _notFixedExternalTotalSupply = notFixedExternalTotalSupply (#1478)
- _notFixedInternalTotalSupply = notFixedInternalTotalSupply (#1481)
- _setupRole(DEFAULT_ADMIN_ROLE,msg.sender) (#1458)
- _roles[role].members[account] = true (#436)
- defaultLpMintAddress = _defaultLpMintAddress (#1455)
- dexPairExilonWeth = _dexPairExilonWeth (#1444)
- dexPairUsdWeth = _dexPairUsdWeth (#1452)
- feeAmountInUsd = 10 ** IERC20Metadata(_usdAddress).decimals() (#1448)
- isExcludedFromDistribution[_dexPairExilonWeth] = true (#1461)
- isExcludedFromDistribution[address(0xdead)] = true (#1462)
- isExcludedFromDistribution[_marketingAddress] = true (#1463)
- isExcludedFromDistribution[address(this)] = true (#1466)
- marketingAddress = _marketingAddress (#1456)
- usdAddress = _usdAddress (#1447)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Exilon._distributeLpFee(address,uint256,bool,Exilon.PoolInfo) (#2035-2154):
External calls:
- IPancakePair(poolInfo.dexPair).skim(address(this)) (#2087)
Event emitted after the call(s):
- Transfer(address(0),poolInfo.dexPair,amountTokenToSell) (#2108)
Reentrancy in Exilon._distributeLpFee(address,uint256,bool,Exilon.PoolInfo) (#2035-2154):
External calls:
- IPancakePair(poolInfo.dexPair).skim(address(this)) (#2087)
- IPancakePair(poolInfo.dexPair).swap(amount0Out,amount1Out,_wethReceiver,) (#2118)
- WethReceiver(_wethReceiver).getWeth(poolInfo.weth,amountOfWethToBuy) (#2119)
Event emitted after the call(s):
- Transfer(address(0),poolInfo.dexPair,amountOfTokens) (#2146)
Reentrancy in Exilon._transferFromFixedToFixed(address,address,uint256) (#1829-1877):
External calls:
- (transferAmount,fees) = _makeBuyAction(_dexPairExilonWeth,from,to,amount,_notFixedInternalTotalSupply) (#1843-1849)
- IPancakePair(poolInfo.dexPair).skim(address(this)) (#2087)
- IPancakePair(poolInfo.dexPair).swap(amount0Out,amount1Out,_wethReceiver,) (#2118)
- WethReceiver(_wethReceiver).getWeth(poolInfo.weth,amountOfWethToBuy) (#2119)
- IERC20(poolInfo.weth).transfer(poolInfo.dexPair,amountOfWeth) (#2148)
- IPancakePair(poolInfo.dexPair).mint(defaultLpMintAddress) (#2149)
- IERC20(poolInfo.weth).transfer(poolInfo.dexPair,wethAmountReturn) (#2152)
- (transferAmount,fees_scope_0) = _makeSellAction(_dexPairExilonWeth,from,amount,amount >= (fixedBalanceFrom * 9) / 10,_notFixedInternalTotalSupply) (#1858-1864)
- IPancakePair(poolInfo.dexPair).skim(address(this)) (#2087)
- IPancakePair(poolInfo.dexPair).swap(amount0Out,amount1Out,_wethReceiver,) (#2118)
- WethReceiver(_wethReceiver).getWeth(poolInfo.weth,amountOfWethToBuy) (#2119)
- IERC20(poolInfo.weth).transfer(poolInfo.dexPair,amountOfWeth) (#2148)
- IPancakePair(poolInfo.dexPair).mint(defaultLpMintAddress) (#2149)
- IERC20(poolInfo.weth).transfer(poolInfo.dexPair,wethAmountReturn) (#2152)
Event emitted after the call(s):
- Transfer(from,to,transferAmount) (#1876)
Reentrancy in Exilon._transferFromFixedToNotFixed(address,address,uint256) (#1879-1928):
External calls:
- (transferAmount,fees) = _makeBuyAction(_dexPairExilonWeth,from,to,amount,notFixedInternalTotalSupply) (#1899-1905)
- IPancakePair(poolInfo.dexPair).skim(address(this)) (#2087)
- IPancakePair(poolInfo.dexPair).swap(amount0Out,amount1Out,_wethReceiver,) (#2118)
- WethReceiver(_wethReceiver).getWeth(poolInfo.weth,amountOfWethToBuy) (#2119)
- IERC20(poolInfo.weth).transfer(poolInfo.dexPair,amountOfWeth) (#2148)
- IPancakePair(poolInfo.dexPair).mint(defaultLpMintAddress) (#2149)
- IERC20(poolInfo.weth).transfer(poolInfo.dexPair,wethAmountReturn) (#2152)
Event emitted after the call(s):
- Transfer(from,to,transferAmount) (#1927)
Reentrancy in Exilon._trasnferFromNotFixedToFixed(address,address,uint256) (#1930-1978):
External calls:
- (transferAmount,fees) = _makeSellAction(_dexPairExilonWeth,from,amount,amount >= (((notFixedBalanceFrom * notFixedExternalTotalSupply) / notFixedInternalTotalSupply) * 9) / 10,notFixedInternalTotalSupply) (#1953-1962)
- IPancakePair(poolInfo.dexPair).skim(address(this)) (#2087)
- IPancakePair(poolInfo.dexPair).swap(amount0Out,amount1Out,_wethReceiver,) (#2118)
- WethReceiver(_wethReceiver).getWeth(poolInfo.weth,amountOfWethToBuy) (#2119)
- IERC20(poolInfo.weth).transfer(poolInfo.dexPair,amountOfWeth) (#2148)
- IPancakePair(poolInfo.dexPair).mint(defaultLpMintAddress) (#2149)
- IERC20(poolInfo.weth).transfer(poolInfo.dexPair,wethAmountReturn) (#2152)
Event emitted after the call(s):
- Transfer(from,to,transferAmount) (#1977)
Reentrancy in Exilon.addLiquidity() (#1507-1529):
External calls:
- IWETH(weth).deposit{value: msg.value}() (#1522)
- IERC20(weth).transfer(_dexPairExilonWeth,msg.value) (#1523)
- IPancakePair(_dexPairExilonWeth).mint(defaultLpMintAddress) (#1525)
External calls sending eth:
- IWETH(weth).deposit{value: msg.value}() (#1522)
Event emitted after the call(s):
- LiquidityAdded(msg.value) (#1528)
- Transfer(address(this),_dexPairExilonWeth,amountToLiquidity) (#1527)
Reentrancy in Exilon.constructor(IPancakeRouter02,address,address[],address,address) (#1430-1503):
External calls:
- _dexPairExilonWeth = dexFactory.createPair(address(this),weth) (#1443)
Event emitted after the call(s):
- RoleGranted(role,account,_msgSender()) (#437)
- _setupRole(DEFAULT_ADMIN_ROLE,msg.sender) (#1458)
- Transfer(address(0),toDistribute[i],fixedAmountDistributed) (#1500)
- Transfer(address(0),address(this),_INITIAL_AMOUNT_TO_LIQUIDITY) (#1502)
Reentrancy in Exilon.forceLpFeesDistribute() (#1561-1568):
External calls:
- _distributeLpFee(address(0),0,true,poolInfo) (#1565)
- IPancakePair(poolInfo.dexPair).skim(address(this)) (#2087)
- IPancakePair(poolInfo.dexPair).swap(amount0Out,amount1Out,_wethReceiver,) (#2118)
- WethReceiver(_wethReceiver).getWeth(poolInfo.weth,amountOfWethToBuy) (#2119)
- IERC20(poolInfo.weth).transfer(poolInfo.dexPair,amountOfWeth) (#2148)
- IPancakePair(poolInfo.dexPair).mint(defaultLpMintAddress) (#2149)
- IERC20(poolInfo.weth).transfer(poolInfo.dexPair,wethAmountReturn) (#2152)
Event emitted after the call(s):
- ForceLpFeesDistribution() (#1567)
Apply the check-effects-interactions pattern.
Additional information: link
Exilon._makeSellAction(address,address,uint256,bool,uint256) (#2287-2366) uses timestamp for comparisons
Dangerous comparisons:
- timeFromStart < 1800 (#2308)
- timeFromStart < 3600 (#2314)
Avoid relying on block.timestamp.
Additional information: link
Address.isContract(address) (#475-485) uses assembly
- INLINE ASM (#481-483)
Address.verifyCallResult(bool,bytes,string) (#644-664) uses assembly
- INLINE ASM (#656-659)
Do not use evm assembly.
Additional information: link
Exilon._transfer(address,address,uint256) (#1810-1827) compares to a boolean constant:
-isFromFixed == true && isToFixed == false (#1820)
Exilon._transfer(address,address,uint256) (#1810-1827) compares to a boolean constant:
-isFromFixed == false && isToFixed == true (#1822)
Exilon._transfer(address,address,uint256) (#1810-1827) compares to a boolean constant:
-isFromFixed == true && isToFixed == true (#1818)
Exilon._distributeLpFee(address,uint256,bool,Exilon.PoolInfo) (#2035-2154) compares to a boolean constant:
-wethFeesPrice == 0 || (isForce == false && wethFeesPrice + contractBalance < wethLimitForLpFee) (#2073-2074)
Remove the equality to the boolean constant.
Additional information: link
AccessControl._setRoleAdmin(bytes32,bytes32) (#428-432) is never used and should be removed
Address.functionCall(address,bytes) (#528-530) is never used and should be removed
Address.functionCall(address,bytes,string) (#538-544) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#557-563) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#571-582) is never used and should be removed
Address.functionDelegateCall(address,bytes) (#617-619) is never used and should be removed
Address.functionDelegateCall(address,bytes,string) (#627-636) is never used and should be removed
Address.functionStaticCall(address,bytes) (#590-592) is never used and should be removed
Address.functionStaticCall(address,bytes,string) (#600-609) is never used and should be removed
Address.sendValue(address,uint256) (#503-508) is never used and should be removed
Address.verifyCallResult(bool,bytes,string) (#644-664) is never used and should be removed
Context._msgData() (#110-112) is never used and should be removed
PancakeLibrary.getAmountsIn(address,uint256,address[]) (#1008-1020) is never used and should be removed
PancakeLibrary.getAmountsOut(address,uint256,address[]) (#993-1005) is never used and should be removed
PancakeLibrary.getReserves(address,address,address) (#942-952) is never used and should be removed
PancakeLibrary.pairFor(address,address,address) (#933-939) is never used and should be removed
Strings.toHexString(uint256) (#154-165) is never used and should be removed
Strings.toString(uint256) (#129-149) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version^0.8.0 (#4) allows old versions
Pragma version^0.8.0 (#93) allows old versions
Pragma version^0.8.0 (#118) allows old versions
Pragma version^0.8.0 (#186) allows old versions
Pragma version^0.8.0 (#212) allows old versions
Pragma version^0.8.0 (#241) allows old versions
Pragma version^0.8.0 (#452) allows old versions
Pragma version^0.8.0 (#670) allows old versions
Pragma version^0.8.0 (#753) allows old versions
Pragma version^0.8.0 (#781) allows old versions
Pragma version^0.8.0 (#829) allows old versions
Pragma version^0.8.0 (#889) allows old versions
Pragma version^0.8.0 (#914) allows old versions
Pragma version^0.8.0 (#1026) allows old versions
Pragma version^0.8.0 (#1190) allows old versions
Pragma version^0.8.0 (#1243) allows old versions
Pragma version0.8.10 (#1256) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
Pragma version^0.8.0 (#1276) allows old versions
Pragma version0.8.10 (#1305) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
solc-0.8.10 is not recommended for deployment
Deploy with any of the following Solidity versions: 0.5.16 - 0.5.17, 0.6.11 - 0.6.12, 0.7.5 - 0.7.6 Use a simple pragma version that allows any of these versions. Consider using the latest version of Solidity for testing.
Additional information: link
Low level call in Address.sendValue(address,uint256) (#503-508):
- (success) = recipient.call{value: amount}() (#506)
Low level call in Address.functionCallWithValue(address,bytes,uint256,string) (#571-582):
- (success,returndata) = target.call{value: value}(data) (#580)
Low level call in Address.functionStaticCall(address,bytes,string) (#600-609):
- (success,returndata) = target.staticcall(data) (#607)
Low level call in Address.functionDelegateCall(address,bytes,string) (#627-636):
- (success,returndata) = target.delegatecall(data) (#634)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IPancakeERC20.DOMAIN_SEPARATOR() (#809) is not in mixedCase
Function IPancakeERC20.PERMIT_TYPEHASH() (#811) is not in mixedCase
Function IPancakePair.MINIMUM_LIQUIDITY() (#845) is not in mixedCase
Function IPancakeRouter01.WETH() (#1031) is not in mixedCase
Parameter Exilon.setReserveFeeParameters(address,uint256)._reserveFeeAddress (#1740) is not in mixedCase
Parameter Exilon.setReserveFeeParameters(address,uint256)._reserveFee (#1740) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IPancakeRouter01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#1036) is too similar to IPancakeRouter01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#1037)
Variable Exilon._notFixedExternalTotalSupply (#1361) is too similar to Exilon._notFixedInternalTotalSupply (#1362)
Variable Exilon._transferFromFixedToNotFixed(address,address,uint256).notFixedExternalTotalSupply (#1888) is too similar to Exilon._transferFromNotFixedToNotFixed(address,address,uint256).notFixedInternalTotalSupply (#1986)
Variable Exilon._trasnferFromNotFixedToFixed(address,address,uint256).notFixedExternalTotalSupply (#1935) is too similar to Exilon.constructor(IPancakeRouter02,address,address[],address,address).notFixedInternalTotalSupply (#1472)
Variable Exilon._transferFromFixedToNotFixed(address,address,uint256).notFixedExternalTotalSupply (#1888) is too similar to Exilon._transferFromFixedToNotFixed(address,address,uint256).notFixedInternalTotalSupply (#1889)
Variable Exilon.excludeFromFeesDistribution(address).notFixedExternalTotalSupply (#1609) is too similar to Exilon.excludeFromFeesDistribution(address).notFixedInternalTotalSupply (#1610)
Variable Exilon._trasnferFromNotFixedToFixed(address,address,uint256).notFixedExternalTotalSupply (#1935) is too similar to Exilon._transferFromNotFixedToNotFixed(address,address,uint256).notFixedInternalTotalSupply (#1986)
Variable Exilon.includeToFeesDistribution(address).notFixedExternalTotalSupply (#1646) is too similar to Exilon._trasnferFromNotFixedToFixed(address,address,uint256).notFixedInternalTotalSupply (#1936)
Variable Exilon._transferFromFixedToNotFixed(address,address,uint256).notFixedExternalTotalSupply (#1888) is too similar to Exilon._makeSellAction(address,address,uint256,bool,uint256).notFixedInternalTotalSupply (#2292)
Variable Exilon.constructor(IPancakeRouter02,address,address[],address,address).notFixedExternalTotalSupply (#1470) is too similar to Exilon.constructor(IPancakeRouter02,address,address[],address,address).notFixedInternalTotalSupply (#1472)
Variable Exilon.excludeFromFeesDistribution(address).notFixedExternalTotalSupply (#1609) is too similar to Exilon.distributeTokens(uint256).notFixedInternalTotalSupply (#1581)
Variable Exilon.includeToFeesDistribution(address).notFixedExternalTotalSupply (#1646) is too similar to Exilon.excludeFromFeesDistribution(address).notFixedInternalTotalSupply (#1610)
Variable Exilon._transferFromNotFixedToNotFixed(address,address,uint256).notFixedExternalTotalSupply (#1985) is too similar to Exilon.distributeTokens(uint256).notFixedInternalTotalSupply (#1581)
Variable Exilon.distributeTokens(uint256).notFixedExternalTotalSupply (#1571) is too similar to Exilon.excludeFromFeesDistribution(address).notFixedInternalTotalSupply (#1610)
Variable Exilon.includeToFeesDistribution(address).notFixedExternalTotalSupply (#1646) is too similar to Exilon.distributeTokens(uint256).notFixedInternalTotalSupply (#1581)
Variable Exilon.excludeFromFeesDistribution(address).notFixedExternalTotalSupply (#1609) is too similar to Exilon.constructor(IPancakeRouter02,address,address[],address,address).notFixedInternalTotalSupply (#1472)
Variable Exilon.includeToFeesDistribution(address).notFixedExternalTotalSupply (#1646) is too similar to Exilon.includeToFeesDistribution(address).notFixedInternalTotalSupply (#1647)
Variable Exilon._transferFromNotFixedToNotFixed(address,address,uint256).notFixedExternalTotalSupply (#1985) is too similar to Exilon.constructor(IPancakeRouter02,address,address[],address,address).notFixedInternalTotalSupply (#1472)
Variable Exilon._transferFromFixedToNotFixed(address,address,uint256).notFixedExternalTotalSupply (#1888) is too similar to Exilon._trasnferFromNotFixedToFixed(address,address,uint256).notFixedInternalTotalSupply (#1936)
Variable Exilon.distributeTokens(uint256).notFixedExternalTotalSupply (#1571) is too similar to Exilon.distributeTokens(uint256).notFixedInternalTotalSupply (#1581)
Variable Exilon.excludeFromFeesDistribution(address).notFixedExternalTotalSupply (#1609) is too similar to Exilon._transferFromNotFixedToNotFixed(address,address,uint256).notFixedInternalTotalSupply (#1986)
Variable Exilon.includeToFeesDistribution(address).notFixedExternalTotalSupply (#1646) is too similar to Exilon.constructor(IPancakeRouter02,address,address[],address,address).notFixedInternalTotalSupply (#1472)
Variable Exilon._transferFromFixedToNotFixed(address,address,uint256).notFixedExternalTotalSupply (#1888) is too similar to Exilon.excludeFromFeesDistribution(address).notFixedInternalTotalSupply (#1610)
Variable Exilon._transferFromNotFixedToNotFixed(address,address,uint256).notFixedExternalTotalSupply (#1985) is too similar to Exilon._transferFromNotFixedToNotFixed(address,address,uint256).notFixedInternalTotalSupply (#1986)
Variable Exilon.distributeTokens(uint256).notFixedExternalTotalSupply (#1571) is too similar to Exilon.constructor(IPancakeRouter02,address,address[],address,address).notFixedInternalTotalSupply (#1472)
Variable Exilon.includeToFeesDistribution(address).notFixedExternalTotalSupply (#1646) is too similar to Exilon._transferFromNotFixedToNotFixed(address,address,uint256).notFixedInternalTotalSupply (#1986)
Variable Exilon._trasnferFromNotFixedToFixed(address,address,uint256).notFixedExternalTotalSupply (#1935) is too similar to Exilon._trasnferFromNotFixedToFixed(address,address,uint256).notFixedInternalTotalSupply (#1936)
Variable Exilon._transferFromFixedToNotFixed(address,address,uint256).notFixedExternalTotalSupply (#1888) is too similar to Exilon.distributeTokens(uint256).notFixedInternalTotalSupply (#1581)
Variable Exilon._transferFromFixedToNotFixed(address,address,uint256).notFixedExternalTotalSupply (#1888) is too similar to Exilon.includeToFeesDistribution(address).notFixedInternalTotalSupply (#1647)
Variable Exilon._trasnferFromNotFixedToFixed(address,address,uint256).notFixedExternalTotalSupply (#1935) is too similar to Exilon.excludeFromFeesDistribution(address).notFixedInternalTotalSupply (#1610)
Variable Exilon.distributeTokens(uint256).notFixedExternalTotalSupply (#1571) is too similar to Exilon._transferFromNotFixedToNotFixed(address,address,uint256).notFixedInternalTotalSupply (#1986)
Variable Exilon._transferFromFixedToNotFixed(address,address,uint256).notFixedExternalTotalSupply (#1888) is too similar to Exilon.constructor(IPancakeRouter02,address,address[],address,address).notFixedInternalTotalSupply (#1472)
Variable Exilon.includeToFeesDistribution(address).notFixedExternalTotalSupply (#1646) is too similar to Exilon._makeSellAction(address,address,uint256,bool,uint256).notFixedInternalTotalSupply (#2292)
Variable Exilon._trasnferFromNotFixedToFixed(address,address,uint256).notFixedExternalTotalSupply (#1935) is too similar to Exilon.distributeTokens(uint256).notFixedInternalTotalSupply (#1581)
Variable Exilon.excludeFromFeesDistribution(address).notFixedExternalTotalSupply (#1609) is too similar to Exilon._makeBuyAction(address,address,address,uint256,uint256).notFixedInternalTotalSupply (#2230)
Variable Exilon.excludeFromFeesDistribution(address).notFixedExternalTotalSupply (#1609) is too similar to Exilon._trasnferFromNotFixedToFixed(address,address,uint256).notFixedInternalTotalSupply (#1936)
Variable Exilon.constructor(IPancakeRouter02,address,address[],address,address).notFixedExternalTotalSupply (#1470) is too similar to Exilon.distributeTokens(uint256).notFixedInternalTotalSupply (#1581)
Variable Exilon.constructor(IPancakeRouter02,address,address[],address,address).notFixedExternalTotalSupply (#1470) is too similar to Exilon._transferFromFixedToNotFixed(address,address,uint256).notFixedInternalTotalSupply (#1889)
Variable Exilon._transferFromNotFixedToNotFixed(address,address,uint256).notFixedExternalTotalSupply (#1985) is too similar to Exilon._transferFromFixedToNotFixed(address,address,uint256).notFixedInternalTotalSupply (#1889)
Variable Exilon.includeToFeesDistribution(address).notFixedExternalTotalSupply (#1646) is too similar to Exilon._makeBuyAction(address,address,address,uint256,uint256).notFixedInternalTotalSupply (#2230)
Variable Exilon.constructor(IPancakeRouter02,address,address[],address,address).notFixedExternalTotalSupply (#1470) is too similar to Exilon._makeSellAction(address,address,uint256,bool,uint256).notFixedInternalTotalSupply (#2292)
Variable Exilon.constructor(IPancakeRouter02,address,address[],address,address).notFixedExternalTotalSupply (#1470) is too similar to Exilon._trasnferFromNotFixedToFixed(address,address,uint256).notFixedInternalTotalSupply (#1936)
Variable Exilon.distributeTokens(uint256).notFixedExternalTotalSupply (#1571) is too similar to Exilon.includeToFeesDistribution(address).notFixedInternalTotalSupply (#1647)
Variable Exilon.constructor(IPancakeRouter02,address,address[],address,address).notFixedExternalTotalSupply (#1470) is too similar to Exilon._makeBuyAction(address,address,address,uint256,uint256).notFixedInternalTotalSupply (#2230)
Variable Exilon._transferFromNotFixedToNotFixed(address,address,uint256).notFixedExternalTotalSupply (#1985) is too similar to Exilon._makeSellAction(address,address,uint256,bool,uint256).notFixedInternalTotalSupply (#2292)
Variable Exilon._transferFromNotFixedToNotFixed(address,address,uint256).notFixedExternalTotalSupply (#1985) is too similar to Exilon._trasnferFromNotFixedToFixed(address,address,uint256).notFixedInternalTotalSupply (#1936)
Variable Exilon._trasnferFromNotFixedToFixed(address,address,uint256).notFixedExternalTotalSupply (#1935) is too similar to Exilon.includeToFeesDistribution(address).notFixedInternalTotalSupply (#1647)
Variable Exilon._transferFromNotFixedToNotFixed(address,address,uint256).notFixedExternalTotalSupply (#1985) is too similar to Exilon._makeBuyAction(address,address,address,uint256,uint256).notFixedInternalTotalSupply (#2230)
Variable Exilon.excludeFromFeesDistribution(address).notFixedExternalTotalSupply (#1609) is too similar to Exilon.includeToFeesDistribution(address).notFixedInternalTotalSupply (#1647)
Variable Exilon._transferFromFixedToNotFixed(address,address,uint256).notFixedExternalTotalSupply (#1888) is too similar to Exilon._makeBuyAction(address,address,address,uint256,uint256).notFixedInternalTotalSupply (#2230)
Variable Exilon.distributeTokens(uint256).notFixedExternalTotalSupply (#1571) is too similar to Exilon._transferFromFixedToNotFixed(address,address,uint256).notFixedInternalTotalSupply (#1889)
Variable Exilon.constructor(IPancakeRouter02,address,address[],address,address).notFixedExternalTotalSupply (#1470) is too similar to Exilon.excludeFromFeesDistribution(address).notFixedInternalTotalSupply (#1610)
Variable Exilon.constructor(IPancakeRouter02,address,address[],address,address).notFixedExternalTotalSupply (#1470) is too similar to Exilon._transferFromNotFixedToNotFixed(address,address,uint256).notFixedInternalTotalSupply (#1986)
Variable Exilon._trasnferFromNotFixedToFixed(address,address,uint256).notFixedExternalTotalSupply (#1935) is too similar to Exilon._transferFromFixedToNotFixed(address,address,uint256).notFixedInternalTotalSupply (#1889)
Variable Exilon.distributeTokens(uint256).notFixedExternalTotalSupply (#1571) is too similar to Exilon._makeSellAction(address,address,uint256,bool,uint256).notFixedInternalTotalSupply (#2292)
Variable Exilon._transferFromNotFixedToNotFixed(address,address,uint256).notFixedExternalTotalSupply (#1985) is too similar to Exilon.excludeFromFeesDistribution(address).notFixedInternalTotalSupply (#1610)
Variable Exilon.constructor(IPancakeRouter02,address,address[],address,address).notFixedExternalTotalSupply (#1470) is too similar to Exilon.includeToFeesDistribution(address).notFixedInternalTotalSupply (#1647)
Variable Exilon.distributeTokens(uint256).notFixedExternalTotalSupply (#1571) is too similar to Exilon._makeBuyAction(address,address,address,uint256,uint256).notFixedInternalTotalSupply (#2230)
Variable Exilon.excludeFromFeesDistribution(address).notFixedExternalTotalSupply (#1609) is too similar to Exilon._transferFromFixedToNotFixed(address,address,uint256).notFixedInternalTotalSupply (#1889)
Variable Exilon.distributeTokens(uint256).notFixedExternalTotalSupply (#1571) is too similar to Exilon._trasnferFromNotFixedToFixed(address,address,uint256).notFixedInternalTotalSupply (#1936)
Variable Exilon._transferFromNotFixedToNotFixed(address,address,uint256).notFixedExternalTotalSupply (#1985) is too similar to Exilon.includeToFeesDistribution(address).notFixedInternalTotalSupply (#1647)
Variable Exilon._trasnferFromNotFixedToFixed(address,address,uint256).notFixedExternalTotalSupply (#1935) is too similar to Exilon._makeSellAction(address,address,uint256,bool,uint256).notFixedInternalTotalSupply (#2292)
Variable Exilon.excludeFromFeesDistribution(address).notFixedExternalTotalSupply (#1609) is too similar to Exilon._makeSellAction(address,address,uint256,bool,uint256).notFixedInternalTotalSupply (#2292)
Variable Exilon._trasnferFromNotFixedToFixed(address,address,uint256).notFixedExternalTotalSupply (#1935) is too similar to Exilon._makeBuyAction(address,address,address,uint256,uint256).notFixedInternalTotalSupply (#2230)
Variable Exilon.includeToFeesDistribution(address).notFixedExternalTotalSupply (#1646) is too similar to Exilon._transferFromFixedToNotFixed(address,address,uint256).notFixedInternalTotalSupply (#1889)
Prevent variables from having similar names.
Additional information: link
grantRole(bytes32,address) should be declared external:
- AccessControl.grantRole(bytes32,address) (#366-368)
revokeRole(bytes32,address) should be declared external:
- AccessControl.revokeRole(bytes32,address) (#379-381)
renounceRole(bytes32,address) should be declared external:
- AccessControl.renounceRole(bytes32,address) (#397-401)
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.
Unable to find website, listings and other project-related information
Young tokens have high risks of price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Unable to find Telegram and Twitter accounts