SHG GEAR Token Logo

SGEAR [SHG GEAR] Token

About SGEAR

Listings

Not Found
Token 2 years

Website

Not Found

Description

Not Found

Social

Not Found

Laser Scorebeta Last Audit: 21 August 2022

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

SHGGEAR.addLiquidity(uint256,uint256) (#944-958) sends eth to arbitrary user
Dangerous calls:
- (liquidity) = hashSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#949-956)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in SHGGEAR._transfer(address,address,uint256) (#812-854):
External calls:
- swapAndLiquifyBuyBack() (#823)
- address(marketingFeeReceiver).sendValue(address(this).balance) (#884)
- (success) = recipient.call{value: amount}() (#319)
- (liquidity) = hashSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#949-956)
- hashSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#926-932)
- hashSwapRouter.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokens,0,path,deadWallet,block.timestamp.add(300)) (#896-902)
External calls sending eth:
- swapAndLiquifyBuyBack() (#823)
- (liquidity) = hashSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#949-956)
- (success) = recipient.call{value: amount}() (#319)
State variables written after the call(s):
- super._transfer(sender,address(this),amount) (#832)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#659)
- _balances[recipient] = _balances[recipient].add(amount) (#660)
- super._transfer(sender,address(this),sellTaxAmount) (#836)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#659)
- _balances[recipient] = _balances[recipient].add(amount) (#660)
- super._transfer(sender,recipient,sellSendAmount) (#838)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#659)
- _balances[recipient] = _balances[recipient].add(amount) (#660)
- super._transfer(sender,recipient,amount) (#843)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#659)
- _balances[recipient] = _balances[recipient].add(amount) (#660)
- super._transfer(sender,address(this),taxAmount) (#849)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#659)
- _balances[recipient] = _balances[recipient].add(amount) (#660)
- super._transfer(sender,recipient,sendAmount) (#850)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#659)
- _balances[recipient] = _balances[recipient].add(amount) (#660)
Reentrancy in SHGGEAR.swapAndLiquifyBuyBack() (#856-880):
External calls:
- BuybackBurn(buybackTokens) (#862)
- hashSwapRouter.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokens,0,path,deadWallet,block.timestamp.add(300)) (#896-902)
- payMarketing(marketingTokens) (#866)
- address(marketingFeeReceiver).sendValue(address(this).balance) (#884)
- (success) = recipient.call{value: amount}() (#319)
- hashSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#926-932)
External calls sending eth:
- payMarketing(marketingTokens) (#866)
- (success) = recipient.call{value: amount}() (#319)
State variables written after the call(s):
- super._transfer(address(this),deadWallet,burningTokens) (#870)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#659)
- _balances[recipient] = _balances[recipient].add(amount) (#660)
Apply the check-effects-interactions pattern.

Additional information: link

SHGGEAR.recoverWrongTokens(address,uint256) (#936-942) ignores return value by IBEP20(_tokenAddress).transfer(address(msg.sender),_tokenAmount) (#939)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.

Additional information: link


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

SHGGEAR._writeCheckpoint(address,uint32,uint256,uint256) (#1217-1235) uses a dangerous strict equality:
- nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber (#1227)
MasterChefTEST.updatePool(uint256) (#1405-1424) uses a dangerous strict equality:
- lpSupply == 0 || pool.allocPoint == 0 (#1414)
Don't use strict equality to determine if an account has enough Ether or tokens.

Additional information: link


Combination 1: Reentrancy vulnerabilities + Functions that send Ether to arbitraty destination. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.


Combination 2: Unchecked transfer + Functions that send Ether to arbitraty destination. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.


Combination 3: Reentrancy vulnerabilities + Unchecked transfer vulnerability. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.


Contract ownership is not renounced (belongs to a wallet)

MasterChefTEST.pendingXhash(uint256,address) (#1380-1394) performs a multiplication on the result of a division:
-xhashReward = multiplier.mul(xhashPerBlock).mul(pool.allocPoint).div(totalAllocPoint) (#1390)
-accXhashPerShare = accXhashPerShare.add(xhashReward.mul(1e12).div(lpSupply)) (#1391)
MasterChefTEST.updatePool(uint256) (#1405-1424) performs a multiplication on the result of a division:
-xhashReward = multiplier.mul(xhashPerBlock).mul(pool.allocPoint).div(totalAllocPoint) (#1419)
-pool.accXhashPerShare = pool.accXhashPerShare.add(xhashReward.mul(1e12).div(lpSupply)) (#1422)
Consider ordering multiplication before division.

Additional information: link

Reentrancy in MasterChefTEST.add(uint256,IBEP20,uint16,uint256,bool) (#1342-1359):
External calls:
- massUpdatePools() (#1345)
- sgear.mint(devaddr,xhashReward.div(10)) (#1420)
- sgear.mint(address(this),xhashReward) (#1421)
State variables written after the call(s):
- poolExistence[_lpToken] = true (#1349)
- poolInfo.push(PoolInfo(_lpToken,_allocPoint,lastRewardBlock,0,_depositFeeBP,0,_blockTimePeriod)) (#1350-1358)
- totalAllocPoint = totalAllocPoint.add(_allocPoint) (#1348)
Reentrancy in MasterChefTEST.deposit(uint256,uint256) (#1427-1453):
External calls:
- updatePool(_pid) (#1430)
- sgear.mint(devaddr,xhashReward.div(10)) (#1420)
- sgear.mint(address(this),xhashReward) (#1421)
- safeXhashTransfer(msg.sender,pending) (#1434)
- transferSuccess = sgear.transfer(_to,xhashBal) (#1496)
- transferSuccess = sgear.transfer(_to,_amount) (#1498)
- pool.lpToken.safeTransferFrom(address(msg.sender),address(this),_amount) (#1438)
- pool.lpToken.safeTransfer(feeAddress,depositFee) (#1441)
State variables written after the call(s):
- pool.amount = pool.amount.add(_amount).sub(depositFee) (#1444)
- user.amount = user.amount.add(_amount).sub(depositFee) (#1442)
- user.lastDepositBlock = block.number (#1443)
- user.rewardDebt = user.amount.mul(pool.accXhashPerShare).div(1e12) (#1451)
Reentrancy in MasterChefTEST.deposit(uint256,uint256) (#1427-1453):
External calls:
- updatePool(_pid) (#1430)
- sgear.mint(devaddr,xhashReward.div(10)) (#1420)
- sgear.mint(address(this),xhashReward) (#1421)
- safeXhashTransfer(msg.sender,pending) (#1434)
- transferSuccess = sgear.transfer(_to,xhashBal) (#1496)
- transferSuccess = sgear.transfer(_to,_amount) (#1498)
- pool.lpToken.safeTransferFrom(address(msg.sender),address(this),_amount) (#1438)
State variables written after the call(s):
- pool.amount = pool.amount.add(_amount) (#1448)
- user.amount = user.amount.add(_amount) (#1446)
- user.lastDepositBlock = block.number (#1447)
Reentrancy in MasterChefTEST.emergencyWithdraw(uint256) (#1480-1489):
External calls:
- pool.lpToken.safeTransfer(address(msg.sender),user.amount) (#1484)
State variables written after the call(s):
- pool.amount = pool.amount.sub(amount) (#1488)
- user.amount = 0 (#1486)
- user.rewardDebt = 0 (#1487)
Reentrancy in MasterChefTEST.set(uint256,uint256,uint16,uint256,bool) (#1362-1372):
External calls:
- massUpdatePools() (#1365)
- sgear.mint(devaddr,xhashReward.div(10)) (#1420)
- sgear.mint(address(this),xhashReward) (#1421)
State variables written after the call(s):
- poolInfo[_pid].allocPoint = _allocPoint (#1368)
- poolInfo[_pid].depositFeeBP = _depositFeeBP (#1369)
- poolInfo[_pid].blockTimePeriod = _blockTimePeriod (#1370)
- totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint) (#1367)
Reentrancy in MasterChefTEST.updateEmissionRate(uint256) (#1522-1526):
External calls:
- massUpdatePools() (#1523)
- sgear.mint(devaddr,xhashReward.div(10)) (#1420)
- sgear.mint(address(this),xhashReward) (#1421)
State variables written after the call(s):
- xhashPerBlock = _xhashPerBlock (#1525)
Reentrancy in MasterChefTEST.updatePool(uint256) (#1405-1424):
External calls:
- sgear.mint(devaddr,xhashReward.div(10)) (#1420)
- sgear.mint(address(this),xhashReward) (#1421)
State variables written after the call(s):
- pool.accXhashPerShare = pool.accXhashPerShare.add(xhashReward.mul(1e12).div(lpSupply)) (#1422)
- pool.lastRewardBlock = block.number (#1423)
Reentrancy in MasterChefTEST.withdraw(uint256,uint256) (#1456-1477):
External calls:
- updatePool(_pid) (#1465)
- sgear.mint(devaddr,xhashReward.div(10)) (#1420)
- sgear.mint(address(this),xhashReward) (#1421)
- safeXhashTransfer(msg.sender,pending) (#1468)
- transferSuccess = sgear.transfer(_to,xhashBal) (#1496)
- transferSuccess = sgear.transfer(_to,_amount) (#1498)
State variables written after the call(s):
- pool.amount = pool.amount.sub(_amount) (#1472)
- user.amount = user.amount.sub(_amount) (#1471)
Reentrancy in MasterChefTEST.withdraw(uint256,uint256) (#1456-1477):
External calls:
- updatePool(_pid) (#1465)
- sgear.mint(devaddr,xhashReward.div(10)) (#1420)
- sgear.mint(address(this),xhashReward) (#1421)
- safeXhashTransfer(msg.sender,pending) (#1468)
- transferSuccess = sgear.transfer(_to,xhashBal) (#1496)
- transferSuccess = sgear.transfer(_to,_amount) (#1498)
- pool.lpToken.safeTransfer(address(msg.sender),_amount) (#1473)
State variables written after the call(s):
- user.rewardDebt = user.amount.mul(pool.accXhashPerShare).div(1e12) (#1475)
Apply the check-effects-interactions pattern.

Additional information: link

BEP20.allowance(address,address).owner (#620) shadows:
- Ownable.owner() (#471-473) (function)
BEP20._approve(address,address,uint256).owner (#683) shadows:
- Ownable.owner() (#471-473) (function)
Rename the local variables that shadow another component.

Additional information: link

SHGGEAR.setTxFees(uint256) (#995-998) should emit an event for:
- transferTaxRate = _transactionFee (#996)
SHGGEAR.setSellFees(uint256,uint256,uint256,uint256) (#1000-1007) should emit an event for:
- liquiditySellFee = _liquiditySellFee (#1001)
- buybackSellFee = _buybackSellFee (#1002)
- marketingSellFee = _marketingSellFee (#1003)
- burnSellFee = _burnSellFee (#1004)
- sellTaxRate = liquiditySellFee.add(buybackSellFee).add(marketingSellFee).add(burnSellFee) (#1005)
MasterChefTEST.add(uint256,IBEP20,uint16,uint256,bool) (#1342-1359) should emit an event for:
- totalAllocPoint = totalAllocPoint.add(_allocPoint) (#1348)
MasterChefTEST.set(uint256,uint256,uint16,uint256,bool) (#1362-1372) should emit an event for:
- totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint) (#1367)
Emit an event for critical parameter changes.

Additional information: link

SHGGEAR.setMarketingWallet(address).wallet (#770) lacks a zero-check on :
- marketingFeeReceiver = wallet (#771)
MasterChefTEST.dev(address)._devaddr (#1504) lacks a zero-check on :
- devaddr = _devaddr (#1506)
MasterChefTEST.fee(address)._feeAddress (#1510) lacks a zero-check on :
- feeAddress = _feeAddress (#1512)
Check that the address is not zero.

Additional information: link

MasterChefTEST.updatePool(uint256) (#1405-1424) has external calls inside a loop: lpSupply = pool.lpToken.balanceOf(address(this)) (#1410)
MasterChefTEST.updatePool(uint256) (#1405-1424) has external calls inside a loop: sgear.mint(devaddr,xhashReward.div(10)) (#1420)
MasterChefTEST.updatePool(uint256) (#1405-1424) has external calls inside a loop: sgear.mint(address(this),xhashReward) (#1421)
Favor pull over push strategy for external calls.

Additional information: link

Reentrancy in SHGGEAR.constructor() (#749-766):
External calls:
- _hashSwapPair = IUniswapV2Factory(_hashSwapRouter.factory()).createPair(address(this),_hashSwapRouter.WETH()) (#756-757)
State variables written after the call(s):
- _mint(owner(),1759000000000000000000) (#764)
- MAXCAP = MAXCAP.add(amount) (#669)
- _mint(owner(),1759000000000000000000) (#764)
- _balances[account] = _balances[account].add(amount) (#670)
- setExcludeFromFees(owner(),true) (#762)
- _excludedFromFees[_account] = _excluded (#971)
- setExcludeFromFees(address(this),true) (#763)
- _excludedFromFees[_account] = _excluded (#971)
- _mint(owner(),1759000000000000000000) (#764)
- _totalSupply = _totalSupply.add(amount) (#668)
- hashSwapPair = _hashSwapPair (#760)
- hashSwapRouter = _hashSwapRouter (#759)
Reentrancy in SHGGEAR.swapAndLiquify(uint256) (#905-916):
External calls:
- swapTokensForEth(half) (#911)
- hashSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#926-932)
- addLiquidity(otherHalf,newBalance) (#914)
- (liquidity) = hashSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#949-956)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#914)
- (liquidity) = hashSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#949-956)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#914)
- _allowances[owner][spender] = amount (#687)
Reentrancy in SHGGEAR.swapAndLiquifyBuyBack() (#856-880):
External calls:
- BuybackBurn(buybackTokens) (#862)
- hashSwapRouter.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokens,0,path,deadWallet,block.timestamp.add(300)) (#896-902)
- payMarketing(marketingTokens) (#866)
- address(marketingFeeReceiver).sendValue(address(this).balance) (#884)
- (success) = recipient.call{value: amount}() (#319)
- hashSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#926-932)
External calls sending eth:
- payMarketing(marketingTokens) (#866)
- (success) = recipient.call{value: amount}() (#319)
State variables written after the call(s):
- payMarketing(marketingTokens) (#866)
- _allowances[owner][spender] = amount (#687)
Reentrancy in SHGGEAR.swapAndLiquifyBuyBack() (#856-880):
External calls:
- BuybackBurn(buybackTokens) (#862)
- hashSwapRouter.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokens,0,path,deadWallet,block.timestamp.add(300)) (#896-902)
- payMarketing(marketingTokens) (#866)
- address(marketingFeeReceiver).sendValue(address(this).balance) (#884)
- (success) = recipient.call{value: amount}() (#319)
- hashSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#926-932)
- swapAndLiquify(liquidityTokens) (#874)
- (liquidity) = hashSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#949-956)
- hashSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#926-932)
External calls sending eth:
- payMarketing(marketingTokens) (#866)
- (success) = recipient.call{value: amount}() (#319)
- swapAndLiquify(liquidityTokens) (#874)
- (liquidity) = hashSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#949-956)
State variables written after the call(s):
- swapAndLiquify(liquidityTokens) (#874)
- _allowances[owner][spender] = amount (#687)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in SHGGEAR._transfer(address,address,uint256) (#812-854):
External calls:
- swapAndLiquifyBuyBack() (#823)
- address(marketingFeeReceiver).sendValue(address(this).balance) (#884)
- (success) = recipient.call{value: amount}() (#319)
- (liquidity) = hashSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#949-956)
- hashSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#926-932)
- hashSwapRouter.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokens,0,path,deadWallet,block.timestamp.add(300)) (#896-902)
External calls sending eth:
- swapAndLiquifyBuyBack() (#823)
- (liquidity) = hashSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#949-956)
- (success) = recipient.call{value: amount}() (#319)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (#661)
- super._transfer(sender,recipient,sellSendAmount) (#838)
- Transfer(sender,recipient,amount) (#661)
- super._transfer(sender,recipient,amount) (#843)
- Transfer(sender,recipient,amount) (#661)
- super._transfer(sender,address(this),taxAmount) (#849)
- Transfer(sender,recipient,amount) (#661)
- super._transfer(sender,recipient,sendAmount) (#850)
- Transfer(sender,recipient,amount) (#661)
- super._transfer(sender,address(this),sellTaxAmount) (#836)
- Transfer(sender,recipient,amount) (#661)
- super._transfer(sender,address(this),amount) (#832)
Reentrancy in SHGGEAR.constructor() (#749-766):
External calls:
- _hashSwapPair = IUniswapV2Factory(_hashSwapRouter.factory()).createPair(address(this),_hashSwapRouter.WETH()) (#756-757)
Event emitted after the call(s):
- ExcludeFromFees(_account,_excluded) (#973)
- setExcludeFromFees(owner(),true) (#762)
- ExcludeFromFees(_account,_excluded) (#973)
- setExcludeFromFees(address(this),true) (#763)
- Transfer(address(0),account,amount) (#671)
- _mint(owner(),1759000000000000000000) (#764)
Reentrancy in MasterChefTEST.deposit(uint256,uint256) (#1427-1453):
External calls:
- updatePool(_pid) (#1430)
- sgear.mint(devaddr,xhashReward.div(10)) (#1420)
- sgear.mint(address(this),xhashReward) (#1421)
- safeXhashTransfer(msg.sender,pending) (#1434)
- transferSuccess = sgear.transfer(_to,xhashBal) (#1496)
- transferSuccess = sgear.transfer(_to,_amount) (#1498)
- pool.lpToken.safeTransferFrom(address(msg.sender),address(this),_amount) (#1438)
- pool.lpToken.safeTransfer(feeAddress,depositFee) (#1441)
Event emitted after the call(s):
- Deposit(msg.sender,_pid,_amount) (#1452)
Reentrancy in MasterChefTEST.emergencyWithdraw(uint256) (#1480-1489):
External calls:
- pool.lpToken.safeTransfer(address(msg.sender),user.amount) (#1484)
Event emitted after the call(s):
- EmergencyWithdraw(msg.sender,_pid,user.amount) (#1485)
Reentrancy in SHGGEAR.recoverWrongTokens(address,uint256) (#936-942):
External calls:
- IBEP20(_tokenAddress).transfer(address(msg.sender),_tokenAmount) (#939)
Event emitted after the call(s):
- AdminTokenRecovery(_tokenAddress,_tokenAmount) (#941)
Reentrancy in SHGGEAR.swapAndLiquify(uint256) (#905-916):
External calls:
- swapTokensForEth(half) (#911)
- hashSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#926-932)
- addLiquidity(otherHalf,newBalance) (#914)
- (liquidity) = hashSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#949-956)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#914)
- (liquidity) = hashSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#949-956)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#688)
- addLiquidity(otherHalf,newBalance) (#914)
- SwapAndLiquify(half,newBalance,otherHalf) (#915)
Reentrancy in SHGGEAR.swapAndLiquifyBuyBack() (#856-880):
External calls:
- BuybackBurn(buybackTokens) (#862)
- hashSwapRouter.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokens,0,path,deadWallet,block.timestamp.add(300)) (#896-902)
- payMarketing(marketingTokens) (#866)
- address(marketingFeeReceiver).sendValue(address(this).balance) (#884)
- (success) = recipient.call{value: amount}() (#319)
- hashSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#926-932)
External calls sending eth:
- payMarketing(marketingTokens) (#866)
- (success) = recipient.call{value: amount}() (#319)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#688)
- payMarketing(marketingTokens) (#866)
- Transfer(sender,recipient,amount) (#661)
- super._transfer(address(this),deadWallet,burningTokens) (#870)
Reentrancy in SHGGEAR.swapAndLiquifyBuyBack() (#856-880):
External calls:
- BuybackBurn(buybackTokens) (#862)
- hashSwapRouter.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokens,0,path,deadWallet,block.timestamp.add(300)) (#896-902)
- payMarketing(marketingTokens) (#866)
- address(marketingFeeReceiver).sendValue(address(this).balance) (#884)
- (success) = recipient.call{value: amount}() (#319)
- hashSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#926-932)
- swapAndLiquify(liquidityTokens) (#874)
- (liquidity) = hashSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#949-956)
- hashSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#926-932)
External calls sending eth:
- payMarketing(marketingTokens) (#866)
- (success) = recipient.call{value: amount}() (#319)
- swapAndLiquify(liquidityTokens) (#874)
- (liquidity) = hashSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#949-956)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#688)
- swapAndLiquify(liquidityTokens) (#874)
- SwapAndLiquify(half,newBalance,otherHalf) (#915)
- swapAndLiquify(liquidityTokens) (#874)
Reentrancy in MasterChefTEST.updateEmissionRate(uint256) (#1522-1526):
External calls:
- massUpdatePools() (#1523)
- sgear.mint(devaddr,xhashReward.div(10)) (#1420)
- sgear.mint(address(this),xhashReward) (#1421)
Event emitted after the call(s):
- EmissionRateUpdated(msg.sender,xhashPerBlock,_xhashPerBlock) (#1524)
Reentrancy in MasterChefTEST.withdraw(uint256,uint256) (#1456-1477):
External calls:
- updatePool(_pid) (#1465)
- sgear.mint(devaddr,xhashReward.div(10)) (#1420)
- sgear.mint(address(this),xhashReward) (#1421)
- safeXhashTransfer(msg.sender,pending) (#1468)
- transferSuccess = sgear.transfer(_to,xhashBal) (#1496)
- transferSuccess = sgear.transfer(_to,_amount) (#1498)
- pool.lpToken.safeTransfer(address(msg.sender),_amount) (#1473)
Event emitted after the call(s):
- Withdraw(msg.sender,_pid,_amount) (#1476)
Reentrancy in SHGGEAR.withdrawBNB(address,uint256) (#1009-1016):
External calls:
- address(_to).sendValue(_amount) (#1014)
Event emitted after the call(s):
- BNBWithdrawn(msg.sender,_to,_amount) (#1015)
Apply the check-effects-interactions pattern.

Additional information: link

SHGGEAR.addLiquidity(uint256,uint256) (#944-958) uses timestamp for comparisons
Dangerous comparisons:
- require(bool)(liquidity > 0) (#957)
SHGGEAR.delegateBySig(address,uint256,uint256,uint8,bytes32,bytes32) (#1083-1124) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp <= expiry,TOKEN::delegateBySig: signature expired) (#1122)
Avoid relying on block.timestamp.

Additional information: link

Address.isContract(address) (#310-314) uses assembly
- INLINE ASM (#312)
Address._verifyCallResult(bool,bytes,string) (#365-378) uses assembly
- INLINE ASM (#370-373)
SHGGEAR.getChainId() (#1242-1246) uses assembly
- INLINE ASM (#1244)
Do not use evm assembly.

Additional information: link

SHGGEAR._transfer(address,address,uint256) (#812-854) compares to a boolean constant:
-swapAndLiquifyEnabled == true && _inSwapAndLiquify == false && address(hashSwapRouter) != address(0) && hashSwapPair != address(0) && sender != hashSwapPair && sender != owner() && recipient != owner() (#815-821)
MasterChefTEST.nonDuplicated(IBEP20) (#1335-1338) compares to a boolean constant:
-require(bool,string)(poolExistence[_lpToken] == false,nonDuplicated: duplicated) (#1336)
Remove the equality to the boolean constant.

Additional information: link

Address.functionCall(address,bytes) (#323-325) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#331-333) is never used and should be removed
Address.functionDelegateCall(address,bytes) (#354-356) is never used and should be removed
Address.functionDelegateCall(address,bytes,string) (#358-363) is never used and should be removed
Address.functionStaticCall(address,bytes) (#343-345) is never used and should be removed
Address.functionStaticCall(address,bytes,string) (#347-352) is never used and should be removed
BEP20._burnFrom(address,uint256) (#691-694) is never used and should be removed
Context._msgData() (#453-456) is never used and should be removed
SafeBEP20.safeApprove(IBEP20,address,uint256) (#403-413) is never used and should be removed
SafeBEP20.safeDecreaseAllowance(IBEP20,address,uint256) (#424-434) is never used and should be removed
SafeBEP20.safeIncreaseAllowance(IBEP20,address,uint256) (#415-422) is never used and should be removed
SafeMath.min(uint256,uint256) (#71-73) is never used and should be removed
SafeMath.mod(uint256,uint256) (#62-64) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#66-69) is never used and should be removed
SafeMath.sqrt(uint256) (#76-87) is never used and should be removed
Remove unused functions.

Additional information: link

SHGGEAR.sellTaxRate (#713) is set pre-construction with a non-constant function or state variable:
- liquiditySellFee.add(buybackSellFee).add(marketingSellFee).add(burnSellFee)
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) (#316-321):
- (success) = recipient.call{value: amount}() (#319)
Low level call in Address.functionCallWithValue(address,bytes,uint256,string) (#335-341):
- (success,returndata) = target.call{value: value}(data) (#339)
Low level call in Address.functionStaticCall(address,bytes,string) (#347-352):
- (success,returndata) = target.staticcall(data) (#350)
Low level call in Address.functionDelegateCall(address,bytes,string) (#358-363):
- (success,returndata) = target.delegatecall(data) (#361)
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() (#136) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#137) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#153) is not in mixedCase
Function IUniswapV2Router01.WETH() (#174) is not in mixedCase
Variable BEP20.MAXCAP (#577) is not in mixedCase
Parameter SHGGEAR.setBuyBackToken(address)._tokenAddress (#774) is not in mixedCase
Parameter SHGGEAR.mint(address,uint256)._to (#796) is not in mixedCase
Parameter SHGGEAR.mint(address,uint256)._amount (#796) is not in mixedCase
Parameter SHGGEAR.tradingStatus(bool)._status (#808) is not in mixedCase
Function SHGGEAR.BuybackBurn(uint256) (#887-903) is not in mixedCase
Parameter SHGGEAR.recoverWrongTokens(address,uint256)._tokenAddress (#936) is not in mixedCase
Parameter SHGGEAR.recoverWrongTokens(address,uint256)._tokenAmount (#936) is not in mixedCase
Parameter SHGGEAR.updateMinAmountToLiquify(uint256)._minAmount (#964) is not in mixedCase
Parameter SHGGEAR.setExcludeFromFees(address,bool)._account (#969) is not in mixedCase
Parameter SHGGEAR.setExcludeFromFees(address,bool)._excluded (#969) is not in mixedCase
Parameter SHGGEAR.excludeMultipleAccountsFromFees(address[],bool)._accounts (#976) is not in mixedCase
Parameter SHGGEAR.excludeMultipleAccountsFromFees(address[],bool)._excluded (#976) is not in mixedCase
Parameter SHGGEAR.updateSwapAndLiquifyEnabled(bool)._enabled (#983) is not in mixedCase
Parameter SHGGEAR.updateXBLOXSwapRouter(address)._router (#988) is not in mixedCase
Parameter SHGGEAR.setTxFees(uint256)._transactionFee (#995) is not in mixedCase
Parameter SHGGEAR.setSellFees(uint256,uint256,uint256,uint256)._liquiditySellFee (#1000) is not in mixedCase
Parameter SHGGEAR.setSellFees(uint256,uint256,uint256,uint256)._buybackSellFee (#1000) is not in mixedCase
Parameter SHGGEAR.setSellFees(uint256,uint256,uint256,uint256)._marketingSellFee (#1000) is not in mixedCase
Parameter SHGGEAR.setSellFees(uint256,uint256,uint256,uint256)._burnSellFee (#1000) is not in mixedCase
Parameter SHGGEAR.withdrawBNB(address,uint256)._to (#1009) is not in mixedCase
Parameter SHGGEAR.withdrawBNB(address,uint256)._amount (#1009) is not in mixedCase
Constant SHGGEAR.deadWallet (#717) is not in UPPER_CASE_WITH_UNDERSCORES
Variable SHGGEAR._excludedFromFees (#720) is not in mixedCase
Variable SHGGEAR._isBlacklisted (#721) is not in mixedCase
Variable SHGGEAR._delegates (#1025) is not in mixedCase
Parameter MasterChefTEST.add(uint256,IBEP20,uint16,uint256,bool)._allocPoint (#1342) is not in mixedCase
Parameter MasterChefTEST.add(uint256,IBEP20,uint16,uint256,bool)._lpToken (#1342) is not in mixedCase
Parameter MasterChefTEST.add(uint256,IBEP20,uint16,uint256,bool)._depositFeeBP (#1342) is not in mixedCase
Parameter MasterChefTEST.add(uint256,IBEP20,uint16,uint256,bool)._blockTimePeriod (#1342) is not in mixedCase
Parameter MasterChefTEST.add(uint256,IBEP20,uint16,uint256,bool)._withUpdate (#1342) is not in mixedCase
Parameter MasterChefTEST.set(uint256,uint256,uint16,uint256,bool)._pid (#1362) is not in mixedCase
Parameter MasterChefTEST.set(uint256,uint256,uint16,uint256,bool)._allocPoint (#1362) is not in mixedCase
Parameter MasterChefTEST.set(uint256,uint256,uint16,uint256,bool)._depositFeeBP (#1362) is not in mixedCase
Parameter MasterChefTEST.set(uint256,uint256,uint16,uint256,bool)._blockTimePeriod (#1362) is not in mixedCase
Parameter MasterChefTEST.set(uint256,uint256,uint16,uint256,bool)._withUpdate (#1362) is not in mixedCase
Parameter MasterChefTEST.getMultiplier(uint256,uint256)._from (#1375) is not in mixedCase
Parameter MasterChefTEST.getMultiplier(uint256,uint256)._to (#1375) is not in mixedCase
Parameter MasterChefTEST.pendingXhash(uint256,address)._pid (#1380) is not in mixedCase
Parameter MasterChefTEST.pendingXhash(uint256,address)._user (#1380) is not in mixedCase
Parameter MasterChefTEST.updatePool(uint256)._pid (#1405) is not in mixedCase
Parameter MasterChefTEST.deposit(uint256,uint256)._pid (#1427) is not in mixedCase
Parameter MasterChefTEST.deposit(uint256,uint256)._amount (#1427) is not in mixedCase
Parameter MasterChefTEST.withdraw(uint256,uint256)._pid (#1456) is not in mixedCase
Parameter MasterChefTEST.withdraw(uint256,uint256)._amount (#1456) is not in mixedCase
Parameter MasterChefTEST.emergencyWithdraw(uint256)._pid (#1480) is not in mixedCase
Parameter MasterChefTEST.safeXhashTransfer(address,uint256)._to (#1492) is not in mixedCase
Parameter MasterChefTEST.safeXhashTransfer(address,uint256)._amount (#1492) is not in mixedCase
Parameter MasterChefTEST.dev(address)._devaddr (#1504) is not in mixedCase
Parameter MasterChefTEST.fee(address)._feeAddress (#1510) is not in mixedCase
Parameter MasterChefTEST.updateStartBlock(uint256)._startBlock (#1515) is not in mixedCase
Parameter MasterChefTEST.updateEmissionRate(uint256)._xhashPerBlock (#1522) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (#454)" inContext (#448-457)
Remove redundant statements if they congest code but offer no value.

Additional information: link

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

Additional information: link

SHGGEAR.slitherConstructorConstantVariables() (#699-1247) uses literals with too many digits:
- MAXCAPSUPPLY = 100000000000000000000000 (#578)
SHGGEAR.slitherConstructorConstantVariables() (#699-1247) uses literals with too many digits:
- deadWallet = 0x000000000000000000000000000000000000dEaD (#717)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#480-483)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#485-487)
addMinter(address) should be declared external:
- MinterRole.addMinter(address) (#540-542)
removeMinter(address) should be declared external:
- MinterRole.removeMinter(address) (#544-546)
renounceMinter() should be declared external:
- MinterRole.renounceMinter() (#548-550)
decimals() should be declared external:
- BEP20.decimals() (#595-597)
symbol() should be declared external:
- BEP20.symbol() (#599-601)
totalSupply() should be declared external:
- BEP20.totalSupply() (#603-605)
maxSupply() should be declared external:
- BEP20.maxSupply() (#607-609)
transfer(address,uint256) should be declared external:
- BEP20.transfer(address,uint256) (#615-618)
allowance(address,address) should be declared external:
- BEP20.allowance(address,address) (#620-622)
approve(address,uint256) should be declared external:
- BEP20.approve(address,uint256) (#624-627)
transferFrom(address,address,uint256) should be declared external:
- BEP20.transferFrom(address,address,uint256) (#629-633)
increaseAllowance(address,uint256) should be declared external:
- BEP20.increaseAllowance(address,uint256) (#635-638)
decreaseAllowance(address,uint256) should be declared external:
- BEP20.decreaseAllowance(address,uint256) (#640-643)
mint(uint256) should be declared external:
- BEP20.mint(uint256) (#645-648)
burn(uint256) should be declared external:
- BEP20.burn(uint256) (#650-653)
setBuyBackToken(address) should be declared external:
- SHGGEAR.setBuyBackToken(address) (#774-777)
mint(address,uint256) should be declared external:
- SHGGEAR.mint(address,uint256) (#796-801)
tradingStatus(bool) should be declared external:
- SHGGEAR.tradingStatus(bool) (#808-810)
isExcludedFromFees(address) should be declared external:
- SHGGEAR.isExcludedFromFees(address) (#960-962)
updateMinAmountToLiquify(uint256) should be declared external:
- SHGGEAR.updateMinAmountToLiquify(uint256) (#964-967)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- SHGGEAR.excludeMultipleAccountsFromFees(address[],bool) (#976-981)
updateSwapAndLiquifyEnabled(bool) should be declared external:
- SHGGEAR.updateSwapAndLiquifyEnabled(bool) (#983-986)
updateXBLOXSwapRouter(address) should be declared external:
- SHGGEAR.updateXBLOXSwapRouter(address) (#988-993)
add(uint256,IBEP20,uint16,uint256,bool) should be declared external:
- MasterChefTEST.add(uint256,IBEP20,uint16,uint256,bool) (#1342-1359)
set(uint256,uint256,uint16,uint256,bool) should be declared external:
- MasterChefTEST.set(uint256,uint256,uint16,uint256,bool) (#1362-1372)
deposit(uint256,uint256) should be declared external:
- MasterChefTEST.deposit(uint256,uint256) (#1427-1453)
withdraw(uint256,uint256) should be declared external:
- MasterChefTEST.withdraw(uint256,uint256) (#1456-1477)
emergencyWithdraw(uint256) should be declared external:
- MasterChefTEST.emergencyWithdraw(uint256) (#1480-1489)
dev(address) should be declared external:
- MasterChefTEST.dev(address) (#1504-1507)
fee(address) should be declared external:
- MasterChefTEST.fee(address) (#1510-1513)
updateStartBlock(uint256) should be declared external:
- MasterChefTEST.updateStartBlock(uint256) (#1515-1519)
updateEmissionRate(uint256) should be declared external:
- MasterChefTEST.updateEmissionRate(uint256) (#1522-1526)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


Average 30d PancakeSwap volume is less than $100. 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.

Contract has 5% buy tax and 8% sell tax.
Taxes are low but contract ownership is not renounced. Token has a high risk of becoming a honeypot.


Swap operations require suspiciously high gas. Contract logic is complex and may disguise some form of scam.


Average 30d PancakeSwap liquidity is low.


Average 30d number of PancakeSwap swaps is low.


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


Token is deployed only at one blockchain


Unable to find Telegram and Twitter accounts


Unable to find website, listings and other project-related information


Token has no active CoinGecko listing / rank


Token has no active CoinMarketCap listing / rank


Young tokens have high risks of price dump / death

Price for SGEAR