Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
System.rescueLossChain(address) (contracts/System.sol#15) sends eth to arbitrary user
Dangerous calls:
- _recipient.transfer(address(this).balance) (contracts/System.sol#15)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in Dream._transfer(address,address,uint256) (contracts/Dream.sol#62-87):
External calls:
- ! handSwap() (contracts/Dream.sol#80)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (contracts/PoolTool.sol#35-42)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: address(this).balance}(0,rs.path,address(this),block.timestamp) (contracts/RewardToken.sol#107-112)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountDesire,0,path,address(this),block.timestamp) (contracts/PoolTool.sol#31)
- distributeRewardToken() (contracts/Dream.sol#80)
- token.transfer(userMap[users[i_scope_2]],prizePerUser) (contracts/RewardToken.sol#96)
External calls sending eth:
- ! handSwap() (contracts/Dream.sol#80)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (contracts/PoolTool.sol#35-42)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: address(this).balance}(0,rs.path,address(this),block.timestamp) (contracts/RewardToken.sol#107-112)
State variables written after the call(s):
- super._transfer(from,to,amount - feeAmount) (contracts/Dream.sol#86)
- _balances[from] = fromBalance - amount (contracts/ERC777.sol#170)
- _balances[to] += amount (contracts/ERC777.sol#172)
Apply the check-effects-interactions pattern.
Additional information: link
RewardToken.handRewards(uint256) (contracts/RewardToken.sol#67-98) ignores return value by token.transfer(userMap[users[i_scope_2]],prizePerUser) (contracts/RewardToken.sol#96)
System.rescueLossToken(IERC20,address) (contracts/System.sol#11-14) ignores return value by token_.transfer(_recipient,token_.balanceOf(address(this))) (contracts/System.sol#13)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
RewardToken.distributeRewardToken() (contracts/RewardToken.sol#99-104) uses a dangerous strict equality:
- amount == 0 (contracts/RewardToken.sol#102)
RewardToken.handRewards(uint256) (contracts/RewardToken.sol#67-98) uses a dangerous strict equality:
- totalAmount == 0 (contracts/RewardToken.sol#92)
Dream.handSwap() (contracts/Dream.sol#102-117) uses a dangerous strict equality:
- total == 0 (contracts/Dream.sol#104)
Don't use strict equality to determine if an account has enough Ether or tokens.
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.
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.
Not a direct threat, but may indicate unreliable intentions of developer. Both name and ticker of current token are widespread, i.e. common across multiple tokens. This is slightly suspicious
PoolTool.addLiquidityETH(uint256,uint256) (contracts/PoolTool.sol#34-43) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (contracts/PoolTool.sol#35-42)
Ensure that all the return values of the function calls are used.
Additional information: link
System.rescueLossChain(address)._recipient (contracts/System.sol#15) lacks a zero-check on :
- _recipient.transfer(address(this).balance) (contracts/System.sol#15)
Dream.constructor(address,address,address)._utmAddress (contracts/Dream.sol#20) lacks a zero-check on :
- utmAddress = _utmAddress (contracts/Dream.sol#23)
Check that the address is not zero.
Additional information: link
Dream.handAllFees(address,address,uint256) (contracts/Dream.sol#88-100) performs a multiplication on the result of a division:
-feeParent = amount * rate4prize / rate4prizeLevel / divBase (contracts/Dream.sol#92)
-feeParent * rate4prizeLevel + fee (contracts/Dream.sol#99)
Dream.handSwap() (contracts/Dream.sol#102-117) performs a multiplication on the result of a division:
-amountLiquidityReal = amountLiquidity / 2 (contracts/Dream.sol#106)
-addLiquidityETH((ethAfter - ethBefore) * amountLiquidityReal / amountDesire,amountLiquidityReal) (contracts/Dream.sol#112)
Consider ordering multiplication before division.
Additional information: link
RewardToken.handRewards(uint256).counter (contracts/RewardToken.sol#68) is a local variable never initialized
Dream._transfer(address,address,uint256).feeAmount (contracts/Dream.sol#63) 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
PairManager.balanceOfLiquidity(address) (contracts/PairManager.sol#56-64) has external calls inside a loop: balance = IERC20(pairLists[i].pair).balanceOf(_user) (contracts/PairManager.sol#58)
PoolTool.getPoolInfo(address) (contracts/PoolTool.sol#44-52) has external calls inside a loop: (_reserve0,_reserve1) = IPair(pair).getReserves() (contracts/PoolTool.sol#45)
PoolTool.getPoolInfo(address) (contracts/PoolTool.sol#44-52) has external calls inside a loop: IPair(pair).token0() == uniswapV2Router.WETH() (contracts/PoolTool.sol#48)
PoolTool.swapTokensForETH(uint256) (contracts/PoolTool.sol#27-32) has external calls inside a loop: path[1] = uniswapV2Router.WETH() (contracts/PoolTool.sol#30)
PoolTool.swapTokensForETH(uint256) (contracts/PoolTool.sol#27-32) has external calls inside a loop: uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountDesire,0,path,address(this),block.timestamp) (contracts/PoolTool.sol#31)
PoolTool.addLiquidityETH(uint256,uint256) (contracts/PoolTool.sol#34-43) has external calls inside a loop: uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (contracts/PoolTool.sol#35-42)
RewardToken.swapEth4RewardToken() (contracts/RewardToken.sol#106-113) has external calls inside a loop: uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: address(this).balance}(0,rs.path,address(this),block.timestamp) (contracts/RewardToken.sol#107-112)
RewardToken.distributeRewardToken() (contracts/RewardToken.sol#99-104) has external calls inside a loop: amount = token.balanceOf(address(this)) (contracts/RewardToken.sol#101)
RewardToken.handRewards(uint256) (contracts/RewardToken.sol#67-98) has external calls inside a loop: token.transfer(userMap[users[i_scope_2]],prizePerUser) (contracts/RewardToken.sol#96)
Favor pull over push strategy for external calls.
Additional information: link
Reentrancy in ERC777._burn(address,uint256,bytes,bytes) (contracts/ERC777.sol#120-133):
External calls:
- _callTokensToSend(operator,from,address(0),amount,data,operatorData) (contracts/ERC777.sol#123)
- IERC777Sender(implementer).tokensToSend(operator,from,to,amount,userData,operatorData) (contracts/ERC777.sol#147)
State variables written after the call(s):
- _balances[from] = fromBalance - amount (contracts/ERC777.sol#128)
- _totalSupply -= amount (contracts/ERC777.sol#130)
Reentrancy in ERC777._send(address,address,uint256,bytes,bytes,bool) (contracts/ERC777.sol#112-119):
External calls:
- _callTokensToSend(operator,from,to,amount,userData,operatorData) (contracts/ERC777.sol#116)
- IERC777Sender(implementer).tokensToSend(operator,from,to,amount,userData,operatorData) (contracts/ERC777.sol#147)
State variables written after the call(s):
- _move(operator,from,to,amount,userData,operatorData) (contracts/ERC777.sol#117)
- _balances[from] = fromBalance - amount (contracts/ERC777.sol#170)
- _balances[to] += amount (contracts/ERC777.sol#172)
Reentrancy in Dream.constructor(address,address,address) (contracts/Dream.sol#20-43):
External calls:
- initIRouter(_router) (contracts/Dream.sol#21)
- uniswapPair = IFactory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (contracts/PoolTool.sol#25)
- StandardToken(Dream,Dream) (contracts/Dream.sol#20)
- _ERC1820_REGISTRY.setInterfaceImplementer(address(this),keccak256(bytes)(ERC777Token),address(this)) (contracts/ERC777.sol#31)
- _ERC1820_REGISTRY.setInterfaceImplementer(address(this),keccak256(bytes)(ERC20Token),address(this)) (contracts/ERC777.sol#32)
State variables written after the call(s):
- pairAdd(uniswapPair,100000000000000000000,100,1) (contracts/Dream.sol#22)
- box[user] = true (contracts/RewardManager.sol#7)
- excludeFromReward(address(0)) (contracts/Dream.sol#28)
- box[user] = true (contracts/RewardManager.sol#7)
- excludeFromReward(address(1)) (contracts/Dream.sol#29)
- box[user] = true (contracts/RewardManager.sol#7)
- excludeFromReward(address(this)) (contracts/Dream.sol#30)
- box[user] = true (contracts/RewardManager.sol#7)
- excludeFromReward(addressDEAD) (contracts/Dream.sol#31)
- box[user] = true (contracts/RewardManager.sol#7)
- excludeFromReward(owner()) (contracts/Dream.sol#32)
- box[user] = true (contracts/RewardManager.sol#7)
- excludeFromReward(uniswapPair) (contracts/Dream.sol#33)
- box[user] = true (contracts/RewardManager.sol#7)
- excludeFromFee(owner()) (contracts/Dream.sol#34)
- feeBox[user] = true (contracts/FeeManager.sol#10)
- excludeFromFee(_router) (contracts/Dream.sol#35)
- feeBox[user] = true (contracts/FeeManager.sol#10)
- excludeFromFee(address(this)) (contracts/Dream.sol#36)
- feeBox[user] = true (contracts/FeeManager.sol#10)
- excludeFromFee(utmAddress) (contracts/Dream.sol#37)
- feeBox[user] = true (contracts/FeeManager.sol#10)
- pairAdd(uniswapPair,100000000000000000000,100,1) (contracts/Dream.sol#22)
- pairLists.push(PairStruct(_pair,_rewardThreshold,_rewardTimes,_rewardTimesBase)) (contracts/PairManager.sol#32)
- _updateRelationship(utmAddress,utmAddress) (contracts/Dream.sol#38)
- relationship[child] = parent (contracts/RelationshipManager.sol#8)
- _updateRelationship(utmAddress,owner()) (contracts/Dream.sol#39)
- relationship[child] = parent (contracts/RelationshipManager.sol#8)
- _updateRewardContract(_reward,path) (contracts/Dream.sol#27)
- rs.contractAddress = addr (contracts/RewardToken.sol#40)
- rs.path = path (contracts/RewardToken.sol#41)
- initIRouter(_router) (contracts/Dream.sol#21)
- uniswapPair = IFactory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (contracts/PoolTool.sol#25)
- utmAddress = _utmAddress (contracts/Dream.sol#23)
Reentrancy in Dream.constructor(address,address,address) (contracts/Dream.sol#20-43):
External calls:
- initIRouter(_router) (contracts/Dream.sol#21)
- uniswapPair = IFactory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (contracts/PoolTool.sol#25)
- super._mint(owner(),1000000000000000000000000) (contracts/Dream.sol#40)
- IERC777Recipient(implementer).tokensReceived(operator,from,to,amount,userData,operatorData) (contracts/ERC777.sol#153)
- StandardToken(Dream,Dream) (contracts/Dream.sol#20)
- _ERC1820_REGISTRY.setInterfaceImplementer(address(this),keccak256(bytes)(ERC777Token),address(this)) (contracts/ERC777.sol#31)
- _ERC1820_REGISTRY.setInterfaceImplementer(address(this),keccak256(bytes)(ERC20Token),address(this)) (contracts/ERC777.sol#32)
State variables written after the call(s):
- _approve(address(this),_router,~ uint256(0)) (contracts/Dream.sol#41)
- _allowances[holder][spender] = value (contracts/ERC777.sol#141)
- _approve(owner(),_router,~ uint256(0)) (contracts/Dream.sol#42)
- _allowances[holder][spender] = value (contracts/ERC777.sol#141)
Reentrancy in ERC777.transfer(address,uint256) (contracts/ERC777.sol#41-48):
External calls:
- _callTokensToSend(from,from,recipient,amount,,) (contracts/ERC777.sol#44)
- IERC777Sender(implementer).tokensToSend(operator,from,to,amount,userData,operatorData) (contracts/ERC777.sol#147)
State variables written after the call(s):
- _move(from,from,recipient,amount,,) (contracts/ERC777.sol#45)
- _balances[from] = fromBalance - amount (contracts/ERC777.sol#170)
- _balances[to] += amount (contracts/ERC777.sol#172)
Reentrancy in ERC777.transferFrom(address,address,uint256) (contracts/ERC777.sol#89-100):
External calls:
- _callTokensToSend(spender,holder,recipient,amount,,) (contracts/ERC777.sol#93)
- IERC777Sender(implementer).tokensToSend(operator,from,to,amount,userData,operatorData) (contracts/ERC777.sol#147)
State variables written after the call(s):
- _approve(holder,spender,currentAllowance - amount) (contracts/ERC777.sol#97)
- _allowances[holder][spender] = value (contracts/ERC777.sol#141)
- _move(spender,holder,recipient,amount,,) (contracts/ERC777.sol#94)
- _balances[from] = fromBalance - amount (contracts/ERC777.sol#170)
- _balances[to] += amount (contracts/ERC777.sol#172)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in ERC777._burn(address,uint256,bytes,bytes) (contracts/ERC777.sol#120-133):
External calls:
- _callTokensToSend(operator,from,address(0),amount,data,operatorData) (contracts/ERC777.sol#123)
- IERC777Sender(implementer).tokensToSend(operator,from,to,amount,userData,operatorData) (contracts/ERC777.sol#147)
Event emitted after the call(s):
- Burned(operator,from,amount,data,operatorData) (contracts/ERC777.sol#131)
- Transfer(from,address(0),amount) (contracts/ERC777.sol#132)
Reentrancy in ERC777._mint(address,uint256,bytes,bytes,bool) (contracts/ERC777.sol#102-111):
External calls:
- _callTokensReceived(operator,address(0),account,amount,userData,operatorData,requireReceptionAck) (contracts/ERC777.sol#108)
- IERC777Recipient(implementer).tokensReceived(operator,from,to,amount,userData,operatorData) (contracts/ERC777.sol#153)
Event emitted after the call(s):
- Minted(operator,account,amount,userData,operatorData) (contracts/ERC777.sol#109)
- Transfer(address(0),account,amount) (contracts/ERC777.sol#110)
Reentrancy in ERC777._send(address,address,uint256,bytes,bytes,bool) (contracts/ERC777.sol#112-119):
External calls:
- _callTokensToSend(operator,from,to,amount,userData,operatorData) (contracts/ERC777.sol#116)
- IERC777Sender(implementer).tokensToSend(operator,from,to,amount,userData,operatorData) (contracts/ERC777.sol#147)
Event emitted after the call(s):
- Sent(operator,from,to,amount,userData,operatorData) (contracts/ERC777.sol#136)
- _move(operator,from,to,amount,userData,operatorData) (contracts/ERC777.sol#117)
- Transfer(from,to,amount) (contracts/ERC777.sol#174)
- _move(operator,from,to,amount,userData,operatorData) (contracts/ERC777.sol#117)
Reentrancy in Dream._transfer(address,address,uint256) (contracts/Dream.sol#62-87):
External calls:
- ! handSwap() (contracts/Dream.sol#80)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (contracts/PoolTool.sol#35-42)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: address(this).balance}(0,rs.path,address(this),block.timestamp) (contracts/RewardToken.sol#107-112)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountDesire,0,path,address(this),block.timestamp) (contracts/PoolTool.sol#31)
- distributeRewardToken() (contracts/Dream.sol#80)
- token.transfer(userMap[users[i_scope_2]],prizePerUser) (contracts/RewardToken.sol#96)
External calls sending eth:
- ! handSwap() (contracts/Dream.sol#80)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (contracts/PoolTool.sol#35-42)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: address(this).balance}(0,rs.path,address(this),block.timestamp) (contracts/RewardToken.sol#107-112)
Event emitted after the call(s):
- Transfer(from,to,amount) (contracts/ERC777.sol#174)
- super._transfer(from,to,amount - feeAmount) (contracts/Dream.sol#86)
Reentrancy in Dream.constructor(address,address,address) (contracts/Dream.sol#20-43):
External calls:
- initIRouter(_router) (contracts/Dream.sol#21)
- uniswapPair = IFactory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (contracts/PoolTool.sol#25)
- super._mint(owner(),1000000000000000000000000) (contracts/Dream.sol#40)
- IERC777Recipient(implementer).tokensReceived(operator,from,to,amount,userData,operatorData) (contracts/ERC777.sol#153)
- StandardToken(Dream,Dream) (contracts/Dream.sol#20)
- _ERC1820_REGISTRY.setInterfaceImplementer(address(this),keccak256(bytes)(ERC777Token),address(this)) (contracts/ERC777.sol#31)
- _ERC1820_REGISTRY.setInterfaceImplementer(address(this),keccak256(bytes)(ERC20Token),address(this)) (contracts/ERC777.sol#32)
Event emitted after the call(s):
- Approval(holder,spender,value) (contracts/ERC777.sol#142)
- _approve(owner(),_router,~ uint256(0)) (contracts/Dream.sol#42)
- Approval(holder,spender,value) (contracts/ERC777.sol#142)
- _approve(address(this),_router,~ uint256(0)) (contracts/Dream.sol#41)
- Minted(operator,account,amount,userData,operatorData) (contracts/ERC777.sol#109)
- super._mint(owner(),1000000000000000000000000) (contracts/Dream.sol#40)
- Transfer(address(0),account,amount) (contracts/ERC777.sol#110)
- super._mint(owner(),1000000000000000000000000) (contracts/Dream.sol#40)
Reentrancy in ERC777.transfer(address,uint256) (contracts/ERC777.sol#41-48):
External calls:
- _callTokensToSend(from,from,recipient,amount,,) (contracts/ERC777.sol#44)
- IERC777Sender(implementer).tokensToSend(operator,from,to,amount,userData,operatorData) (contracts/ERC777.sol#147)
Event emitted after the call(s):
- Sent(operator,from,to,amount,userData,operatorData) (contracts/ERC777.sol#136)
- _move(from,from,recipient,amount,,) (contracts/ERC777.sol#45)
- Transfer(from,to,amount) (contracts/ERC777.sol#174)
- _move(from,from,recipient,amount,,) (contracts/ERC777.sol#45)
Reentrancy in ERC777.transferFrom(address,address,uint256) (contracts/ERC777.sol#89-100):
External calls:
- _callTokensToSend(spender,holder,recipient,amount,,) (contracts/ERC777.sol#93)
- IERC777Sender(implementer).tokensToSend(operator,from,to,amount,userData,operatorData) (contracts/ERC777.sol#147)
Event emitted after the call(s):
- Approval(holder,spender,value) (contracts/ERC777.sol#142)
- _approve(holder,spender,currentAllowance - amount) (contracts/ERC777.sol#97)
- Sent(operator,from,to,amount,userData,operatorData) (contracts/ERC777.sol#136)
- _move(spender,holder,recipient,amount,,) (contracts/ERC777.sol#94)
- Transfer(from,to,amount) (contracts/ERC777.sol#174)
- _move(spender,holder,recipient,amount,,) (contracts/ERC777.sol#94)
Apply the check-effects-interactions pattern.
Additional information: link
Dream._transfer(address,address,uint256) (contracts/Dream.sol#62-87) uses timestamp for comparisons
Dangerous comparisons:
- limitTimeBefore > block.timestamp (contracts/Dream.sol#67)
Dream.handSwap() (contracts/Dream.sol#102-117) uses timestamp for comparisons
Dangerous comparisons:
- total == 0 (contracts/Dream.sol#104)
- getPrice4ETH(amountDesire) >= swapThreshold (contracts/Dream.sol#108)
RewardToken.handRewards(uint256) (contracts/RewardToken.sol#67-98) uses timestamp for comparisons
Dangerous comparisons:
- ! isExcludeFromReward(userMap[i]) && getBalanceForRewardReal(userMap[i]) >= rewardThreshold (contracts/RewardToken.sol#72)
- ! isExcludeFromReward(userMap[i_scope_0]) && getBalanceForRewardReal(userMap[i_scope_0]) >= rewardThreshold (contracts/RewardToken.sol#81)
- totalAmount == 0 (contracts/RewardToken.sol#92)
- prizePerUser > 0 (contracts/RewardToken.sol#96)
TokenLocker._unLockTokenReal(address) (contracts/TokenLocker.sol#23-32) uses timestamp for comparisons
Dangerous comparisons:
- lockBox[_user].amountLeft > 0 (contracts/TokenLocker.sol#24)
- _amount > lockBox[_user].amountLeft (contracts/TokenLocker.sol#27)
TokenLocker._unLockToken(address) (contracts/TokenLocker.sol#33-35) uses timestamp for comparisons
Dangerous comparisons:
- block.timestamp > lockBox[_user].nextReleaseTime (contracts/TokenLocker.sol#34)
Avoid relying on block.timestamp.
Additional information: link
Address.isContract(address) (@openzeppelin/contracts/utils/Address.sol#27-37) uses assembly
- INLINE ASM (@openzeppelin/contracts/utils/Address.sol#33-35)
Address.verifyCallResult(bool,bytes,string) (@openzeppelin/contracts/utils/Address.sol#196-216) uses assembly
- INLINE ASM (@openzeppelin/contracts/utils/Address.sol#208-211)
Do not use evm assembly.
Additional information: link
RewardToken.onJoining() (contracts/RewardToken.sol#22-27) has costly operations inside a loop:
- isJoining = true (contracts/RewardToken.sol#24)
RewardToken.onJoining() (contracts/RewardToken.sol#22-27) has costly operations inside a loop:
- isJoining = false (contracts/RewardToken.sol#26)
RewardToken._userJoin(address) (contracts/RewardToken.sol#50-56) has costly operations inside a loop:
- userTotal ++ (contracts/RewardToken.sol#54)
RewardToken.onReward() (contracts/RewardToken.sol#28-33) has costly operations inside a loop:
- isInReward = true (contracts/RewardToken.sol#30)
RewardToken.onReward() (contracts/RewardToken.sol#28-33) has costly operations inside a loop:
- isInReward = false (contracts/RewardToken.sol#32)
RewardToken.handRewards(uint256) (contracts/RewardToken.sol#67-98) has costly operations inside a loop:
- rewardIndex = i_scope_0 + 1 (contracts/RewardToken.sol#85)
RewardToken.handRewards(uint256) (contracts/RewardToken.sol#67-98) has costly operations inside a loop:
- rewardIndex = i + 1 (contracts/RewardToken.sol#76)
Use a local variable to hold the loop computation result.
Additional information: link
Address.functionCall(address,bytes) (@openzeppelin/contracts/utils/Address.sol#80-82) is never used and should be removed
Address.functionCall(address,bytes,string) (@openzeppelin/contracts/utils/Address.sol#90-96) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (@openzeppelin/contracts/utils/Address.sol#109-115) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (@openzeppelin/contracts/utils/Address.sol#123-134) is never used and should be removed
Address.functionDelegateCall(address,bytes) (@openzeppelin/contracts/utils/Address.sol#169-171) is never used and should be removed
Address.functionDelegateCall(address,bytes,string) (@openzeppelin/contracts/utils/Address.sol#179-188) is never used and should be removed
Address.functionStaticCall(address,bytes) (@openzeppelin/contracts/utils/Address.sol#142-144) is never used and should be removed
Address.functionStaticCall(address,bytes,string) (@openzeppelin/contracts/utils/Address.sol#152-161) is never used and should be removed
Address.sendValue(address,uint256) (@openzeppelin/contracts/utils/Address.sol#55-60) is never used and should be removed
Address.verifyCallResult(bool,bytes,string) (@openzeppelin/contracts/utils/Address.sol#196-216) is never used and should be removed
Context._msgData() (@openzeppelin/contracts/utils/Context.sol#21-23) is never used and should be removed
FeeManager.includeInFee(address) (contracts/FeeManager.sol#6-8) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version^0.8.0 (@openzeppelin/contracts/access/Ownable.sol#4) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/token/ERC20/IERC20.sol#4) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/token/ERC777/IERC777.sol#4) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/token/ERC777/IERC777Recipient.sol#4) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/token/ERC777/IERC777Sender.sol#4) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/utils/Address.sol#4) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/utils/Context.sol#4) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/utils/introspection/IERC1820Registry.sol#4) allows old versions
Pragma version^0.8.0 (contracts/Dream.sol#2) allows old versions
Pragma version^0.8.0 (contracts/ERC777.sol#2) allows old versions
Pragma version^0.8.0 (contracts/FeeManager.sol#2) allows old versions
Pragma version^0.8.0 (contracts/Improver.sol#2) allows old versions
Pragma version^0.8.0 (contracts/PairManager.sol#2) allows old versions
Pragma version^0.8.0 (contracts/PoolTool.sol#2) allows old versions
Pragma version^0.8.0 (contracts/RelationshipManager.sol#2) allows old versions
Pragma version^0.8.0 (contracts/RewardManager.sol#2) allows old versions
Pragma version^0.8.0 (contracts/RewardToken.sol#2) allows old versions
Pragma version^0.8.0 (contracts/StandardToken.sol#2) allows old versions
Pragma version^0.8.0 (contracts/System.sol#2) allows old versions
Pragma version^0.8.0 (contracts/TokenLocker.sol#2) 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 Address.sendValue(address,uint256) (@openzeppelin/contracts/utils/Address.sol#55-60):
- (success) = recipient.call{value: amount}() (@openzeppelin/contracts/utils/Address.sol#58)
Low level call in Address.functionCallWithValue(address,bytes,uint256,string) (@openzeppelin/contracts/utils/Address.sol#123-134):
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#132)
Low level call in Address.functionStaticCall(address,bytes,string) (@openzeppelin/contracts/utils/Address.sol#152-161):
- (success,returndata) = target.staticcall(data) (@openzeppelin/contracts/utils/Address.sol#159)
Low level call in Address.functionDelegateCall(address,bytes,string) (@openzeppelin/contracts/utils/Address.sol#179-188):
- (success,returndata) = target.delegatecall(data) (@openzeppelin/contracts/utils/Address.sol#186)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Parameter Dream.updateRate(uint256,uint256,uint256,uint256,uint256)._rate4liquidity (contracts/Dream.sol#54) is not in mixedCase
Parameter Dream.updateRate(uint256,uint256,uint256,uint256,uint256)._rate4rewards (contracts/Dream.sol#54) is not in mixedCase
Parameter Dream.updateRate(uint256,uint256,uint256,uint256,uint256)._rate4prize (contracts/Dream.sol#54) is not in mixedCase
Parameter Dream.updateRate(uint256,uint256,uint256,uint256,uint256)._rate4prizeLevel (contracts/Dream.sol#54) is not in mixedCase
Parameter Dream.updateRate(uint256,uint256,uint256,uint256,uint256)._swapThreshold (contracts/Dream.sol#54) is not in mixedCase
Parameter Dream.lockTokenBatch(address[],uint256,uint256,bool)._user (contracts/Dream.sol#128) is not in mixedCase
Parameter Dream.lockTokenBatch(address[],uint256,uint256,bool)._amount (contracts/Dream.sol#128) is not in mixedCase
Parameter Dream.lockTokenBatch(address[],uint256,uint256,bool)._delayDuration (contracts/Dream.sol#128) is not in mixedCase
Variable Improver._improver (contracts/Improver.sol#5) is not in mixedCase
Parameter PairManager.pairExists(address)._pair (contracts/PairManager.sol#20) is not in mixedCase
Parameter PairManager.pairAdd(address,uint256,uint256,uint256)._pair (contracts/PairManager.sol#29) is not in mixedCase
Parameter PairManager.pairAdd(address,uint256,uint256,uint256)._rewardThreshold (contracts/PairManager.sol#29) is not in mixedCase
Parameter PairManager.pairAdd(address,uint256,uint256,uint256)._rewardTimes (contracts/PairManager.sol#29) is not in mixedCase
Parameter PairManager.pairAdd(address,uint256,uint256,uint256)._rewardTimesBase (contracts/PairManager.sol#29) is not in mixedCase
Parameter PairManager.pairEdit(address,uint256,uint256,uint256)._pair (contracts/PairManager.sol#35) is not in mixedCase
Parameter PairManager.pairEdit(address,uint256,uint256,uint256)._rewardThreshold (contracts/PairManager.sol#35) is not in mixedCase
Parameter PairManager.pairEdit(address,uint256,uint256,uint256)._rewardTimes (contracts/PairManager.sol#35) is not in mixedCase
Parameter PairManager.pairEdit(address,uint256,uint256,uint256)._rewardTimesBase (contracts/PairManager.sol#35) is not in mixedCase
Parameter PairManager.pairRemove(address)._pair (contracts/PairManager.sol#46) is not in mixedCase
Parameter PairManager.balanceOfLiquidity(address)._user (contracts/PairManager.sol#56) is not in mixedCase
Function IRouter.WETH() (contracts/PoolTool.sol#14) is not in mixedCase
Parameter PoolTool.initIRouter(address)._router (contracts/PoolTool.sol#23) is not in mixedCase
Parameter RewardToken.updateRewardThreshold(uint256,uint256)._rewardThreshold (contracts/RewardToken.sol#46) is not in mixedCase
Parameter RewardToken.updateRewardThreshold(uint256,uint256)._rewardMembersEachTime (contracts/RewardToken.sol#46) is not in mixedCase
Parameter RewardToken.getBalanceForRewardReal(address)._user (contracts/RewardToken.sol#60) is not in mixedCase
Parameter System.rescueLossToken(IERC20,address)._recipient (contracts/System.sol#11) is not in mixedCase
Parameter System.rescueLossChain(address)._recipient (contracts/System.sol#15) is not in mixedCase
Parameter TokenLocker.balanceOfLocked(address)._user (contracts/TokenLocker.sol#36) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable ERC777._defaultOperators (contracts/ERC777.sol#20) is too similar to ERC777.constructor(string,string,address[]).defaultOperators_ (contracts/ERC777.sol#24)
Prevent variables from having similar names.
Additional information: link
Dream.limitAmount (contracts/Dream.sol#44) should be constant
PairManager.divBase (contracts/PairManager.sol#17) should be constant
PairManager.rewardRate (contracts/PairManager.sol#18) should be constant
System.addressDEAD (contracts/System.sol#8) should be constant
TokenLocker.lock2address (contracts/TokenLocker.sol#16) should be constant
TokenLocker.releaseDuration (contracts/TokenLocker.sol#14) should be constant
TokenLocker.releaseEachAmount (contracts/TokenLocker.sol#15) 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-56)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (@openzeppelin/contracts/access/Ownable.sol#62-65)
startSwapAndLimitBuy() should be declared external:
- Dream.startSwapAndLimitBuy() (contracts/Dream.sol#50-53)
updateRate(uint256,uint256,uint256,uint256,uint256) should be declared external:
- Dream.updateRate(uint256,uint256,uint256,uint256,uint256) (contracts/Dream.sol#54-61)
batchTransfer(uint256,address[]) should be declared external:
- Dream.batchTransfer(uint256,address[]) (contracts/Dream.sol#118-122)
airdrop(uint256,address[]) should be declared external:
- Dream.airdrop(uint256,address[]) (contracts/Dream.sol#123-127)
lockTokenBatch(address[],uint256,uint256,bool) should be declared external:
- Dream.lockTokenBatch(address[],uint256,uint256,bool) (contracts/Dream.sol#128-136)
name() should be declared external:
- ERC777.name() (contracts/ERC777.sol#34)
symbol() should be declared external:
- ERC777.symbol() (contracts/ERC777.sol#35)
decimals() should be declared external:
- ERC777.decimals() (contracts/ERC777.sol#36)
granularity() should be declared external:
- ERC777.granularity() (contracts/ERC777.sol#37)
totalSupply() should be declared external:
- ERC777.totalSupply() (contracts/ERC777.sol#38)
send(address,uint256,bytes) should be declared external:
- ERC777.send(address,uint256,bytes) (contracts/ERC777.sol#40)
transfer(address,uint256) should be declared external:
- ERC777.transfer(address,uint256) (contracts/ERC777.sol#41-48)
burn(uint256,bytes) should be declared external:
- ERC777.burn(uint256,bytes) (contracts/ERC777.sol#49)
authorizeOperator(address) should be declared external:
- ERC777.authorizeOperator(address) (contracts/ERC777.sol#56-64)
revokeOperator(address) should be declared external:
- ERC777.revokeOperator(address) (contracts/ERC777.sol#65-73)
defaultOperators() should be declared external:
- ERC777.defaultOperators() (contracts/ERC777.sol#74)
operatorSend(address,address,uint256,bytes,bytes) should be declared external:
- ERC777.operatorSend(address,address,uint256,bytes,bytes) (contracts/ERC777.sol#75-78)
operatorBurn(address,uint256,bytes,bytes) should be declared external:
- ERC777.operatorBurn(address,uint256,bytes,bytes) (contracts/ERC777.sol#79-82)
allowance(address,address) should be declared external:
- ERC777.allowance(address,address) (contracts/ERC777.sol#83)
approve(address,uint256) should be declared external:
- ERC777.approve(address,uint256) (contracts/ERC777.sol#84-88)
transferFrom(address,address,uint256) should be declared external:
- ERC777.transferFrom(address,address,uint256) (contracts/ERC777.sol#89-100)
pairEdit(address,uint256,uint256,uint256) should be declared external:
- PairManager.pairEdit(address,uint256,uint256,uint256) (contracts/PairManager.sol#35-44)
pairRemove(address) should be declared external:
- PairManager.pairRemove(address) (contracts/PairManager.sol#46-54)
pairListsLength() should be declared external:
- PairManager.pairListsLength() (contracts/PairManager.sol#71-73)
updateRewardContract(address,address[]) should be declared external:
- RewardToken.updateRewardContract(address,address[]) (contracts/RewardToken.sol#43-45)
updateRewardThreshold(uint256,uint256) should be declared external:
- RewardToken.updateRewardThreshold(uint256,uint256) (contracts/RewardToken.sol#46-49)
unLockToken() should be declared external:
- TokenLocker.unLockToken() (contracts/TokenLocker.sol#39-41)
Use the external attribute for functions never called from the contract.
Additional information: link
Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.
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.
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Token is deployed only at one blockchain
Contract has 10% buy tax and 10% sell tax.
Taxes are low and contract ownership is renounced.
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
Unable to find Telegram and Twitter accounts