LittleGhosts is a play-to-earn mmorpg that is heavily based around cryptocurrency and NFTs. The game is powered by Unity and offers a truly unique 2.5D experience. Being heavily based around cryptocurrency they take great pride that most of their services are decentralized through smart contracts. This ensures trust in their community that one person does not hold too much power in the LittleGhosts ecosystem.
LittleGhosts Ectoplasm was released as a utility token to help power and govern the LittleGhosts ecosystem. By holding a certain amount of tokens, holders can access the LittleGhosts DAO to vote for future propositions. Also, play-to-earn rewards in game are multiplied based on the number of ECTO tokens the player owns. LittleGhosts plan on expanding the utility around the token and future updates are in the works.
LittleGhosts Ectoplasm has a 15% transactional tax that is used to reward holders and guarantee longevity. 8% will be used to reward holders of the token directly in BNB,2% will be used to reward holders of the LittleGhost NFT in BNB, 1% will go to a pool to fund play-to-earn aspects in their game, 1% will go to a staking pool ,and 3% will go to the team for marketing and development purposes.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Reentrancy in Ecto._transferFrom(address,address,uint256) (#542-583):
External calls:
- swapBack() (#552)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#620-626)
- dividendDistributor.deposit{value: amountBNBReflection}() (#635)
External calls sending eth:
- swapBack() (#552)
- recipient.transfer(amount) (#608)
- dividendDistributor.deposit{value: amountBNBReflection}() (#635)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#560)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#568)
- finalAmount = takeFee(sender,recipient,amount) (#567)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#597)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.distributeDividend(address) (#237-248) ignores return value by RewardToken.transfer(shareholder,amount) (#243)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
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.
Not a direct threat, but may indicate unreliable intentions of developer. Widespread names (e.g. Elon, King, Moon, Doge) are common among meme-tokens and scams. The allow to gain free hype and attract unexperienced investors.
Reentrancy in DividendDistributor.distributeDividend(address) (#237-248):
External calls:
- RewardToken.transfer(shareholder,amount) (#243)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (#245)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#246)
Reentrancy in DividendDistributor.process(uint256) (#208-230):
External calls:
- distributeDividend(shareholders[currentIndex]) (#222)
- RewardToken.transfer(shareholder,amount) (#243)
State variables written after the call(s):
- currentIndex ++ (#227)
Reentrancy in DividendDistributor.setShare(address,uint256) (#171-186):
External calls:
- distributeDividend(shareholder) (#174)
- RewardToken.transfer(shareholder,amount) (#243)
State variables written after the call(s):
- shares[shareholder].amount = amount (#184)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#185)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.setDistributionCriteria(uint256,uint256) (#162-165) should emit an event for:
- minPeriod = newMinPeriod (#163)
- minDistribution = newMinDistribution (#164)
Ecto.changeFees(uint256,uint256,uint256) (#502-509) should emit an event for:
- liquidityFee = newLiqFee (#503)
- rewardsFee = newRewardFee (#504)
- totalFee = liquidityFee.add(rewardsFee) (#507)
- totalFeeIfSelling = totalFee.add(extraFeeOnSell) (#508)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#337) lacks a zero-check on :
- owner = adr (#338)
Ecto.changeRewardToken(address).token (#474) lacks a zero-check on :
- RewardToken = token (#475)
Ecto.changeFeeReceivers(address).newLiquidityReceiver (#511) lacks a zero-check on :
- autoLiquidityReceiver = newLiquidityReceiver (#512)
Check that the address is not zero.
Additional information: link
DividendDistributor.distributeDividend(address) (#237-248) has external calls inside a loop: RewardToken.transfer(shareholder,amount) (#243)
Favor pull over push strategy for external calls.
Additional information: link
Reentrancy in Ecto._transferFrom(address,address,uint256) (#542-583):
External calls:
- swapBack() (#552)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#620-626)
- dividendDistributor.deposit{value: amountBNBReflection}() (#635)
External calls sending eth:
- swapBack() (#552)
- recipient.transfer(amount) (#608)
- dividendDistributor.deposit{value: amountBNBReflection}() (#635)
State variables written after the call(s):
- launch() (#556)
- launchedAt = block.number (#464)
Reentrancy in Ecto.constructor() (#405-432):
External calls:
- pair = IDEXFactory(router.factory()).createPair(router.WETH(),address(this)) (#408)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = uint256(- 1) (#409)
- _balances[msg.sender] = _totalSupply (#430)
- dividendDistributor = new DividendDistributor(address(router)) (#413)
- isDividendExempt[pair] = true (#421)
- isDividendExempt[msg.sender] = true (#422)
- isDividendExempt[address(this)] = true (#423)
- isDividendExempt[DEAD] = true (#424)
- isDividendExempt[ZERO] = true (#425)
- isFeeExempt[msg.sender] = true (#415)
- isFeeExempt[address(this)] = true (#416)
- isTxLimitExempt[msg.sender] = true (#418)
- isTxLimitExempt[pair] = true (#419)
- teamWallet = 0x896986Db81727B2C7253cE533DF44fC6A42d7A78 (#411)
- totalFee = liquidityFee.add(rewardsFee) (#427)
- totalFeeIfSelling = totalFee.add(extraFeeOnSell) (#428)
Reentrancy in DividendDistributor.deposit() (#188-206):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (#196-201)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (#205)
- totalDividends = totalDividends.add(amount) (#204)
Reentrancy in DividendDistributor.distributeDividend(address) (#237-248):
External calls:
- RewardToken.transfer(shareholder,amount) (#243)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#244)
Reentrancy in DividendDistributor.setShare(address,uint256) (#171-186):
External calls:
- distributeDividend(shareholder) (#174)
- RewardToken.transfer(shareholder,amount) (#243)
State variables written after the call(s):
- addShareholder(shareholder) (#178)
- shareholderIndexes[shareholder] = shareholders.length (#272)
- removeShareholder(shareholder) (#180)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#278)
- addShareholder(shareholder) (#178)
- shareholders.push(shareholder) (#273)
- removeShareholder(shareholder) (#180)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#277)
- shareholders.pop() (#279)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#183)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Ecto._transferFrom(address,address,uint256) (#542-583):
External calls:
- swapBack() (#552)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#620-626)
- dividendDistributor.deposit{value: amountBNBReflection}() (#635)
- dividendDistributor.setShare(sender,_balances[sender]) (#572)
- dividendDistributor.setShare(recipient,_balances[recipient]) (#576)
- dividendDistributor.process(distributorGas) (#579)
External calls sending eth:
- swapBack() (#552)
- recipient.transfer(amount) (#608)
- dividendDistributor.deposit{value: amountBNBReflection}() (#635)
Event emitted after the call(s):
- Transfer(sender,recipient,finalAmount) (#581)
Reentrancy in Ecto._transferFrom(address,address,uint256) (#542-583):
External calls:
- swapBack() (#552)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#620-626)
- dividendDistributor.deposit{value: amountBNBReflection}() (#635)
External calls sending eth:
- swapBack() (#552)
- recipient.transfer(amount) (#608)
- dividendDistributor.deposit{value: amountBNBReflection}() (#635)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#598)
- finalAmount = takeFee(sender,recipient,amount) (#567)
Reentrancy in Ecto.constructor() (#405-432):
External calls:
- pair = IDEXFactory(router.factory()).createPair(router.WETH(),address(this)) (#408)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#431)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.shouldDistribute(address) (#232-235) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#233-234)
Avoid relying on block.timestamp.
Additional information: link
DividendDistributor.process(uint256) (#208-230) has costly operations inside a loop:
- currentIndex = 0 (#219)
DividendDistributor.distributeDividend(address) (#237-248) has costly operations inside a loop:
- totalDistributed = totalDistributed.add(amount) (#242)
DividendDistributor.process(uint256) (#208-230) has costly operations inside a loop:
- currentIndex ++ (#227)
Use a local variable to hold the loop computation result.
Additional information: link
Ecto._maxTxAmount (#360) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 2 / 200
Ecto._walletMax (#361) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 3 / 100
Ecto.swapThreshold (#397) 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 (#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
Function IDEXRouter.WETH() (#62) is not in mixedCase
Variable DividendDistributor._token (#118) is not in mixedCase
Variable DividendDistributor.RewardToken (#128) is not in mixedCase
Constant Ecto._name (#350) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Ecto._symbol (#351) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Ecto._decimals (#352) is not in UPPER_CASE_WITH_UNDERSCORES
Variable Ecto.DEAD (#354) is not in mixedCase
Variable Ecto.ZERO (#355) is not in mixedCase
Variable Ecto.RewardToken (#357) is not in mixedCase
Variable Ecto._totalSupply (#359) is not in mixedCase
Variable Ecto._maxTxAmount (#360) is not in mixedCase
Variable Ecto._walletMax (#361) is not in mixedCase
Variable Ecto._balances (#365) is not in mixedCase
Variable Ecto._allowances (#366) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Reentrancy in Ecto._transferFrom(address,address,uint256) (#542-583):
External calls:
- swapBack() (#552)
- recipient.transfer(amount) (#608)
External calls sending eth:
- swapBack() (#552)
- recipient.transfer(amount) (#608)
- dividendDistributor.deposit{value: amountBNBReflection}() (#635)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#560)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#568)
- finalAmount = takeFee(sender,recipient,amount) (#567)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#597)
- launch() (#556)
- launchedAt = block.number (#464)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#598)
- finalAmount = takeFee(sender,recipient,amount) (#567)
- Transfer(sender,recipient,finalAmount) (#581)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#67) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#68)
Prevent variables from having similar names.
Additional information: link
Ecto.changeDistributorSettings(uint256) (#525-528) uses literals with too many digits:
- require(bool)(gas < 1500000) (#526)
Ecto.slitherConstructorVariables() (#346-641) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#354)
Ecto.slitherConstructorVariables() (#346-641) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#355)
Ecto.slitherConstructorVariables() (#346-641) uses literals with too many digits:
- distributorGas = 500000 (#391)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
DividendDistributor.dividendsPerShareAccuracyFactor (#139) should be constant
DividendDistributor.routerAddress (#127) should be constant
Ecto.DEAD (#354) should be constant
Ecto.ZERO (#355) should be constant
Ecto._totalSupply (#359) should be constant
Ecto.routerAddress (#356) 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) (#309-311)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#316-318)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#337-341)
getCirculatingSupply() should be declared external:
- Ecto.getCirculatingSupply() (#442-444)
tradingStatus(bool) should be declared external:
- Ecto.tradingStatus(bool) (#603-605)
Use the external attribute for functions never called from the contract.
Additional information: link
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Unable to find token contract audit
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 token on CoinHunt
Additional information: link
Unable to find code repository for the project
Young tokens have high risks of price dump / death
Young tokens have high risks of scam / 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
Last post in Twitter was more than 30 days ago
Unable to find Youtube account