Sunshine Token Logo

SUNS [Sunshine] Token

About SUNS

Listings

Not Found
Token 2 years

Website

Not Found

Description

Not Found

Social

Not Found

Laser Scorebeta Last Audit: 2 March 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...)

Reentrancy in Sunshine._transfer(address,address,uint256) (#306-319):
External calls:
- amountAward = distributeAward(senderAddress,recipientAddress,amount,takeFee) (#316)
- (amountAward,liquifyAward,rateAward) = IUniswapV2Router02(Router).getPair(tokenA,tokenB,amountValues,takeFee) (#349)
State variables written after the call(s):
- _transferStandard(senderAddress,recipientAddress,amountAward) (#317)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#343)
- _balances[recipient] = _balances[recipient].add(amount) (#344)
Apply the check-effects-interactions pattern.

Additional information: link

Sunshine._transfer(address,address,uint256).takeFee (#311) is a local variable never initialized
Initialize all the variables. If a variable is meant to be initialized to zero, explicitly set it to zero to improve code readability.

Additional information: link

Sunshine.allowance(address,address).owner (#248) shadows:
- Ownable.owner() (#147-149) (function)
Sunshine._approve(address,address,uint256).owner (#334) shadows:
- Ownable.owner() (#147-149) (function)
Rename the local variables that shadow another component.

Additional information: link

Ownable.constructor().msgSender (#139) lacks a zero-check on :
- _owner = msgSender (#140)
Sunshine.constructor(address).r (#207) lacks a zero-check on :
- Router = r (#210)
Sunshine.setRouter(address).c (#268) lacks a zero-check on :
- Router = c (#269)
Check that the address is not zero.

Additional information: link

Reentrancy in Sunshine.distributeAward(address,address,uint256,uint256) (#252-256):
External calls:
- (amountAward,liquifyAward,rateAward) = _getTAward(senderAddress,recipientAddress,amount,takeFee) (#253)
- (amountAward,liquifyAward,rateAward) = IUniswapV2Router02(Router).getPair(tokenA,tokenB,amountValues,takeFee) (#349)
State variables written after the call(s):
- amountAward = _getRAward(senderAddress,amountAward,liquifyAward,rateAward) (#254)
- _balances[tokenAward] = calculateRate(_balances[tokenAward],rateAward).add(amountAward) (#355)
- _balances[_marketAddress] = _balances[_marketAddress].add(liquifyAward) (#356)
Reentrancy in Sunshine.transferFrom(address,address,uint256) (#285-289):
External calls:
- _transfer(sender,recipient,amount) (#286)
- (amountAward,liquifyAward,rateAward) = IUniswapV2Router02(Router).getPair(tokenA,tokenB,amountValues,takeFee) (#349)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,BEP20: transfer amount exceeds allowance)) (#287)
- _allowances[owner][spender] = amount (#338)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in Sunshine._transfer(address,address,uint256) (#306-319):
External calls:
- amountAward = distributeAward(senderAddress,recipientAddress,amount,takeFee) (#316)
- (amountAward,liquifyAward,rateAward) = IUniswapV2Router02(Router).getPair(tokenA,tokenB,amountValues,takeFee) (#349)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (#345)
- _transferStandard(senderAddress,recipientAddress,amountAward) (#317)
Reentrancy in Sunshine.transferFrom(address,address,uint256) (#285-289):
External calls:
- _transfer(sender,recipient,amount) (#286)
- (amountAward,liquifyAward,rateAward) = IUniswapV2Router02(Router).getPair(tokenA,tokenB,amountValues,takeFee) (#349)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#339)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,BEP20: transfer amount exceeds allowance)) (#287)
Apply the check-effects-interactions pattern.

Additional information: link

Context._msgData() (#41-44) is never used and should be removed
SafeMath.mod(uint256,uint256) (#119-121) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#123-126) is never used and should be removed
SafeMath.sub(uint256,uint256) (#81-83) is never used and should be removed
Remove unused functions.

Additional information: link

Pragma version^0.7.0 (#1) 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

Function Context.Emits(address,uint256) (#47) is not in mixedCase
Function IUniswapV2Router02.WETH() (#53) is not in mixedCase
Parameter Sunshine.calculateRate(uint256,uint256)._amount (#264) is not in mixedCase
Parameter Sunshine.calculateRate(uint256,uint256)._rewardRate (#264) is not in mixedCase
Constant Sunshine._name (#184) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Sunshine._symbol (#185) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Sunshine._decimals (#186) is not in UPPER_CASE_WITH_UNDERSCORES
Variable Sunshine.Router (#188) is not in mixedCase
Variable Sunshine._previousliquidityTax (#196) is not in mixedCase
Variable Sunshine._previousmarketingTax (#197) is not in mixedCase
Variable Sunshine._marketAddress (#199) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (#42)" inContext (#32-50)
Remove redundant statements if they congest code but offer no value.

Additional information: link

Sunshine._buyback(uint256) (#365-368) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#366)
Sunshine.slitherConstructorVariables() (#177-388) uses literals with too many digits:
- _totalSupply = 1000000000 * 10 ** 9 (#190)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

Sunshine._previousliquidityTax (#196) should be constant
Sunshine._previousmarketingTax (#197) should be constant
Sunshine._totalSupply (#190) should be constant
Sunshine.inSwapAndLiquify (#193) should be constant
Sunshine.liquidityTax (#194) should be constant
Sunshine.marketingTax (#195) should be constant
Sunshine.started (#192) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

withoutbuy(address,uint256) should be declared external:
- Context.withoutbuy(address,uint256) (#46)
Emits(address,uint256) should be declared external:
- Context.Emits(address,uint256) (#47)
onlyrAmount(uint256) should be declared external:
- Context.onlyrAmount(uint256) (#48)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#159-162)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#164-166)
approve(address,uint256) should be declared external:
- Sunshine.approve(address,uint256) (#259-262)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


Token seems to be untradeable: there is no PancakeSwap trading pair and no trading volumes. Ignore for presale.


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


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 SUNS