Token Shelby is a proof-of-stake blockchain platform for reference utility crypto-currency used for the world of arcade games and entertainment fans. The goal of the Token Shelby is to be a reference utility crypto-currency used for the world of arcade games and entertainment fans. The objective is to create value using the smart contracts for all investors in this decentralised economy which is exponentially growing. Our ambition is to set-up our new crypto-currency available on as many smart contract powered platforms worldwide.
Too many vulnerabilities (Unchecked transfer, Reentrancy vulnerability, etc.). High risk of a scam. DYOR & manual audit are advised.
TOKENSHELBY.swapBack() (#617-663) sends eth to arbitrary user
Dangerous calls:
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#647)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in TOKENSHELBY._transferFrom(address,address,uint256) (#552-593):
External calls:
- swapBack() (#562)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#627-633)
- dividendDistributor.deposit{value: amountBNBReflection}() (#643)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#647)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#653-660)
External calls sending eth:
- swapBack() (#562)
- dividendDistributor.deposit{value: amountBNBReflection}() (#643)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#647)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#653-660)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#570)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#578)
- finalAmount = takeFee(sender,recipient,amount) (#577)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#607)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.distributeDividend(address) (#247-258) ignores return value by RewardToken.transfer(shareholder,amount) (#253)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
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.
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
Contract ownership is not renounced (belongs to a wallet)
TOKENSHELBY.swapBack().tmpSuccess (#647) is written in both
(tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#647)
tmpSuccess = false (#650)
Fix or remove the writes.
Additional information: link
DividendDistributor.distributeDividend(address) (#247-258) has external calls inside a loop: RewardToken.transfer(shareholder,amount) (#253)
Favor pull over push strategy for external calls.
Additional information: link
Function IDEXRouter.WETH() (#76) is not in mixedCase
Variable DividendDistributor._token (#132) is not in mixedCase
Variable DividendDistributor.RewardToken (#142) is not in mixedCase
Constant TOKENSHELBY._name (#360) is not in UPPER_CASE_WITH_UNDERSCORES
Constant TOKENSHELBY._symbol (#361) is not in UPPER_CASE_WITH_UNDERSCORES
Constant TOKENSHELBY._decimals (#362) is not in UPPER_CASE_WITH_UNDERSCORES
Variable TOKENSHELBY.DEAD (#364) is not in mixedCase
Variable TOKENSHELBY.ZERO (#365) is not in mixedCase
Variable TOKENSHELBY.RewardToken (#367) is not in mixedCase
Variable TOKENSHELBY._totalSupply (#369) is not in mixedCase
Variable TOKENSHELBY._maxTxAmount (#370) is not in mixedCase
Variable TOKENSHELBY._walletMax (#371) is not in mixedCase
Variable TOKENSHELBY._balances (#375) is not in mixedCase
Variable TOKENSHELBY._allowances (#376) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#81) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#82)
Prevent variables from having similar names.
Additional information: link
TOKENSHELBY.slitherConstructorVariables() (#356-668) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#364)
TOKENSHELBY.slitherConstructorVariables() (#356-668) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#365)
TOKENSHELBY.slitherConstructorVariables() (#356-668) uses literals with too many digits:
- distributorGas = 500000 (#400)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
TOKENSHELBY.RewardToken (#367) is never used in TOKENSHELBY (#356-668)
Remove unused state variables.
Additional information: link
DividendDistributor.dividendsPerShareAccuracyFactor (#153) should be constant
DividendDistributor.routerAddress (#141) should be constant
TOKENSHELBY.DEAD (#364) should be constant
TOKENSHELBY.RewardToken (#367) should be constant
TOKENSHELBY.ZERO (#365) should be constant
TOKENSHELBY._totalSupply (#369) should be constant
TOKENSHELBY.routerAddress (#366) 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) (#319-321)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#326-328)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#347-351)
getCirculatingSupply() should be declared external:
- TOKENSHELBY.getCirculatingSupply() (#454-456)
tradingStatus(bool) should be declared external:
- TOKENSHELBY.tradingStatus(bool) (#613-615)
Use the external attribute for functions never called from the contract.
Additional information: link
Reentrancy in DividendDistributor.distributeDividend(address) (#247-258):
External calls:
- RewardToken.transfer(shareholder,amount) (#253)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (#255)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#256)
Reentrancy in DividendDistributor.process(uint256) (#218-240):
External calls:
- distributeDividend(shareholders[currentIndex]) (#232)
- RewardToken.transfer(shareholder,amount) (#253)
State variables written after the call(s):
- currentIndex ++ (#237)
Reentrancy in DividendDistributor.setShare(address,uint256) (#181-196):
External calls:
- distributeDividend(shareholder) (#184)
- RewardToken.transfer(shareholder,amount) (#253)
State variables written after the call(s):
- shares[shareholder].amount = amount (#194)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#195)
Apply the check-effects-interactions pattern.
Additional information: link
TOKENSHELBY.swapBack() (#617-663) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#653-660)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendDistributor.setDistributionCriteria(uint256,uint256) (#176-179) should emit an event for:
- minPeriod = newMinPeriod (#177)
- minDistribution = newMinDistribution (#178)
TOKENSHELBY.changeFees(uint256,uint256,uint256,uint256) (#510-518) should emit an event for:
- liquidityFee = newLiqFee (#511)
- rewardsFee = newRewardFee (#512)
- totalFee = liquidityFee.add(marketingFee).add(rewardsFee) (#516)
- totalFeeIfSelling = totalFee.add(extraFeeOnSell) (#517)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#347) lacks a zero-check on :
- owner = adr (#348)
TOKENSHELBY.changeFeeReceivers(address,address).newLiquidityReceiver (#520) lacks a zero-check on :
- autoLiquidityReceiver = newLiquidityReceiver (#521)
TOKENSHELBY.changeFeeReceivers(address,address).newMarketingWallet (#520) lacks a zero-check on :
- marketingWallet = newMarketingWallet (#522)
Check that the address is not zero.
Additional information: link
Reentrancy in TOKENSHELBY._transferFrom(address,address,uint256) (#552-593):
External calls:
- swapBack() (#562)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#627-633)
- dividendDistributor.deposit{value: amountBNBReflection}() (#643)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#647)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#653-660)
External calls sending eth:
- swapBack() (#562)
- dividendDistributor.deposit{value: amountBNBReflection}() (#643)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#647)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#653-660)
State variables written after the call(s):
- launch() (#566)
- launchedAt = block.number (#476)
Reentrancy in TOKENSHELBY.constructor() (#414-444):
External calls:
- pair = IDEXFactory(router.factory()).createPair(router.WETH(),address(this)) (#417)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = uint256(- 1) (#418)
- _balances[msg.sender] = _totalSupply (#442)
- autoLiquidityReceiver = 0x1B4217bE30B51B9D4DC773bD7F0A2FdB17E67654 (#435)
- dividendDistributor = new DividendDistributor(address(router)) (#420)
- isDividendExempt[pair] = true (#428)
- isDividendExempt[msg.sender] = true (#429)
- isDividendExempt[address(this)] = true (#430)
- isDividendExempt[DEAD] = true (#431)
- isDividendExempt[ZERO] = true (#432)
- isFeeExempt[msg.sender] = true (#422)
- isFeeExempt[address(this)] = true (#423)
- isTxLimitExempt[msg.sender] = true (#425)
- isTxLimitExempt[pair] = true (#426)
- marketingWallet = 0xbea552852245d8779C4707cBC91570657472605D (#436)
- totalFee = liquidityFee.add(marketingFee).add(rewardsFee) (#439)
- totalFeeIfSelling = totalFee.add(extraFeeOnSell) (#440)
Reentrancy in DividendDistributor.deposit() (#198-216):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (#206-211)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (#215)
- totalDividends = totalDividends.add(amount) (#214)
Reentrancy in DividendDistributor.distributeDividend(address) (#247-258):
External calls:
- RewardToken.transfer(shareholder,amount) (#253)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#254)
Reentrancy in DividendDistributor.setShare(address,uint256) (#181-196):
External calls:
- distributeDividend(shareholder) (#184)
- RewardToken.transfer(shareholder,amount) (#253)
State variables written after the call(s):
- addShareholder(shareholder) (#188)
- shareholderIndexes[shareholder] = shareholders.length (#282)
- removeShareholder(shareholder) (#190)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#288)
- addShareholder(shareholder) (#188)
- shareholders.push(shareholder) (#283)
- removeShareholder(shareholder) (#190)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#287)
- shareholders.pop() (#289)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#193)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in TOKENSHELBY._transferFrom(address,address,uint256) (#552-593):
External calls:
- swapBack() (#562)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#627-633)
- dividendDistributor.deposit{value: amountBNBReflection}() (#643)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#647)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#653-660)
- dividendDistributor.setShare(sender,_balances[sender]) (#582)
- dividendDistributor.setShare(recipient,_balances[recipient]) (#586)
- dividendDistributor.process(distributorGas) (#589)
External calls sending eth:
- swapBack() (#562)
- dividendDistributor.deposit{value: amountBNBReflection}() (#643)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#647)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#653-660)
Event emitted after the call(s):
- Transfer(sender,recipient,finalAmount) (#591)
Reentrancy in TOKENSHELBY._transferFrom(address,address,uint256) (#552-593):
External calls:
- swapBack() (#562)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#627-633)
- dividendDistributor.deposit{value: amountBNBReflection}() (#643)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#647)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#653-660)
External calls sending eth:
- swapBack() (#562)
- dividendDistributor.deposit{value: amountBNBReflection}() (#643)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#647)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#653-660)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#608)
- finalAmount = takeFee(sender,recipient,amount) (#577)
Reentrancy in TOKENSHELBY.constructor() (#414-444):
External calls:
- pair = IDEXFactory(router.factory()).createPair(router.WETH(),address(this)) (#417)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#443)
Reentrancy in TOKENSHELBY.swapBack() (#617-663):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#627-633)
- dividendDistributor.deposit{value: amountBNBReflection}() (#643)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#647)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#653-660)
External calls sending eth:
- dividendDistributor.deposit{value: amountBNBReflection}() (#643)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#647)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#653-660)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#661)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.shouldDistribute(address) (#242-245) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#243-244)
Avoid relying on block.timestamp.
Additional information: link
DividendDistributor.process(uint256) (#218-240) has costly operations inside a loop:
- currentIndex = 0 (#229)
DividendDistributor.distributeDividend(address) (#247-258) has costly operations inside a loop:
- totalDistributed = totalDistributed.add(amount) (#252)
DividendDistributor.process(uint256) (#218-240) has costly operations inside a loop:
- currentIndex ++ (#237)
Use a local variable to hold the loop computation result.
Additional information: link
TOKENSHELBY._maxTxAmount (#370) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 2 / 1000
TOKENSHELBY._walletMax (#371) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 3 / 200
TOKENSHELBY.swapThreshold (#406) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 5 / 4000
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 (#17) 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 TOKENSHELBY.swapBack() (#617-663):
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#647)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
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
Young tokens have high risks of price dump / death
Token has relatively low CoinGecko rank
Young tokens have high risks of price dump / death
Token has relatively low CoinMarketCap rank
Telegram account link seems to be invalid
Unable to find Blog account (Reddit or Medium)