Xray Token Logo

XRAY Token

About XRAY

Listings

Not Found
Token 2 years

Website

Not Found

Description

Not Found

Social

Not Found

Laser Scorebeta Last Audit: 28 February 2022

report
Token seems to be anonymous. As long as we are unable to find website score is limited.


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

Xray.addLiquidity(uint256,uint256) (#1440-1453) sends eth to arbitrary user
Dangerous calls:
- swapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,lpEarner,block.timestamp) (#1445-1452)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in Xray._transfer(address,address,uint256) (#1356-1388):
External calls:
- swapAndLiquify() (#1365)
- swapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,lpEarner,block.timestamp) (#1445-1452)
- swapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1430-1436)
External calls sending eth:
- swapAndLiquify() (#1365)
- swapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,lpEarner,block.timestamp) (#1445-1452)
- feeAddr.transfer(address(this).balance.mul(20).div(100)) (#1408)
State variables written after the call(s):
- super._transfer(sender,recipient,amount) (#1371)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#892)
- _balances[recipient] = _balances[recipient].add(amount) (#893)
- super._transfer(sender,burnAddr,burnAmount) (#1384)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#892)
- _balances[recipient] = _balances[recipient].add(amount) (#893)
- super._transfer(sender,address(this),liqAmount) (#1385)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#892)
- _balances[recipient] = _balances[recipient].add(amount) (#893)
- super._transfer(sender,recipient,sendAmount) (#1386)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#892)
- _balances[recipient] = _balances[recipient].add(amount) (#893)
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.

Xray._transfer(address,address,uint256) (#1356-1388) performs a multiplication on the result of a division:
-taxAmount = amount.mul(transferTaxRate).div(10000) (#1375)
-burnAmount = taxAmount.mul(burnFee).div(100) (#1376)
Xray.swapAndLiquify() (#1391-1418) performs a multiplication on the result of a division:
-half = liquifyAmount.div(2) (#1401)
-otherHalf = liquifyAmount.sub(half.mul(80).div(100)) (#1402)
MasterChef.pendingXray(uint256,address) (#1853-1886) performs a multiplication on the result of a division:
-xrayReward = multiplier.mul(XrayPerSecond).mul(pool.allocPoint).div(totalAllocPoint) (#1870-1873)
-accXrayPerShare = accXrayPerShare.add(xrayReward.mul(1e18).div(pool.lpSupply)) (#1881-1883)
MasterChef.updatePool(uint256) (#1897-1938) performs a multiplication on the result of a division:
-xrayReward = multiplier.mul(XrayPerSecond).mul(pool.allocPoint).div(totalAllocPoint) (#1910-1913)
-pool.accXrayPerShare = pool.accXrayPerShare.add(xrayReward.mul(1e18).div(pool.lpSupply)) (#1932-1934)
Consider ordering multiplication before division.

Additional information: link

Reentrancy in MasterChef.add(uint256,IBEP20,uint16,bool) (#1781-1816):
External calls:
- massUpdatePools() (#1792)
- xray.mint(devaddr,xrayReward.div(10)) (#1922)
- xray.mint(address(this),xrayReward) (#1923)
- xray.mint(address(this),xrayReward) (#1927)
State variables written after the call(s):
- poolExistence[_lpToken] = true (#1798)
- poolInfo.push(PoolInfo(_lpToken,_allocPoint,lastRewardSecond,0,_depositFeeBP,0)) (#1799-1808)
- totalAllocPoint = totalAllocPoint.add(_allocPoint) (#1797)
Reentrancy in MasterChef.deposit(uint256,uint256) (#1941-1975):
External calls:
- updatePool(_pid) (#1944)
- xray.mint(devaddr,xrayReward.div(10)) (#1922)
- xray.mint(address(this),xrayReward) (#1923)
- xray.mint(address(this),xrayReward) (#1927)
- safeXrayTransfer(msg.sender,pending) (#1952)
- transferSuccess = xray.transfer(_to,xrayBal) (#2021)
- transferSuccess = xray.transfer(_to,_amount) (#2023)
- pool.lpToken.safeTransferFrom(address(msg.sender),address(this),_amount) (#1957-1961)
- pool.lpToken.safeTransfer(feeAddress,depositFee) (#1965)
State variables written after the call(s):
- pool.lpSupply = pool.lpSupply.add(_amount).sub(depositFee) (#1967)
- user.amount = user.amount.add(_amount).sub(depositFee) (#1966)
Reentrancy in MasterChef.deposit(uint256,uint256) (#1941-1975):
External calls:
- updatePool(_pid) (#1944)
- xray.mint(devaddr,xrayReward.div(10)) (#1922)
- xray.mint(address(this),xrayReward) (#1923)
- xray.mint(address(this),xrayReward) (#1927)
- safeXrayTransfer(msg.sender,pending) (#1952)
- transferSuccess = xray.transfer(_to,xrayBal) (#2021)
- transferSuccess = xray.transfer(_to,_amount) (#2023)
- pool.lpToken.safeTransferFrom(address(msg.sender),address(this),_amount) (#1957-1961)
State variables written after the call(s):
- pool.lpSupply = pool.lpSupply.add(_amount) (#1970)
- user.amount = user.amount.add(_amount) (#1969)
Reentrancy in MasterChef.emergencyWithdraw(uint256) (#1999-2014):
External calls:
- pool.lpToken.safeTransfer(address(msg.sender),amount) (#2005)
State variables written after the call(s):
- pool.lpSupply = pool.lpSupply.sub(amount) (#2008)
- pool.lpSupply = 0 (#2010)
Reentrancy in MasterChef.set(uint256,uint256,uint16,bool) (#1819-1841):
External calls:
- massUpdatePools() (#1827)
- xray.mint(devaddr,xrayReward.div(10)) (#1922)
- xray.mint(address(this),xrayReward) (#1923)
- xray.mint(address(this),xrayReward) (#1927)
State variables written after the call(s):
- poolInfo[_pid].allocPoint = _allocPoint (#1832)
- poolInfo[_pid].depositFeeBP = _depositFeeBP (#1833)
- totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint) (#1829-1831)
Reentrancy in MasterChef.updateEmissionRate(uint256) (#2044-2049):
External calls:
- massUpdatePools() (#2046)
- xray.mint(devaddr,xrayReward.div(10)) (#1922)
- xray.mint(address(this),xrayReward) (#1923)
- xray.mint(address(this),xrayReward) (#1927)
State variables written after the call(s):
- XrayPerSecond = _XrayPerSecond (#2047)
Reentrancy in MasterChef.updatePool(uint256) (#1897-1938):
External calls:
- xray.mint(devaddr,xrayReward.div(10)) (#1922)
- xray.mint(address(this),xrayReward) (#1923)
- xray.mint(address(this),xrayReward) (#1927)
State variables written after the call(s):
- pool.accXrayPerShare = pool.accXrayPerShare.add(xrayReward.mul(1e18).div(pool.lpSupply)) (#1932-1934)
- pool.lastRewardSecond = block.timestamp (#1937)
Reentrancy in MasterChef.withdraw(uint256,uint256) (#1978-1996):
External calls:
- updatePool(_pid) (#1982)
- xray.mint(devaddr,xrayReward.div(10)) (#1922)
- xray.mint(address(this),xrayReward) (#1923)
- xray.mint(address(this),xrayReward) (#1927)
- safeXrayTransfer(msg.sender,pending) (#1987)
- transferSuccess = xray.transfer(_to,xrayBal) (#2021)
- transferSuccess = xray.transfer(_to,_amount) (#2023)
State variables written after the call(s):
- user.amount = user.amount.sub(_amount) (#1990)
Reentrancy in MasterChef.withdraw(uint256,uint256) (#1978-1996):
External calls:
- updatePool(_pid) (#1982)
- xray.mint(devaddr,xrayReward.div(10)) (#1922)
- xray.mint(address(this),xrayReward) (#1923)
- xray.mint(address(this),xrayReward) (#1927)
- safeXrayTransfer(msg.sender,pending) (#1987)
- transferSuccess = xray.transfer(_to,xrayBal) (#2021)
- transferSuccess = xray.transfer(_to,_amount) (#2023)
- pool.lpToken.safeTransfer(address(msg.sender),_amount) (#1991)
State variables written after the call(s):
- pool.lpSupply = pool.lpSupply.sub(_amount) (#1992)
- user.rewardDebt = user.amount.mul(pool.accXrayPerShare).div(1e18) (#1994)
Apply the check-effects-interactions pattern.

Additional information: link

Xray.addLiquidity(uint256,uint256) (#1440-1453) ignores return value by swapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,lpEarner,block.timestamp) (#1445-1452)
MasterChef.add(uint256,IBEP20,uint16,bool) (#1781-1816) ignores return value by _lpToken.balanceOf(address(this)) (#1788)
Ensure that all the return values of the function calls are used.

Additional information: link

BEP20.constructor(string,string).name (#706) shadows:
- BEP20.name() (#722-724) (function)
- IBEP20.name() (#181) (function)
BEP20.constructor(string,string).symbol (#706) shadows:
- BEP20.symbol() (#736-738) (function)
- IBEP20.symbol() (#176) (function)
BEP20.allowance(address,address).owner (#775) shadows:
- Ownable.owner() (#126-128) (function)
BEP20._approve(address,address,uint256).owner (#949) shadows:
- Ownable.owner() (#126-128) (function)
Xray.swapAndLiquify().maxTransferAmount (#1393) shadows:
- Xray.maxTransferAmount() (#1458-1460) (function)
Rename the local variables that shadow another component.

Additional information: link

MasterChef.constructor(Xray,address,address,uint256,uint256)._devaddr (#1758) lacks a zero-check on :
- devaddr = _devaddr (#1764)
MasterChef.constructor(Xray,address,address,uint256,uint256)._feeAddress (#1759) lacks a zero-check on :
- feeAddress = _feeAddress (#1765)
Check that the address is not zero.

Additional information: link

MasterChef.updatePool(uint256) (#1897-1938) has external calls inside a loop: totalRewards = xray.totalSupply().add(devReward).add(xrayReward) (#1916-1918)
MasterChef.updatePool(uint256) (#1897-1938) has external calls inside a loop: totalRewards <= xray.maxSupply() (#1920)
MasterChef.updatePool(uint256) (#1897-1938) has external calls inside a loop: xray.mint(devaddr,xrayReward.div(10)) (#1922)
MasterChef.updatePool(uint256) (#1897-1938) has external calls inside a loop: xray.mint(address(this),xrayReward) (#1923)
MasterChef.updatePool(uint256) (#1897-1938) has external calls inside a loop: xrayReward = xray.maxSupply().sub(xray.totalSupply()) (#1926)
MasterChef.updatePool(uint256) (#1897-1938) has external calls inside a loop: xray.mint(address(this),xrayReward) (#1927)
Favor pull over push strategy for external calls.

Additional information: link

Reentrancy in Xray.swapAndLiquify() (#1391-1418):
External calls:
- swapTokensForEth(half) (#1405)
- swapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1430-1436)
- addLiquidity(otherHalf,newBalance) (#1414)
- swapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,lpEarner,block.timestamp) (#1445-1452)
External calls sending eth:
- feeAddr.transfer(address(this).balance.mul(20).div(100)) (#1408)
- addLiquidity(otherHalf,newBalance) (#1414)
- swapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,lpEarner,block.timestamp) (#1445-1452)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#1414)
- _allowances[owner][spender] = amount (#956)
Apply the check-effects-interactions pattern.

Additional information: link

renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#145-148)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#154-158)
name() should be declared external:
- BEP20.name() (#722-724)
decimals() should be declared external:
- BEP20.decimals() (#729-731)
symbol() should be declared external:
- BEP20.symbol() (#736-738)
maxSupply() should be declared external:
- BEP20.maxSupply() (#747-749)
transfer(address,uint256) should be declared external:
- BEP20.transfer(address,uint256) (#767-770)
allowance(address,address) should be declared external:
- BEP20.allowance(address,address) (#775-777)
approve(address,uint256) should be declared external:
- BEP20.approve(address,uint256) (#786-789)
transferFrom(address,address,uint256) should be declared external:
- BEP20.transferFrom(address,address,uint256) (#803-815)
increaseAllowance(address,uint256) should be declared external:
- BEP20.increaseAllowance(address,uint256) (#829-832)
decreaseAllowance(address,uint256) should be declared external:
- BEP20.decreaseAllowance(address,uint256) (#848-855)
mint(uint256) should be declared external:
- BEP20.mint(uint256) (#865-868)
mint(address,uint256) should be declared external:
- Xray.mint(address,uint256) (#1351-1353)
isExcludedFromAntiWhale(address) should be declared external:
- Xray.isExcludedFromAntiWhale(address) (#1465-1467)
updateTransferTaxRate(uint16) should be declared external:
- Xray.updateTransferTaxRate(uint16) (#1476-1480)
updateBurnFee(uint16) should be declared external:
- Xray.updateBurnFee(uint16) (#1486-1490)
updateMaxTransferAmountRate(uint16) should be declared external:
- Xray.updateMaxTransferAmountRate(uint16) (#1496-1501)
updateMinAmountToLiquify(uint256) should be declared external:
- Xray.updateMinAmountToLiquify(uint256) (#1507-1510)
setExcludedFromAntiWhale(address,bool) should be declared external:
- Xray.setExcludedFromAntiWhale(address,bool) (#1516-1519)
updateSwapAndLiquifyEnabled(bool) should be declared external:
- Xray.updateSwapAndLiquifyEnabled(bool) (#1525-1528)
updateSwapRouter(address) should be declared external:
- Xray.updateSwapRouter(address) (#1534-1540)
operator() should be declared external:
- Xray.operator() (#1562-1564)
transferOperator(address) should be declared external:
- Xray.transferOperator(address) (#1571-1575)
Use the external attribute for functions never called from the contract.

Additional information: link

Reentrancy in Xray._transfer(address,address,uint256) (#1356-1388):
External calls:
- swapAndLiquify() (#1365)
- swapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,lpEarner,block.timestamp) (#1445-1452)
- swapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1430-1436)
External calls sending eth:
- swapAndLiquify() (#1365)
- swapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,lpEarner,block.timestamp) (#1445-1452)
- feeAddr.transfer(address(this).balance.mul(20).div(100)) (#1408)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (#894)
- super._transfer(sender,recipient,amount) (#1371)
- Transfer(sender,recipient,amount) (#894)
- super._transfer(sender,burnAddr,burnAmount) (#1384)
- Transfer(sender,recipient,amount) (#894)
- super._transfer(sender,recipient,sendAmount) (#1386)
- Transfer(sender,recipient,amount) (#894)
- super._transfer(sender,address(this),liqAmount) (#1385)
Reentrancy in MasterChef.add(uint256,IBEP20,uint16,bool) (#1781-1816):
External calls:
- massUpdatePools() (#1792)
- xray.mint(devaddr,xrayReward.div(10)) (#1922)
- xray.mint(address(this),xrayReward) (#1923)
- xray.mint(address(this),xrayReward) (#1927)
Event emitted after the call(s):
- addPool(poolInfo.length - 1,address(_lpToken),_allocPoint,_depositFeeBP) (#1810-1815)
Reentrancy in MasterChef.deposit(uint256,uint256) (#1941-1975):
External calls:
- updatePool(_pid) (#1944)
- xray.mint(devaddr,xrayReward.div(10)) (#1922)
- xray.mint(address(this),xrayReward) (#1923)
- xray.mint(address(this),xrayReward) (#1927)
- safeXrayTransfer(msg.sender,pending) (#1952)
- transferSuccess = xray.transfer(_to,xrayBal) (#2021)
- transferSuccess = xray.transfer(_to,_amount) (#2023)
- pool.lpToken.safeTransferFrom(address(msg.sender),address(this),_amount) (#1957-1961)
- pool.lpToken.safeTransfer(feeAddress,depositFee) (#1965)
Event emitted after the call(s):
- Deposit(msg.sender,_pid,_amount) (#1974)
Reentrancy in MasterChef.emergencyWithdraw(uint256) (#1999-2014):
External calls:
- pool.lpToken.safeTransfer(address(msg.sender),amount) (#2005)
Event emitted after the call(s):
- EmergencyWithdraw(msg.sender,_pid,amount) (#2013)
Reentrancy in MasterChef.set(uint256,uint256,uint16,bool) (#1819-1841):
External calls:
- massUpdatePools() (#1827)
- xray.mint(devaddr,xrayReward.div(10)) (#1922)
- xray.mint(address(this),xrayReward) (#1923)
- xray.mint(address(this),xrayReward) (#1927)
Event emitted after the call(s):
- setPool(_pid,address(poolInfo[_pid].lpToken),_allocPoint,_depositFeeBP) (#1835-1840)
Reentrancy in Xray.swapAndLiquify() (#1391-1418):
External calls:
- swapTokensForEth(half) (#1405)
- swapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1430-1436)
- addLiquidity(otherHalf,newBalance) (#1414)
- swapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,lpEarner,block.timestamp) (#1445-1452)
External calls sending eth:
- feeAddr.transfer(address(this).balance.mul(20).div(100)) (#1408)
- addLiquidity(otherHalf,newBalance) (#1414)
- swapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,lpEarner,block.timestamp) (#1445-1452)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#957)
- addLiquidity(otherHalf,newBalance) (#1414)
- SwapAndLiquify(half,newBalance,otherHalf) (#1416)
Reentrancy in MasterChef.updateEmissionRate(uint256) (#2044-2049):
External calls:
- massUpdatePools() (#2046)
- xray.mint(devaddr,xrayReward.div(10)) (#1922)
- xray.mint(address(this),xrayReward) (#1923)
- xray.mint(address(this),xrayReward) (#1927)
Event emitted after the call(s):
- UpdateEmissionRate(msg.sender,_XrayPerSecond) (#2048)
Reentrancy in MasterChef.withdraw(uint256,uint256) (#1978-1996):
External calls:
- updatePool(_pid) (#1982)
- xray.mint(devaddr,xrayReward.div(10)) (#1922)
- xray.mint(address(this),xrayReward) (#1923)
- xray.mint(address(this),xrayReward) (#1927)
- safeXrayTransfer(msg.sender,pending) (#1987)
- transferSuccess = xray.transfer(_to,xrayBal) (#2021)
- transferSuccess = xray.transfer(_to,_amount) (#2023)
- pool.lpToken.safeTransfer(address(msg.sender),_amount) (#1991)
Event emitted after the call(s):
- Withdraw(msg.sender,_pid,_amount) (#1995)
Apply the check-effects-interactions pattern.

Additional information: link

MasterChef.add(uint256,IBEP20,uint16,bool) (#1781-1816) uses timestamp for comparisons
Dangerous comparisons:
- block.timestamp > startTime (#1794-1796)
MasterChef.pendingXray(uint256,address) (#1853-1886) uses timestamp for comparisons
Dangerous comparisons:
- block.timestamp > pool.lastRewardSecond && pool.lpSupply != 0 && totalAllocPoint > 0 (#1862-1864)
- totalRewards > xray.maxSupply() (#1878)
MasterChef.massUpdatePools() (#1889-1894) uses timestamp for comparisons
Dangerous comparisons:
- pid < length (#1891)
MasterChef.updatePool(uint256) (#1897-1938) uses timestamp for comparisons
Dangerous comparisons:
- block.timestamp <= pool.lastRewardSecond (#1899)
- totalRewards <= xray.maxSupply() (#1920)
- xrayReward != 0 (#1930)
MasterChef.updateStartTime(uint256) (#2052-2069) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp < startTime,cannot change start time if farm has already started) (#2053-2056)
- require(bool,string)(block.timestamp < _newStartTime,cannot set start time in the past) (#2057-2060)
Avoid relying on block.timestamp.

Additional information: link

Address.isContract(address) (#491-500) uses assembly
- INLINE ASM (#498)
Address._verifyCallResult(bool,bytes,string) (#636-653) uses assembly
- INLINE ASM (#645-648)
Do not use evm assembly.

Additional information: link

Xray._transfer(address,address,uint256) (#1356-1388) compares to a boolean constant:
-swapAndLiquifyEnabled == true && _inSwapAndLiquify == false && address(swapRouter) != address(0) && swapPair != address(0) && sender != swapPair && sender != owner() (#1359-1364)
Xray.antiWhale(address,address,uint256) (#1310-1320) compares to a boolean constant:
-_excludedFromAntiWhale[sender] == false && _excludedFromAntiWhale[recipient] == false (#1313-1314)
MasterChef.nonDuplicated(IBEP20) (#1775-1778) compares to a boolean constant:
-require(bool,string)(poolExistence[_lpToken] == false,nonDuplicated: duplicated) (#1776)
Remove the equality to the boolean constant.

Additional information: link

Address.functionCall(address,bytes) (#544-546) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#569-571) is never used and should be removed
Address.functionDelegateCall(address,bytes) (#618-620) is never used and should be removed
Address.functionDelegateCall(address,bytes,string) (#628-634) is never used and should be removed
Address.functionStaticCall(address,bytes) (#594-596) is never used and should be removed
Address.functionStaticCall(address,bytes,string) (#604-610) is never used and should be removed
Address.sendValue(address,uint256) (#518-524) is never used and should be removed
BEP20._burn(address,uint256) (#927-933) is never used and should be removed
BEP20._burnFrom(address,uint256) (#966-973) is never used and should be removed
Context._msgData() (#90-93) is never used and should be removed
SafeBEP20._callOptionalReturn(IBEP20,bytes) (#58-68) is never used and should be removed
SafeBEP20.safeApprove(IBEP20,address,uint256) (#31-40) is never used and should be removed
SafeBEP20.safeDecreaseAllowance(IBEP20,address,uint256) (#47-50) is never used and should be removed
SafeBEP20.safeIncreaseAllowance(IBEP20,address,uint256) (#42-45) is never used and should be removed
SafeBEP20.safeTransfer(IBEP20,address,uint256) (#16-18) is never used and should be removed
SafeBEP20.safeTransferFrom(IBEP20,address,address,uint256) (#20-22) is never used and should be removed
SafeERC20.safeApprove(IBEP20,address,uint256) (#1617-1631) is never used and should be removed
SafeERC20.safeDecreaseAllowance(IBEP20,address,uint256) (#1642-1652) is never used and should be removed
SafeERC20.safeIncreaseAllowance(IBEP20,address,uint256) (#1633-1640) is never used and should be removed
SafeMath.div(uint256,uint256,string) (#443-446) is never used and should be removed
SafeMath.mod(uint256,uint256) (#405-408) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#463-466) is never used and should be removed
SafeMath.tryAdd(uint256,uint256) (#277-281) is never used and should be removed
SafeMath.tryDiv(uint256,uint256) (#313-316) is never used and should be removed
SafeMath.tryMod(uint256,uint256) (#323-326) is never used and should be removed
SafeMath.tryMul(uint256,uint256) (#298-306) is never used and should be removed
SafeMath.trySub(uint256,uint256) (#288-291) is never used and should be removed
Remove unused functions.

Additional information: link

Xray.liqFee (#1248) is set pre-construction with a non-constant function or state variable:
- 100 - burnFee
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) (#518-524):
- (success) = recipient.call{value: amount}() (#522)
Low level call in Address.functionCallWithValue(address,bytes,uint256,string) (#579-586):
- (success,returndata) = target.call{value: value}(data) (#584)
Low level call in Address.functionStaticCall(address,bytes,string) (#604-610):
- (success,returndata) = target.staticcall(data) (#608)
Low level call in Address.functionDelegateCall(address,bytes,string) (#628-634):
- (success,returndata) = target.delegatecall(data) (#632)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

Function IUniswapV2Router01.WETH() (#978) is not in mixedCase
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#1126) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#1127) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#1144) is not in mixedCase
Parameter Xray.mint(address,uint256)._to (#1351) is not in mixedCase
Parameter Xray.mint(address,uint256)._amount (#1351) is not in mixedCase
Parameter Xray.isExcludedFromAntiWhale(address)._account (#1465) is not in mixedCase
Parameter Xray.updateTransferTaxRate(uint16)._transferTaxRate (#1476) is not in mixedCase
Parameter Xray.updateBurnFee(uint16)._burnFee (#1486) is not in mixedCase
Parameter Xray.updateMaxTransferAmountRate(uint16)._maxTransferAmountRate (#1496) is not in mixedCase
Parameter Xray.updateMinAmountToLiquify(uint256)._minAmount (#1507) is not in mixedCase
Parameter Xray.setExcludedFromAntiWhale(address,bool)._account (#1516) is not in mixedCase
Parameter Xray.setExcludedFromAntiWhale(address,bool)._excluded (#1516) is not in mixedCase
Parameter Xray.updateSwapAndLiquifyEnabled(bool)._enabled (#1525) is not in mixedCase
Parameter Xray.updateSwapRouter(address)._router (#1534) is not in mixedCase
Parameter Xray.setNoTaxSenderAddr(address,bool)._noTaxSenderAddr (#1547) is not in mixedCase
Parameter Xray.setNoTaxSenderAddr(address,bool)._value (#1547) is not in mixedCase
Parameter Xray.setNoTaxRecipientAddr(address,bool)._noTaxRecipientAddr (#1552) is not in mixedCase
Parameter Xray.setNoTaxRecipientAddr(address,bool)._value (#1552) is not in mixedCase
Constant Xray.maxTaxRate (#1251) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Xray.feeAddr (#1254) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Xray.burnAddr (#1257) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Xray.lpEarner (#1290) is not in UPPER_CASE_WITH_UNDERSCORES
Event MasterChefaddPool(uint256,address,uint256,uint256) (#1742-1747) is not in CapWords
Event MasterChefsetPool(uint256,address,uint256,uint256) (#1748-1753) is not in CapWords
Parameter MasterChef.add(uint256,IBEP20,uint16,bool)._allocPoint (#1782) is not in mixedCase
Parameter MasterChef.add(uint256,IBEP20,uint16,bool)._lpToken (#1783) is not in mixedCase
Parameter MasterChef.add(uint256,IBEP20,uint16,bool)._depositFeeBP (#1784) is not in mixedCase
Parameter MasterChef.add(uint256,IBEP20,uint16,bool)._withUpdate (#1785) is not in mixedCase
Parameter MasterChef.set(uint256,uint256,uint16,bool)._pid (#1820) is not in mixedCase
Parameter MasterChef.set(uint256,uint256,uint16,bool)._allocPoint (#1821) is not in mixedCase
Parameter MasterChef.set(uint256,uint256,uint16,bool)._depositFeeBP (#1822) is not in mixedCase
Parameter MasterChef.set(uint256,uint256,uint16,bool)._withUpdate (#1823) is not in mixedCase
Parameter MasterChef.getMultiplier(uint256,uint256)._from (#1844) is not in mixedCase
Parameter MasterChef.getMultiplier(uint256,uint256)._to (#1844) is not in mixedCase
Parameter MasterChef.pendingXray(uint256,address)._pid (#1853) is not in mixedCase
Parameter MasterChef.pendingXray(uint256,address)._user (#1853) is not in mixedCase
Parameter MasterChef.updatePool(uint256)._pid (#1897) is not in mixedCase
Parameter MasterChef.deposit(uint256,uint256)._pid (#1941) is not in mixedCase
Parameter MasterChef.deposit(uint256,uint256)._amount (#1941) is not in mixedCase
Parameter MasterChef.withdraw(uint256,uint256)._pid (#1978) is not in mixedCase
Parameter MasterChef.withdraw(uint256,uint256)._amount (#1978) is not in mixedCase
Parameter MasterChef.emergencyWithdraw(uint256)._pid (#1999) is not in mixedCase
Parameter MasterChef.safeXrayTransfer(address,uint256)._to (#2017) is not in mixedCase
Parameter MasterChef.safeXrayTransfer(address,uint256)._amount (#2017) is not in mixedCase
Parameter MasterChef.setDevAddress(address)._devaddr (#2029) is not in mixedCase
Parameter MasterChef.setFeeAddress(address)._feeAddress (#2036) is not in mixedCase
Parameter MasterChef.updateEmissionRate(uint256)._XrayPerSecond (#2044) is not in mixedCase
Parameter MasterChef.updateStartTime(uint256)._newStartTime (#2052) is not in mixedCase
Variable MasterChef.XrayPerSecond (#1717) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (#91)" inContext (#85-94)
Remove redundant statements if they congest code but offer no value.

Additional information: link

Reentrancy in Xray._transfer(address,address,uint256) (#1356-1388):
External calls:
- swapAndLiquify() (#1365)
- feeAddr.transfer(address(this).balance.mul(20).div(100)) (#1408)
External calls sending eth:
- swapAndLiquify() (#1365)
- swapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,lpEarner,block.timestamp) (#1445-1452)
- feeAddr.transfer(address(this).balance.mul(20).div(100)) (#1408)
State variables written after the call(s):
- super._transfer(sender,recipient,amount) (#1371)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#892)
- _balances[recipient] = _balances[recipient].add(amount) (#893)
- super._transfer(sender,burnAddr,burnAmount) (#1384)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#892)
- _balances[recipient] = _balances[recipient].add(amount) (#893)
- super._transfer(sender,address(this),liqAmount) (#1385)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#892)
- _balances[recipient] = _balances[recipient].add(amount) (#893)
- super._transfer(sender,recipient,sendAmount) (#1386)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#892)
- _balances[recipient] = _balances[recipient].add(amount) (#893)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (#894)
- super._transfer(sender,recipient,sendAmount) (#1386)
- Transfer(sender,recipient,amount) (#894)
- super._transfer(sender,address(this),liqAmount) (#1385)
- Transfer(sender,recipient,amount) (#894)
- super._transfer(sender,recipient,amount) (#1371)
- Transfer(sender,recipient,amount) (#894)
- super._transfer(sender,burnAddr,burnAmount) (#1384)
Reentrancy in Xray.swapAndLiquify() (#1391-1418):
External calls:
- feeAddr.transfer(address(this).balance.mul(20).div(100)) (#1408)
External calls sending eth:
- feeAddr.transfer(address(this).balance.mul(20).div(100)) (#1408)
- addLiquidity(otherHalf,newBalance) (#1414)
- swapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,lpEarner,block.timestamp) (#1445-1452)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#1414)
- _allowances[owner][spender] = amount (#956)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#957)
- addLiquidity(otherHalf,newBalance) (#1414)
- SwapAndLiquify(half,newBalance,otherHalf) (#1416)
Apply the check-effects-interactions pattern.

Additional information: link

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

Additional information: link

Xray.slitherConstructorConstantVariables() (#1239-1577) uses literals with too many digits:
- burnAddr = 0x000000000000000000000000000000000000dEaD (#1257)
Xray.slitherConstructorConstantVariables() (#1239-1577) uses literals with too many digits:
- lpEarner = 0x000000000000000000000000000000000000dEaD (#1290)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

Holders:


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.


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


Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.


Token is deployed only at one blockchain

Contract has 5% buy tax and 4% sell tax.
Taxes are low and contract ownership is renounced.


Unable to find Telegram and Twitter accounts


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

Price for XRAY