The first decentralized, community solar mining platform.
Solarmoon.withdrawErcToken(address,uint256) (contracts/Solarmoon.sol#496-498) ignores return value by IERC20(token).transfer(_msgSender(),amount) (contracts/Solarmoon.sol#497)
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...)
Different versions of Solidity is used:
- Version used: ['=0.8.0', '>=0.6.2', '>=0.6.6', '^0.8.0']
- ^0.8.0 (@openzeppelin/contracts/access/Ownable.sol#3)
- ^0.8.0 (@openzeppelin/contracts/token/ERC20/IERC20.sol#3)
- ^0.8.0 (@openzeppelin/contracts/utils/Address.sol#3)
- ^0.8.0 (@openzeppelin/contracts/utils/Context.sol#3)
- ^0.8.0 (@openzeppelin/contracts/utils/math/SafeMath.sol#3)
- =0.8.0 (contracts/Solarmoon.sol#1)
- >=0.6.6 (contracts/interfaces/IPancakeFactory.sol#1)
- >=0.6.2 (contracts/interfaces/IPancakeRouter01.sol#1)
- >=0.6.6 (contracts/interfaces/IPancakeRouter02.sol#1)
- =0.8.0 (contracts/libraries/Structs.sol#1)
Use one Solidity version.
Additional information: link
Solarmoon.calculateTaxes(TaxRates,uint256,uint256).params (contracts/Solarmoon.sol#384) 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
Solarmoon.allowance(address,address).owner (contracts/Solarmoon.sol#112) shadows:
- Ownable.owner() (@openzeppelin/contracts/access/Ownable.sol#35-37) (function)
Solarmoon._approve(address,address,uint256).owner (contracts/Solarmoon.sol#454) shadows:
- Ownable.owner() (@openzeppelin/contracts/access/Ownable.sol#35-37) (function)
Rename the local variables that shadow another component.
Additional information: link
Solarmoon.setInfrastructureVault(address).infrastructure (contracts/Solarmoon.sol#220) lacks a zero-check on :
- infrastructureVault = infrastructure (contracts/Solarmoon.sol#222)
Check that the address is not zero.
Additional information: link
Address.isContract(address) (@openzeppelin/contracts/utils/Address.sol#26-35) uses assembly
- INLINE ASM (@openzeppelin/contracts/utils/Address.sol#33)
Address._verifyCallResult(bool,bytes,string) (@openzeppelin/contracts/utils/Address.sol#171-188) uses assembly
- INLINE ASM (@openzeppelin/contracts/utils/Address.sol#180-183)
Do not use evm assembly.
Additional information: link
Address._verifyCallResult(bool,bytes,string) (@openzeppelin/contracts/utils/Address.sol#171-188) is never used and should be removed
Address.functionCall(address,bytes) (@openzeppelin/contracts/utils/Address.sol#79-81) is never used and should be removed
Address.functionCall(address,bytes,string) (@openzeppelin/contracts/utils/Address.sol#89-91) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (@openzeppelin/contracts/utils/Address.sol#104-106) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (@openzeppelin/contracts/utils/Address.sol#114-121) is never used and should be removed
Address.functionDelegateCall(address,bytes) (@openzeppelin/contracts/utils/Address.sol#153-155) is never used and should be removed
Address.functionDelegateCall(address,bytes,string) (@openzeppelin/contracts/utils/Address.sol#163-169) is never used and should be removed
Address.functionStaticCall(address,bytes) (@openzeppelin/contracts/utils/Address.sol#129-131) is never used and should be removed
Address.functionStaticCall(address,bytes,string) (@openzeppelin/contracts/utils/Address.sol#139-145) is never used and should be removed
Address.isContract(address) (@openzeppelin/contracts/utils/Address.sol#26-35) is never used and should be removed
Address.sendValue(address,uint256) (@openzeppelin/contracts/utils/Address.sol#53-59) is never used and should be removed
Context._msgData() (@openzeppelin/contracts/utils/Context.sol#20-23) is never used and should be removed
SafeMath.div(uint256,uint256,string) (@openzeppelin/contracts/utils/math/SafeMath.sol#190-195) is never used and should be removed
SafeMath.mod(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#150-152) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (@openzeppelin/contracts/utils/math/SafeMath.sol#212-217) is never used and should be removed
SafeMath.tryAdd(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#21-27) is never used and should be removed
SafeMath.tryDiv(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#63-68) is never used and should be removed
SafeMath.tryMod(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#75-80) is never used and should be removed
SafeMath.tryMul(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#46-56) is never used and should be removed
SafeMath.trySub(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#34-39) is never used and should be removed
Remove unused functions.
Additional information: link
Solarmoon._TOTAL_REFLECTION (contracts/Solarmoon.sol#19) is set pre-construction with a non-constant function or state variable:
- (_MAX_UINT - _MAX_UINT.mod(TOTAL_SUPPLY))
Solarmoon._stats (contracts/Solarmoon.sol#21) is set pre-construction with a non-constant function or state variable:
- TokenStats(_TOTAL_REFLECTION,TOTAL_SUPPLY,0,0,0,0)
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.8.0 (@openzeppelin/contracts/access/Ownable.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/token/ERC20/IERC20.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/utils/Address.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/utils/Context.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/utils/math/SafeMath.sol#3) allows old versions
Pragma version=0.8.0 (contracts/Solarmoon.sol#1) allows old versions
Pragma version>=0.6.6 (contracts/interfaces/IPancakeFactory.sol#1) allows old versions
Pragma version>=0.6.2 (contracts/interfaces/IPancakeRouter01.sol#1) allows old versions
Pragma version>=0.6.6 (contracts/interfaces/IPancakeRouter02.sol#1) allows old versions
Pragma version=0.8.0 (contracts/libraries/Structs.sol#1) allows old versions
solc-0.8.0 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 Address.sendValue(address,uint256) (@openzeppelin/contracts/utils/Address.sol#53-59):
- (success) = recipient.call{value: amount}() (@openzeppelin/contracts/utils/Address.sol#57)
Low level call in Address.functionCallWithValue(address,bytes,uint256,string) (@openzeppelin/contracts/utils/Address.sol#114-121):
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#119)
Low level call in Address.functionStaticCall(address,bytes,string) (@openzeppelin/contracts/utils/Address.sol#139-145):
- (success,returndata) = target.staticcall(data) (@openzeppelin/contracts/utils/Address.sol#143)
Low level call in Address.functionDelegateCall(address,bytes,string) (@openzeppelin/contracts/utils/Address.sol#163-169):
- (success,returndata) = target.delegatecall(data) (@openzeppelin/contracts/utils/Address.sol#167)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable Solarmoon.TOTAL_SUPPLY (contracts/Solarmoon.sol#16) is not in mixedCase
Variable Solarmoon._TOTAL_REFLECTION (contracts/Solarmoon.sol#19) is not in mixedCase
Variable Solarmoon._stats (contracts/Solarmoon.sol#21) is not in mixedCase
Variable Solarmoon._taxRates (contracts/Solarmoon.sol#22) is not in mixedCase
Constant Solarmoon.burnAddress (contracts/Solarmoon.sol#25) is not in UPPER_CASE_WITH_UNDERSCORES
Function IPancakeRouter01.WETH() (contracts/interfaces/IPancakeRouter01.sol#6) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (@openzeppelin/contracts/utils/Context.sol#21)" inContext (@openzeppelin/contracts/utils/Context.sol#15-24)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable IPancakeRouter01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (contracts/interfaces/IPancakeRouter01.sol#11) is too similar to IPancakeRouter01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (contracts/interfaces/IPancakeRouter01.sol#12)
Prevent variables from having similar names.
Additional information: link
Solarmoon.slitherConstructorConstantVariables() (contracts/Solarmoon.sol#12-500) uses literals with too many digits:
- burnAddress = 0x000000000000000000000000000000000000dEaD (contracts/Solarmoon.sol#25)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Solarmoon.TOTAL_SUPPLY (contracts/Solarmoon.sol#16) should be constant
Solarmoon._name (contracts/Solarmoon.sol#31) should be constant
Solarmoon._symbol (contracts/Solarmoon.sol#32) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (@openzeppelin/contracts/access/Ownable.sol#54-57)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (@openzeppelin/contracts/access/Ownable.sol#63-67)
name() should be declared external:
- Solarmoon.name() (contracts/Solarmoon.sol#62-64)
symbol() should be declared external:
- Solarmoon.symbol() (contracts/Solarmoon.sol#66-68)
decimals() should be declared external:
- Solarmoon.decimals() (contracts/Solarmoon.sol#70-72)
balanceOf(address) should be declared external:
- Solarmoon.balanceOf(address) (contracts/Solarmoon.sol#86-89)
reflectionFromToken(uint256,bool) should be declared external:
- Solarmoon.reflectionFromToken(uint256,bool) (contracts/Solarmoon.sol#95-99)
Use the external attribute for functions never called from the contract.
Additional information: link
Average 30d number of PancakeSwap swaps is less than 1. Token is either dead or inactive.
Average 30d PancakeSwap volume is low.
Average PancakeSwap trading volume, liqudity, number of swaps are low. Token seems to be inactive.
Token is deployed only at one blockchain
Contract has 10% buy tax and 9% sell tax.
Taxes are low and contract ownership is renounced.
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Unable to find token on CoinMarketCap
Additional information: link
Unable to find token contract audit
Unable to find audit link on the website
Unable to find code repository for the project
Alexa traffic rank is very low
Additional information: link
Token has no active CoinMarketCap listing / rank
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Token has relatively low CoinGecko rank
Last post in Twitter was more than 180 days ago
Unable to find Blog account (Reddit or Medium)
Unable to find Discord account