CANDY Token Logo

CANDY Token

About CANDY

Listings

Token 2 years

This is a fun classic game with easy to play,
just deposit your candy as a requirement for playing the game.
Easy way, just place your bet and spin your chances to get the spin result.

Social

Laser Scorebeta Last Audit: 30 November 2021

report
Token has too many issues. Scam probability is high.

Anti-Scam

Links

CANDY.addLiquidity(uint256,uint256) (#977-991) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH.value(ethAmount)(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (#983-990)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in CANDY._transfer(address,address,uint256) (#817-853):
External calls:
- swapAndLiquify(numTokensSell) (#840)
- uniswapV2Router.addLiquidityETH.value(ethAmount)(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (#983-990)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp.add(300)) (#951-957)
- buyBackTokens(buybackLimit.div(buybackDivisor)) (#846)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens.value(amount)(0,path,deadAddress,block.timestamp.add(300)) (#968-973)
External calls sending eth:
- swapAndLiquify(numTokensSell) (#840)
- recipient.transfer(amount) (#937)
- uniswapV2Router.addLiquidityETH.value(ethAmount)(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (#983-990)
- buyBackTokens(buybackLimit.div(buybackDivisor)) (#846)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens.value(amount)(0,path,deadAddress,block.timestamp.add(300)) (#968-973)
State variables written after the call(s):
- _tokenTransfer(from,to,value) (#850)
- _CANDYBalances[sender] = _CANDYBalances[sender].sub(CANDYValue) (#876)
- _CANDYBalances[address(this)] = _CANDYBalances[address(this)].add(rFee) (#895)
- _CANDYBalances[recipient] = _CANDYBalances[recipient].add(CANDYValue) (#877)
- _CANDYBalances[sender] = _CANDYBalances[sender].sub(CANDYDeduct) (#868)
- _CANDYBalances[recipient] = _CANDYBalances[recipient].add(CANDYValue) (#869)
- buyBackTokens(buybackLimit.div(buybackDivisor)) (#846)
- inSwapAndLiquify = true (#653)
- inSwapAndLiquify = false (#655)
Apply the check-effects-interactions pattern.

Additional information: link

CANDY.burnAutoLP() (#1105-1111) ignores return value by uniswapV2Pair.transfer(owner(),balance) (#1110)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.

Additional information: link

Ownable._lockTime (#301) is never initialized. It is used in:
- Ownable.getUnlockTime() (#352-354)
- Ownable.unlock() (#365-370)
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


Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)


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.

CANDY.swapAndLiquify(uint256) (#899-927) performs a multiplication on the result of a division:
-sharedETH = newBalance.div(4) (#917)
-transferToAddressETH(marketingAddress,sharedETH.mul(2)) (#923)
Consider ordering multiplication before division.

Additional information: link

CANDY.addLiquidity(uint256,uint256) (#977-991) ignores return value by uniswapV2Router.addLiquidityETH.value(ethAmount)(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (#983-990)
Ensure that all the return values of the function calls are used.

Additional information: link

CANDY._approve(address,address,uint256).owner (#1012) shadows:
- Ownable.owner() (#322-324) (function)
Rename the local variables that shadow another component.

Additional information: link

CANDY.setMaster(address) (#740-746) should emit an event for:
- master = _master (#745)
Emit an event for critical parameter changes.

Additional information: link

CANDY.setMarketingAddress(address)._marketing (#1145) lacks a zero-check on :
- marketingAddress = _marketing (#1146)
Check that the address is not zero.

Additional information: link

Reentrancy in CANDY.transferFrom(address,address,uint256) (#800-808):
External calls:
- _transfer(sender,recipient,amount) (#805)
- uniswapV2Router.addLiquidityETH.value(ethAmount)(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (#983-990)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens.value(amount)(0,path,deadAddress,block.timestamp.add(300)) (#968-973)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp.add(300)) (#951-957)
External calls sending eth:
- _transfer(sender,recipient,amount) (#805)
- recipient.transfer(amount) (#937)
- uniswapV2Router.addLiquidityETH.value(ethAmount)(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (#983-990)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens.value(amount)(0,path,deadAddress,block.timestamp.add(300)) (#968-973)
State variables written after the call(s):
- _approve(sender,msg.sender,_allowedFragments[sender][msg.sender].sub(amount)) (#806)
- _allowedFragments[owner][spender] = value (#1016)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in CANDY.transferFrom(address,address,uint256) (#800-808):
External calls:
- _transfer(sender,recipient,amount) (#805)
- uniswapV2Router.addLiquidityETH.value(ethAmount)(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (#983-990)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens.value(amount)(0,path,deadAddress,block.timestamp.add(300)) (#968-973)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp.add(300)) (#951-957)
External calls sending eth:
- _transfer(sender,recipient,amount) (#805)
- recipient.transfer(amount) (#937)
- uniswapV2Router.addLiquidityETH.value(ethAmount)(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (#983-990)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens.value(amount)(0,path,deadAddress,block.timestamp.add(300)) (#968-973)
Event emitted after the call(s):
- Approval(owner,spender,value) (#1017)
- _approve(sender,msg.sender,_allowedFragments[sender][msg.sender].sub(amount)) (#806)
Apply the check-effects-interactions pattern.

Additional information: link

Ownable.unlock() (#365-370) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(now > _lockTime,Contract is locked until 7 days) (#367)
Avoid relying on block.timestamp.

Additional information: link

SafeMathInt.sub(int256,int256) (#502-510) is never used and should be removed
Remove unused functions.

Additional information: link

Variable CANDY._CANDYBalances (#641) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Reentrancy in CANDY.transferFrom(address,address,uint256) (#800-808):
External calls:
- _transfer(sender,recipient,amount) (#805)
- recipient.transfer(amount) (#937)
External calls sending eth:
- _transfer(sender,recipient,amount) (#805)
- recipient.transfer(amount) (#937)
- uniswapV2Router.addLiquidityETH.value(ethAmount)(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (#983-990)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens.value(amount)(0,path,deadAddress,block.timestamp.add(300)) (#968-973)
State variables written after the call(s):
- _approve(sender,msg.sender,_allowedFragments[sender][msg.sender].sub(amount)) (#806)
- _allowedFragments[owner][spender] = value (#1016)
Event emitted after the call(s):
- Approval(owner,spender,value) (#1017)
- _approve(sender,msg.sender,_allowedFragments[sender][msg.sender].sub(amount)) (#806)
Apply the check-effects-interactions pattern.

Additional information: link

Variable IUniswapV2Router02.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#147) is too similar to IUniswapV2Router02.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#148)
Prevent variables from having similar names.

Additional information: link

CANDY.slitherConstructorVariables() (#588-1150) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#621)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

CANDY.privateSaleDropCompleted (#630) is never used in CANDY (#588-1150)
Remove unused state variables.

Additional information: link

Ownable._lockTime (#301) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

setMarketingAddress(address) should be declared external:
- CANDY.setMarketingAddress(address) (#1145-1147)
Use the external attribute for functions never called from the contract.

Additional information: link


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

Holders:


Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive. Ignore for presale.


Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.


Token is deployed only at one blockchain


Token has only one trading pair


Unable to find PancakeSwap trading pair to compute liquidity.


Unable to find PancakeSwap trading pair to compute volume.


Unable to find PancakeSwap trading pair to compute number of swaps.


Twitter account link seems to be invalid


Unable to find Blog account (Reddit or Medium)


Unable to find Youtube account


Unable to find Discord account


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 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 code repository for the project


Young tokens have high risks of 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

Price for CANDY