Squid Gold Token Logo

SGOLD [Squid Gold] Token

About SGOLD

Listings

Not Found
Token 3 years

Website

Not Found

Description

Not Found

Social

Not Found

Laser Scorebeta Last Audit: 15 August 2022

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

SquidGold.swapBack() (#394-438) sends eth to arbitrary user
Dangerous calls:
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#421)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#422)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in SquidGold._transferFrom(address,address,uint256) (#301-332):
External calls:
- swapBack() (#322)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#405-411)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#421)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#422)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#428-435)
External calls sending eth:
- swapBack() (#322)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#421)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#422)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#428-435)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#325)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#328)
- amountReceived = takeFee(sender,amount,(recipient == pair)) (#327)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#372)
Apply the check-effects-interactions pattern.

Additional information: link


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

SquidGold.swapBack().tmpSuccess (#421) is written in both
(tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#421)
(tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#422)
SquidGold.swapBack().tmpSuccess (#421) is written in both
(tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#422)
tmpSuccess = false (#425)
Fix or remove the writes.

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.


Contract ownership is not renounced (belongs to a wallet)

SquidGold.takeFee(address,uint256,bool) (#363-376) performs a multiplication on the result of a division:
-feeAmount = amount.div(feeDenominator * 100).mul(totalFee).mul(multiplier) (#370)
Consider ordering multiplication before division.

Additional information: link

SquidGold.swapBack() (#394-438) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#428-435)
Ensure that all the return values of the function calls are used.

Additional information: link

SquidGold.set_sell_multiplier(uint256) (#350-353) should emit an event for:
- sellMultiplier = Multiplier (#351)
SquidGold.setTxLimit(uint256) (#441-443) should emit an event for:
- _maxTxAmount = amount (#442)
SquidGold.setFees(uint256,uint256,uint256) (#457-463) should emit an event for:
- liquidityFee = _liquidityFee (#458)
- marketingFee = _marketingFee (#459)
- devFee = _devFee (#460)
- totalFee = _liquidityFee.add(_marketingFee).add(_devFee) (#461)
SquidGold.setSwapBackSettings(bool,uint256) (#471-474) should emit an event for:
- swapThreshold = _amount (#473)
SquidGold.setTargetLiquidity(uint256,uint256) (#476-479) should emit an event for:
- targetLiquidity = _target (#477)
- targetLiquidityDenominator = _denominator (#478)
Emit an event for critical parameter changes.

Additional information: link

Auth.renounce(address).adr (#84) lacks a zero-check on :
- owner = adr (#85)
SquidGold.setFeeReceivers(address,address,address)._autoLiquidityReceiver (#465) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#466)
SquidGold.setFeeReceivers(address,address,address)._marketingFeeReceiver (#465) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#467)
SquidGold.setFeeReceivers(address,address,address)._devFeeReceiver (#465) lacks a zero-check on :
- devFeeReceiver = _devFeeReceiver (#468)
Check that the address is not zero.

Additional information: link

Reentrancy in SquidGold.constructor() (#244-262):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#246)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = uint256(- 1) (#247)
- _balances[msg.sender] = _totalSupply (#260)
- autoLiquidityReceiver = address(this) (#256)
- devFeeReceiver = DevWallet (#258)
- isFeeExempt[msg.sender] = true (#249)
- isTimelockExempt[msg.sender] = true (#252)
- isTimelockExempt[DEAD] = true (#253)
- isTimelockExempt[address(this)] = true (#254)
- isTxLimitExempt[msg.sender] = true (#250)
- marketingFeeReceiver = MarketingWallet (#257)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in SquidGold._transferFrom(address,address,uint256) (#301-332):
External calls:
- swapBack() (#322)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#405-411)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#421)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#422)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#428-435)
External calls sending eth:
- swapBack() (#322)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#421)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#422)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#428-435)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#373)
- amountReceived = takeFee(sender,amount,(recipient == pair)) (#327)
- Transfer(sender,recipient,amountReceived) (#330)
Reentrancy in SquidGold.constructor() (#244-262):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#246)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#261)
Reentrancy in SquidGold.swapBack() (#394-438):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#405-411)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#421)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#422)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#428-435)
External calls sending eth:
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#421)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#422)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#428-435)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#436)
Apply the check-effects-interactions pattern.

Additional information: link

SquidGold._transferFrom(address,address,uint256) (#301-332) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(cooldownTimer[recipient] < block.timestamp,Please wait for cooldown between buys) (#316)
Avoid relying on block.timestamp.

Additional information: link

SquidGold.totalFee (#214) is set pre-construction with a non-constant function or state variable:
- marketingFee + liquidityFee + devFee
SquidGold.swapThreshold (#238) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 500
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

Pragma version^0.7.4 (#7) allows old versions
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 SquidGold.refresh() (#341-344):
- (sent) = address(msg.sender).call{value: (address(this).balance)}() (#342)
Low level call in SquidGold.swapBack() (#394-438):
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#421)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#422)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

Function IDEXRouter.WETH() (#99) is not in mixedCase
Function SquidGold.set_sell_multiplier(uint256) (#350-353) is not in mixedCase
Parameter SquidGold.set_sell_multiplier(uint256).Multiplier (#350) is not in mixedCase
Parameter SquidGold.cooldownEnabled(bool,uint8)._status (#387) is not in mixedCase
Parameter SquidGold.cooldownEnabled(bool,uint8)._interval (#387) is not in mixedCase
Parameter SquidGold.setFees(uint256,uint256,uint256)._liquidityFee (#457) is not in mixedCase
Parameter SquidGold.setFees(uint256,uint256,uint256)._marketingFee (#457) is not in mixedCase
Parameter SquidGold.setFees(uint256,uint256,uint256)._devFee (#457) is not in mixedCase
Parameter SquidGold.setFeeReceivers(address,address,address)._autoLiquidityReceiver (#465) is not in mixedCase
Parameter SquidGold.setFeeReceivers(address,address,address)._marketingFeeReceiver (#465) is not in mixedCase
Parameter SquidGold.setFeeReceivers(address,address,address)._devFeeReceiver (#465) is not in mixedCase
Parameter SquidGold.setSwapBackSettings(bool,uint256)._enabled (#471) is not in mixedCase
Parameter SquidGold.setSwapBackSettings(bool,uint256)._amount (#471) is not in mixedCase
Parameter SquidGold.setTargetLiquidity(uint256,uint256)._target (#476) is not in mixedCase
Parameter SquidGold.setTargetLiquidity(uint256,uint256)._denominator (#476) is not in mixedCase
Variable SquidGold.WBNB (#188) is not in mixedCase
Variable SquidGold.DEAD (#189) is not in mixedCase
Variable SquidGold.ZERO (#190) is not in mixedCase
Variable SquidGold.MarketingWallet (#192) is not in mixedCase
Variable SquidGold.DevWallet (#193) is not in mixedCase
Constant SquidGold._name (#195) is not in UPPER_CASE_WITH_UNDERSCORES
Constant SquidGold._symbol (#196) is not in UPPER_CASE_WITH_UNDERSCORES
Constant SquidGold._decimals (#197) is not in UPPER_CASE_WITH_UNDERSCORES
Variable SquidGold._totalSupply (#199) is not in mixedCase
Variable SquidGold._maxTxAmount (#200) is not in mixedCase
Variable SquidGold._maxWalletToken (#201) is not in mixedCase
Variable SquidGold._balances (#203) is not in mixedCase
Variable SquidGold._allowances (#204) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#104) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#105)
Prevent variables from having similar names.

Additional information: link

SquidGold.slitherConstructorVariables() (#186-510) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#189)
SquidGold.slitherConstructorVariables() (#186-510) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#190)
SquidGold.slitherConstructorVariables() (#186-510) uses literals with too many digits:
- _totalSupply = 1000000000 * (10 ** _decimals) (#199)
SquidGold.slitherConstructorVariables() (#186-510) uses literals with too many digits:
- _maxTxAmount = 30000000 * (10 ** _decimals) (#200)
SquidGold.slitherConstructorVariables() (#186-510) uses literals with too many digits:
- _maxWalletToken = 30000000 * (10 ** _decimals) (#201)
SquidGold.slitherConstructorVariables() (#186-510) uses literals with too many digits:
- distributorGas = 500000 (#231)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

SquidGold.isDividendExempt (#209) is never used in SquidGold (#186-510)
SquidGold.distributorGas (#231) is never used in SquidGold (#186-510)
Remove unused state variables.

Additional information: link

SquidGold.DEAD (#189) should be constant
SquidGold.DevWallet (#193) should be constant
SquidGold.MarketingWallet (#192) should be constant
SquidGold.WBNB (#188) should be constant
SquidGold.ZERO (#190) should be constant
SquidGold._totalSupply (#199) should be constant
SquidGold.distributorGas (#231) should be constant
SquidGold.feeDenominator (#215) should be constant
SquidGold.tradingOpen (#229) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

authorize(address) should be declared external:
- Auth.authorize(address) (#56-58)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#63-65)
validate(address,uint256) should be declared external:
- SquidGold.validate(address,uint256) (#346-348)
cooldownEnabled(bool,uint8) should be declared external:
- SquidGold.cooldownEnabled(bool,uint8) (#387-390)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:

Contract has 10% buy tax and 11% sell tax.
Taxes are suspiciously high (over 10%) and contract ownership is not renounced. Token has a high risk of becoming a honeypot.


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.


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


Average 30d number of PancakeSwap swaps is low.


Token is deployed only at one blockchain


Token has only one trading pair


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 SGOLD