✅ Silver Rayleigh is a meme coin project with the aim of giving users the best experience while using the Silver Rayleigh app and making money. ✅ We give users various choices to make money through different modes in the app. ✅ We also aspire to a friendly and strong community for the sustainable development.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
SilverRayleigh.swapBack() (#353-406) sends eth to arbitrary user
Dangerous calls:
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#380)
- (success,None) = address(rewardPoolFeeReceiver).call{gas: 30000,value: amountRewardPool}() (#381)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in SilverRayleigh._transferFrom(address,address,uint256) (#265-291):
External calls:
- swapBack() (#276)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#364-405)
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#380)
- (success,None) = address(rewardPoolFeeReceiver).call{gas: 30000,value: amountRewardPool}() (#381)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#386-397)
External calls sending eth:
- swapBack() (#276)
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#380)
- (success,None) = address(rewardPoolFeeReceiver).call{gas: 30000,value: amountRewardPool}() (#381)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#386-397)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#280)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#285)
- amountReceived = takeFee(sender,recipient,amount) (#282-283)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#332)
Apply the check-effects-interactions pattern.
Additional information: link
Contract ownership is not renounced (belongs to a wallet)
SilverRayleigh.swapBack().success (#380) is written in both
(success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#380)
(success,None) = address(rewardPoolFeeReceiver).call{gas: 30000,value: amountRewardPool}() (#381)
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.
SilverRayleigh.swapBack().e (#401) is a local variable never initialized
SilverRayleigh.buyTokens(uint256,address).reason (#432) 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
SilverRayleigh.swapBack() (#353-406) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#386-397)
Ensure that all the return values of the function calls are used.
Additional information: link
SilverRayleigh.setBuybackMultiplierSettings(uint256,uint256,uint256) (#439-444) should emit an event for:
- buybackMultiplierNumerator = numerator (#441)
- buybackMultiplierDenominator = denominator (#442)
- buybackMultiplierLength = length (#443)
SilverRayleigh.setTxLimit(uint256) (#455-458) should emit an event for:
- _maxTxAmount = amount (#457)
SilverRayleigh.setFees(uint256,uint256,uint256,uint256,uint256,uint256) (#469-479) should emit an event for:
- liquidityFee = _liquidityFee (#470)
- StakingFee = _StakingFee (#471)
- marketingFee = _marketingFee (#472)
- rewardPool = _rewardPool (#473)
- totalBuyFee = _liquidityFee + _StakingFee + _marketingFee + _rewardPool (#474)
- feeDenominator = _feeDenominator (#475)
- totalSellFee = _totalSellFee (#476)
SilverRayleigh.setSwapBackSettings(bool,uint256) (#487-490) should emit an event for:
- swapThreshold = _amount (#489)
SilverRayleigh.setTargetLiquidity(uint256,uint256) (#492-495) should emit an event for:
- targetLiquidity = _target (#493)
- targetLiquidityDenominator = _denominator (#494)
SilverRayleigh.setLaunchedAt(uint256) (#534-536) should emit an event for:
- launchedAt = launched_ (#535)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#143) lacks a zero-check on :
- owner = adr (#144)
SilverRayleigh.setFeeReceivers(address,address,address)._autoLiquidityReceiver (#481) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#482)
SilverRayleigh.setFeeReceivers(address,address,address)._marketingFeeReceiver (#481) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#483)
SilverRayleigh.setFeeReceivers(address,address,address)._rewardPoolFeeReceiver (#481) lacks a zero-check on :
- rewardPoolFeeReceiver = _rewardPoolFeeReceiver (#484)
Check that the address is not zero.
Additional information: link
Variable 'SilverRayleigh.swapBack().e (#401)' in SilverRayleigh.swapBack() (#353-406) potentially used before declaration: SwapBackFailed(string(abi.encodePacked(SwapBack failed with error ,e))) (#402)
Variable 'SilverRayleigh.buyTokens(uint256,address).reason (#432)' in SilverRayleigh.buyTokens(uint256,address) (#420-437) potentially used before declaration: revert(string)(string(abi.encodePacked(Buyback failed with error ,reason))) (#433)
Move all variable declarations prior to any usage of the variable, and ensure that reaching a variable declaration does not depend on some conditional if it is used unconditionally.
Additional information: link
Reentrancy in SilverRayleigh._transferFrom(address,address,uint256) (#265-291):
External calls:
- swapBack() (#276)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#364-405)
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#380)
- (success,None) = address(rewardPoolFeeReceiver).call{gas: 30000,value: amountRewardPool}() (#381)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#386-397)
External calls sending eth:
- swapBack() (#276)
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#380)
- (success,None) = address(rewardPoolFeeReceiver).call{gas: 30000,value: amountRewardPool}() (#381)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#386-397)
State variables written after the call(s):
- launch() (#278)
- launchedAt = block.number (#451)
Reentrancy in SilverRayleigh.constructor() (#212-231):
External calls:
- pancakeV2BNBPair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#214)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = ~ uint256(0) (#215)
- _balances[owner_] = _totalSupply (#229)
- autoLiquidityReceiver = 0x6F33BA931831d53096912a579664C45de79B9e6c (#225)
- isFeeExempt[owner_] = true (#221)
- isFeeExempt[address(this)] = true (#223)
- isTxLimitExempt[owner_] = true (#222)
- isTxLimitExempt[address(this)] = true (#224)
- marketingFeeReceiver = 0xEf579c4C56127ea3316a28Fe80070B281E9EFA8a (#226)
- pairs.push(pancakeV2BNBPair) (#217)
- rewardPoolFeeReceiver = 0x3CD65ccEF85964994e2685Ed145f38b4Cc40F3fe (#227)
Reentrancy in SilverRayleigh.triggerBuyback(uint256,bool) (#408-414):
External calls:
- buyTokens(amount,Staking) (#409)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (#425-436)
State variables written after the call(s):
- buybackMultiplierTriggeredAt = block.timestamp (#411)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in SilverRayleigh._transferFrom(address,address,uint256) (#265-291):
External calls:
- swapBack() (#276)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#364-405)
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#380)
- (success,None) = address(rewardPoolFeeReceiver).call{gas: 30000,value: amountRewardPool}() (#381)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#386-397)
External calls sending eth:
- swapBack() (#276)
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#380)
- (success,None) = address(rewardPoolFeeReceiver).call{gas: 30000,value: amountRewardPool}() (#381)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#386-397)
Event emitted after the call(s):
- Launched(block.number,block.timestamp) (#452)
- launch() (#278)
- Transfer(sender,address(this),feeAmount) (#333)
- amountReceived = takeFee(sender,recipient,amount) (#282-283)
- Transfer(sender,recipient,amountReceived) (#289)
Reentrancy in SilverRayleigh.buyTokens(uint256,address) (#420-437):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (#425-436)
Event emitted after the call(s):
- BoughtBack(amount,to) (#431)
Reentrancy in SilverRayleigh.constructor() (#212-231):
External calls:
- pancakeV2BNBPair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#214)
Event emitted after the call(s):
- Transfer(address(0),owner_,_totalSupply) (#230)
Reentrancy in SilverRayleigh.swapBack() (#353-406):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#364-405)
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#380)
- (success,None) = address(rewardPoolFeeReceiver).call{gas: 30000,value: amountRewardPool}() (#381)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#386-397)
External calls sending eth:
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#380)
- (success,None) = address(rewardPoolFeeReceiver).call{gas: 30000,value: amountRewardPool}() (#381)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#386-397)
Event emitted after the call(s):
- AutoLiquify(amountToLiquify,amountBNBLiquidity) (#394)
- AutoLiquify(0,0) (#396)
- SwapBackSuccess(amountToSwap) (#400)
Reentrancy in SilverRayleigh.swapBack() (#353-406):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#364-405)
Event emitted after the call(s):
- SwapBackFailed(string(abi.encodePacked(SwapBack failed with error ,e))) (#402)
- SwapBackFailed(SwapBack failed without an error message from pancakeSwap) (#404)
Reentrancy in SilverRayleigh.triggerBuyback(uint256,bool) (#408-414):
External calls:
- buyTokens(amount,Staking) (#409)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (#425-436)
Event emitted after the call(s):
- BuybackMultiplierActive(buybackMultiplierLength) (#412)
Apply the check-effects-interactions pattern.
Additional information: link
SilverRayleigh._transferFrom(address,address,uint256) (#265-291) uses timestamp for comparisons
Dangerous comparisons:
- require(bool)(_balances[sender] > 0) (#278)
SilverRayleigh.getTotalFee(bool) (#316-320) uses timestamp for comparisons
Dangerous comparisons:
- selling && buybackMultiplierTriggeredAt.add(buybackMultiplierLength) > block.timestamp (#318)
SilverRayleigh.shouldSwapBack() (#346-351) uses timestamp for comparisons
Dangerous comparisons:
- msg.sender != pancakeV2BNBPair && ! inSwap && swapEnabled && _balances[address(this)] >= swapThreshold (#347-350)
SilverRayleigh.isOverLiquified(uint256,uint256) (#504-506) uses timestamp for comparisons
Dangerous comparisons:
- getLiquidityBacking(accuracy) > target (#505)
SilverRayleigh.multiTransferFixed(address,address[],uint256) (#521-532) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(balanceOf(from) >= SCCC,Not enough tokens in wallet) (#527)
Avoid relying on block.timestamp.
Additional information: link
SilverRayleigh._maxTxAmount (#167) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 10
SilverRayleigh.totalBuyFee (#180) is set pre-construction with a non-constant function or state variable:
- liquidityFee + StakingFee + marketingFee + rewardPool
SilverRayleigh.swapThreshold (#208) 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.8.13 (#3) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
solc-0.8.13 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 SilverRayleigh.swapBack() (#353-406):
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#380)
- (success,None) = address(rewardPoolFeeReceiver).call{gas: 30000,value: amountRewardPool}() (#381)
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() (#64) is not in mixedCase
Parameter SilverRayleigh.setFees(uint256,uint256,uint256,uint256,uint256,uint256)._liquidityFee (#469) is not in mixedCase
Parameter SilverRayleigh.setFees(uint256,uint256,uint256,uint256,uint256,uint256)._StakingFee (#469) is not in mixedCase
Parameter SilverRayleigh.setFees(uint256,uint256,uint256,uint256,uint256,uint256)._marketingFee (#469) is not in mixedCase
Parameter SilverRayleigh.setFees(uint256,uint256,uint256,uint256,uint256,uint256)._rewardPool (#469) is not in mixedCase
Parameter SilverRayleigh.setFees(uint256,uint256,uint256,uint256,uint256,uint256)._feeDenominator (#469) is not in mixedCase
Parameter SilverRayleigh.setFees(uint256,uint256,uint256,uint256,uint256,uint256)._totalSellFee (#469) is not in mixedCase
Parameter SilverRayleigh.setFeeReceivers(address,address,address)._autoLiquidityReceiver (#481) is not in mixedCase
Parameter SilverRayleigh.setFeeReceivers(address,address,address)._marketingFeeReceiver (#481) is not in mixedCase
Parameter SilverRayleigh.setFeeReceivers(address,address,address)._rewardPoolFeeReceiver (#481) is not in mixedCase
Parameter SilverRayleigh.setSwapBackSettings(bool,uint256)._enabled (#487) is not in mixedCase
Parameter SilverRayleigh.setSwapBackSettings(bool,uint256)._amount (#487) is not in mixedCase
Parameter SilverRayleigh.setTargetLiquidity(uint256,uint256)._target (#492) is not in mixedCase
Parameter SilverRayleigh.setTargetLiquidity(uint256,uint256)._denominator (#492) is not in mixedCase
Parameter SilverRayleigh.setFeesOnNormalTransfers(bool)._enabled (#517) is not in mixedCase
Variable SilverRayleigh.WBNB (#157) is not in mixedCase
Variable SilverRayleigh.DEAD (#158) is not in mixedCase
Variable SilverRayleigh.ZERO (#159) is not in mixedCase
Variable SilverRayleigh.Staking (#160) is not in mixedCase
Constant SilverRayleigh._name (#162) is not in UPPER_CASE_WITH_UNDERSCORES
Constant SilverRayleigh._symbol (#163) is not in UPPER_CASE_WITH_UNDERSCORES
Constant SilverRayleigh._decimals (#164) is not in UPPER_CASE_WITH_UNDERSCORES
Variable SilverRayleigh._totalSupply (#166) is not in mixedCase
Variable SilverRayleigh._maxTxAmount (#167) is not in mixedCase
Variable SilverRayleigh._balances (#169) is not in mixedCase
Variable SilverRayleigh._allowances (#170) is not in mixedCase
Variable SilverRayleigh.StakingFee (#176) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#69) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#70)
Prevent variables from having similar names.
Additional information: link
SilverRayleigh.slitherConstructorVariables() (#154-567) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#158)
SilverRayleigh.slitherConstructorVariables() (#154-567) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#159)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SilverRayleigh.DEAD (#158) should be constant
SilverRayleigh.Staking (#160) should be constant
SilverRayleigh.WBNB (#157) should be constant
SilverRayleigh.ZERO (#159) should be constant
SilverRayleigh._totalSupply (#166) 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) (#127-129)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#131-133)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#143-147)
Use the external attribute for functions never called from the contract.
Additional information: link
Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive. Ignore for presale.
Average 30d PancakeSwap volume is less than $100. Token is either dead or inactive.
Average 30d number of PancakeSwap swaps is less than 1. Token is either dead or inactive.
Contract has 5% buy tax and 3% sell tax.
Taxes are low but contract ownership is not renounced. Token has a high risk of becoming a honeypot.
Average 30d PancakeSwap liquidity is low.
Token is deployed only at one blockchain
Token has only one trading pair
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 find audit link on the website
Unable to find whitepaper link on the website
Token is not listed at Mobula.Finance
Additional information: link
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Telegram account link seems to be invalid
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account
Twitter account has few posts