SonOfCosmos Token Logo

SOC [SonOfCosmos] Token

About SOC

Listings

Not Found
Token 2 years

FairLaunch by Safu Dev

Social

Laser Scorebeta Last Audit: 22 December 2021

report
Token has too many issues. Scam probability is high.

Anti-Scam

Links


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

SonOfCosmos.swapBack() (#563-607) sends eth to arbitrary user
Dangerous calls:
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#591)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

DividendDistributor.distributeDividend(address) (#310-321) ignores return value by ETH.transfer(shareholder,amount) (#316)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.

Additional information: link


Too many vulnerabilities (Unchecked transfer, Reentrancy vulnerability, etc.). High risk of a scam. DYOR & manual audit are advised.

Reentrancy in SonOfCosmos._transferFrom(address,address,uint256) (#470-515):
External calls:
- swapBack() (#494)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#574-580)
- distributor.deposit{value: amountBNBReflection}() (#590)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#591)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#597-604)
External calls sending eth:
- swapBack() (#494)
- distributor.deposit{value: amountBNBReflection}() (#590)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#591)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#597-604)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#497)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#500)
- amountReceived = takeFee(sender,amount) (#499)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#535)
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.


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.

SonOfCosmos.swapBack().tmpSuccess (#591) is written in both
(tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#591)
tmpSuccess = false (#594)
Fix or remove the writes.

Additional information: link

Pragma version^0.7.4 (#3) allows old versions
solc-0.7.4 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 SonOfCosmos.swapBack() (#563-607):
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#591)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

SonOfCosmos.ETH (#357) is never used in SonOfCosmos (#354-705)
Remove unused state variables.

Additional information: link

SonOfCosmos.slitherConstructorVariables() (#354-705) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#359)
SonOfCosmos.slitherConstructorVariables() (#354-705) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#360)
SonOfCosmos.slitherConstructorVariables() (#354-705) uses literals with too many digits:
- distributorGas = 500000 (#397)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

DividendDistributor.WBNB (#199) should be constant
DividendDistributor.dividendsPerShareAccuracyFactor (#212) should be constant
SonOfCosmos.DEAD (#359) should be constant
SonOfCosmos.ETH (#357) should be constant
SonOfCosmos.WBNB (#358) should be constant
SonOfCosmos.ZERO (#360) should be constant
SonOfCosmos._totalSupply (#366) should be constant
SonOfCosmos.launchedAt (#393) 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) (#91-93)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#98-100)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#119-123)
tradingStatus(bool) should be declared external:
- SonOfCosmos.tradingStatus(bool) (#554-556)
cooldownEnabled(bool,uint8) should be declared external:
- SonOfCosmos.cooldownEnabled(bool,uint8) (#558-561)
Use the external attribute for functions never called from the contract.

Additional information: link

Reentrancy in DividendDistributor.distributeDividend(address) (#310-321):
External calls:
- ETH.transfer(shareholder,amount) (#316)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (#318)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#319)
Reentrancy in DividendDistributor.process(uint256) (#279-303):
External calls:
- distributeDividend(shareholders[currentIndex]) (#295)
- ETH.transfer(shareholder,amount) (#316)
State variables written after the call(s):
- currentIndex ++ (#300)
Reentrancy in DividendDistributor.setShare(address,uint256) (#243-257):
External calls:
- distributeDividend(shareholder) (#245)
- ETH.transfer(shareholder,amount) (#316)
State variables written after the call(s):
- shares[shareholder].amount = amount (#255)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#256)
Apply the check-effects-interactions pattern.

Additional information: link

SonOfCosmos.swapBack() (#563-607) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#597-604)
Ensure that all the return values of the function calls are used.

Additional information: link

DividendDistributor.setDistributionCriteria(uint256,uint256) (#238-241) should emit an event for:
- minPeriod = _minPeriod (#239)
- minDistribution = _minDistribution (#240)
SonOfCosmos.setTxLimit(uint256) (#609-611) should emit an event for:
- _maxTxAmount = amount (#610)
SonOfCosmos.setFees(uint256,uint256,uint256,uint256) (#635-641) should emit an event for:
- liquidityFee = _liquidityFee (#636)
- reflectionFee = _reflectionFee (#637)
- marketingFee = _marketingFee (#638)
- totalFee = _liquidityFee.add(_reflectionFee).add(_marketingFee) (#639)
- feeDenominator = _feeDenominator (#640)
SonOfCosmos.setTargetLiquidity(uint256,uint256) (#653-656) should emit an event for:
- targetLiquidity = _target (#654)
- targetLiquidityDenominator = _denominator (#655)
Emit an event for critical parameter changes.

Additional information: link

Auth.transferOwnership(address).adr (#119) lacks a zero-check on :
- owner = adr (#120)
SonOfCosmos.setFeeReceivers(address,address)._autoLiquidityReceiver (#643) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#644)
SonOfCosmos.setFeeReceivers(address,address)._marketingFeeReceiver (#643) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#645)
Check that the address is not zero.

Additional information: link

DividendDistributor.distributeDividend(address) (#310-321) has external calls inside a loop: ETH.transfer(shareholder,amount) (#316)
SonOfCosmos.airdrop(address,address[],uint256[]) (#679-701) has external calls inside a loop: distributor.setShare(addresses[i_scope_0],_balances[addresses[i_scope_0]]) (#693)
Favor pull over push strategy for external calls.

Additional information: link

Reentrancy in SonOfCosmos.constructor() (#408-432):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#410)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = uint256(- 1) (#411)
- _balances[msg.sender] = _totalSupply (#430)
- autoLiquidityReceiver = DEAD (#427)
- distributor = new DividendDistributor(address(router)) (#413)
- isDividendExempt[pair] = true (#423)
- isDividendExempt[address(this)] = true (#424)
- isDividendExempt[DEAD] = true (#425)
- isFeeExempt[msg.sender] = true (#415)
- isTimelockExempt[msg.sender] = true (#419)
- isTimelockExempt[DEAD] = true (#420)
- isTimelockExempt[address(this)] = true (#421)
- isTxLimitExempt[msg.sender] = true (#416)
- isTxLimitExempt[DEAD] = true (#417)
- marketingFeeReceiver = msg.sender (#428)
Reentrancy in DividendDistributor.deposit() (#259-277):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (#266-271)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (#276)
- totalDividends = totalDividends.add(amount) (#275)
Reentrancy in DividendDistributor.distributeDividend(address) (#310-321):
External calls:
- ETH.transfer(shareholder,amount) (#316)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#317)
Reentrancy in DividendDistributor.setShare(address,uint256) (#243-257):
External calls:
- distributeDividend(shareholder) (#245)
- ETH.transfer(shareholder,amount) (#316)
State variables written after the call(s):
- addShareholder(shareholder) (#249)
- shareholderIndexes[shareholder] = shareholders.length (#343)
- removeShareholder(shareholder) (#251)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#349)
- addShareholder(shareholder) (#249)
- shareholders.push(shareholder) (#344)
- removeShareholder(shareholder) (#251)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#348)
- shareholders.pop() (#350)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#254)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in SonOfCosmos._transferFrom(address,address,uint256) (#470-515):
External calls:
- swapBack() (#494)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#574-580)
- distributor.deposit{value: amountBNBReflection}() (#590)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#591)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#597-604)
- distributor.setShare(sender,_balances[sender]) (#504)
- distributor.setShare(recipient,_balances[recipient]) (#508)
- distributor.process(distributorGas) (#511)
External calls sending eth:
- swapBack() (#494)
- distributor.deposit{value: amountBNBReflection}() (#590)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#591)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#597-604)
Event emitted after the call(s):
- Transfer(sender,recipient,amountReceived) (#513)
Reentrancy in SonOfCosmos._transferFrom(address,address,uint256) (#470-515):
External calls:
- swapBack() (#494)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#574-580)
- distributor.deposit{value: amountBNBReflection}() (#590)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#591)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#597-604)
External calls sending eth:
- swapBack() (#494)
- distributor.deposit{value: amountBNBReflection}() (#590)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#591)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#597-604)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#536)
- amountReceived = takeFee(sender,amount) (#499)
Reentrancy in SonOfCosmos.constructor() (#408-432):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#410)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#431)
Reentrancy in SonOfCosmos.swapBack() (#563-607):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#574-580)
- distributor.deposit{value: amountBNBReflection}() (#590)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#591)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#597-604)
External calls sending eth:
- distributor.deposit{value: amountBNBReflection}() (#590)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#591)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#597-604)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#605)
Apply the check-effects-interactions pattern.

Additional information: link

DividendDistributor.shouldDistribute(address) (#305-308) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#306-307)
SonOfCosmos._transferFrom(address,address,uint256) (#470-515) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(cooldownTimer[recipient] < block.timestamp,Please wait for cooldown between buys) (#486)
Avoid relying on block.timestamp.

Additional information: link

DividendDistributor.process(uint256) (#279-303) has costly operations inside a loop:
- currentIndex = 0 (#291)
DividendDistributor.distributeDividend(address) (#310-321) has costly operations inside a loop:
- totalDistributed = totalDistributed.add(amount) (#315)
DividendDistributor.process(uint256) (#279-303) has costly operations inside a loop:
- currentIndex ++ (#300)
Use a local variable to hold the loop computation result.

Additional information: link

SonOfCosmos._maxTxAmount (#367) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 2) / 100
SonOfCosmos._maxWalletToken (#368) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 3) / 100
SonOfCosmos.swapThreshold (#404) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 10 / 10000
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

Function IDEXRouter.WETH() (#134) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minPeriod (#238) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minDistribution (#238) is not in mixedCase
Variable DividendDistributor._token (#190) is not in mixedCase
Variable DividendDistributor.ETH (#198) is not in mixedCase
Variable DividendDistributor.WBNB (#199) is not in mixedCase
Parameter SonOfCosmos.tradingStatus(bool)._status (#554) is not in mixedCase
Parameter SonOfCosmos.cooldownEnabled(bool,uint8)._status (#558) is not in mixedCase
Parameter SonOfCosmos.cooldownEnabled(bool,uint8)._interval (#558) is not in mixedCase
Parameter SonOfCosmos.setFees(uint256,uint256,uint256,uint256)._liquidityFee (#635) is not in mixedCase
Parameter SonOfCosmos.setFees(uint256,uint256,uint256,uint256)._reflectionFee (#635) is not in mixedCase
Parameter SonOfCosmos.setFees(uint256,uint256,uint256,uint256)._marketingFee (#635) is not in mixedCase
Parameter SonOfCosmos.setFees(uint256,uint256,uint256,uint256)._feeDenominator (#635) is not in mixedCase
Parameter SonOfCosmos.setFeeReceivers(address,address)._autoLiquidityReceiver (#643) is not in mixedCase
Parameter SonOfCosmos.setFeeReceivers(address,address)._marketingFeeReceiver (#643) is not in mixedCase
Parameter SonOfCosmos.setSwapBackSettings(bool,uint256)._enabled (#648) is not in mixedCase
Parameter SonOfCosmos.setSwapBackSettings(bool,uint256)._amount (#648) is not in mixedCase
Parameter SonOfCosmos.setTargetLiquidity(uint256,uint256)._target (#653) is not in mixedCase
Parameter SonOfCosmos.setTargetLiquidity(uint256,uint256)._denominator (#653) is not in mixedCase
Parameter SonOfCosmos.setDistributionCriteria(uint256,uint256)._minPeriod (#658) is not in mixedCase
Parameter SonOfCosmos.setDistributionCriteria(uint256,uint256)._minDistribution (#658) is not in mixedCase
Variable SonOfCosmos.ETH (#357) is not in mixedCase
Variable SonOfCosmos.WBNB (#358) is not in mixedCase
Variable SonOfCosmos.DEAD (#359) is not in mixedCase
Variable SonOfCosmos.ZERO (#360) is not in mixedCase
Constant SonOfCosmos._name (#362) is not in UPPER_CASE_WITH_UNDERSCORES
Constant SonOfCosmos._symbol (#363) is not in UPPER_CASE_WITH_UNDERSCORES
Constant SonOfCosmos._decimals (#364) is not in UPPER_CASE_WITH_UNDERSCORES
Variable SonOfCosmos._totalSupply (#366) is not in mixedCase
Variable SonOfCosmos._maxTxAmount (#367) is not in mixedCase
Variable SonOfCosmos._maxWalletToken (#368) is not in mixedCase
Variable SonOfCosmos._balances (#370) is not in mixedCase
Variable SonOfCosmos._allowances (#371) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

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

Additional information: link

Holders:


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


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 Twitter account


Telegram account has relatively few subscribers


Unable to find Blog account (Reddit or Medium)


Unable to find Youtube account


Unable to find Discord account


BscScan page for the token does not contain additional info: website, socials, description, etc.

Additional information: link


Unable to find token on CoinGecko

Additional information: link


Unable to find token on CoinMarketCap

Additional information: link


Unable to find token/project description on the website or on BscScan, CoinMarketCap


Unable to find token contract audit


Unable to verify that token and website are owned by the same team (no listings + unable to find contract on website)


Unable to verify token contract address on the website


Unable to find audit link on the website


Unable to find whitepaper link on the website


Unable to find Telegram link on the website


Unable to find Twitter link on the website


Unable to find token on CoinHunt

Additional information: link


Unable to find code repository for the project


Young tokens have high risks of price dump / death


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 SOC