TrickOrTreat Token Logo

TrickOrTreat Token

About TrickOrTreat

Listings

Not Found
Token 10 months

Website

Not Found

Description

Not Found

Social

Not Found

Laser Scorebeta Last Audit: 30 November 2021

report
Token seems to be anonymous. As long as we are unable to find website score is limited.


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

ReflectionToken.addLiquidity(uint256,uint256) (contracts/ReflectionToken.sol#485-498) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_owner,block.timestamp) (contracts/ReflectionToken.sol#490-497)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in ReflectionToken._transfer(address,address,uint256) (contracts/ReflectionToken.sol#406-442):
External calls:
- swapAndLiquify(contractTokenBalance) (contracts/ReflectionToken.sol#429)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_owner,block.timestamp) (contracts/ReflectionToken.sol#490-497)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/ReflectionToken.sol#476-482)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (contracts/ReflectionToken.sol#429)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_owner,block.timestamp) (contracts/ReflectionToken.sol#490-497)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (contracts/ReflectionToken.sol#441)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (contracts/ReflectionToken.sol#359)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (contracts/ReflectionToken.sol#530)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (contracts/ReflectionToken.sol#543)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (contracts/ReflectionToken.sol#558)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (contracts/ReflectionToken.sol#572)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (contracts/ReflectionToken.sol#531)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (contracts/ReflectionToken.sol#545)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (contracts/ReflectionToken.sol#559)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (contracts/ReflectionToken.sol#574)
- _tokenTransfer(from,to,amount,takeFee) (contracts/ReflectionToken.sol#441)
- _rTotal = _rTotal.sub(rFee) (contracts/ReflectionToken.sol#282)
- _tokenTransfer(from,to,amount,takeFee) (contracts/ReflectionToken.sol#441)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (contracts/ReflectionToken.sol#360)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (contracts/ReflectionToken.sol#557)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (contracts/ReflectionToken.sol#571)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (contracts/ReflectionToken.sol#544)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (contracts/ReflectionToken.sol#573)
Apply the check-effects-interactions pattern.

Additional information: link

ReflectionToken._owner (contracts/ReflectionToken.sol#51) shadows:
- Ownable._owner (@openzeppelin/contracts/access/Ownable.sol#20)
Remove the state variable shadowing.

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.

ReflectionToken.addLiquidity(uint256,uint256) (contracts/ReflectionToken.sol#485-498) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_owner,block.timestamp) (contracts/ReflectionToken.sol#490-497)
Ensure that all the return values of the function calls are used.

Additional information: link

ReflectionToken._approve(address,address,uint256).owner (contracts/ReflectionToken.sol#395) shadows:
- Ownable.owner() (@openzeppelin/contracts/access/Ownable.sol#34-36) (function)
Rename the local variables that shadow another component.

Additional information: link

ReflectionToken.setMaxTxPercent(uint256) (contracts/ReflectionToken.sol#239-241) should emit an event for:
- _maxTxAmount = maxTxPercent * 10 ** _decimals (contracts/ReflectionToken.sol#240)
Emit an event for critical parameter changes.

Additional information: link

Reentrancy in ReflectionToken.transferFrom(address,address,uint256) (contracts/ReflectionToken.sol#142-150):
External calls:
- _transfer(sender,recipient,amount) (contracts/ReflectionToken.sol#147)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_owner,block.timestamp) (contracts/ReflectionToken.sol#490-497)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/ReflectionToken.sol#476-482)
External calls sending eth:
- _transfer(sender,recipient,amount) (contracts/ReflectionToken.sol#147)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_owner,block.timestamp) (contracts/ReflectionToken.sol#490-497)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (contracts/ReflectionToken.sol#148)
- _allowances[owner][spender] = amount (contracts/ReflectionToken.sol#402)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in ReflectionToken.transferFrom(address,address,uint256) (contracts/ReflectionToken.sol#142-150):
External calls:
- _transfer(sender,recipient,amount) (contracts/ReflectionToken.sol#147)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_owner,block.timestamp) (contracts/ReflectionToken.sol#490-497)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/ReflectionToken.sol#476-482)
External calls sending eth:
- _transfer(sender,recipient,amount) (contracts/ReflectionToken.sol#147)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,_owner,block.timestamp) (contracts/ReflectionToken.sol#490-497)
Event emitted after the call(s):
- Approval(owner,spender,amount) (contracts/ReflectionToken.sol#403)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (contracts/ReflectionToken.sol#148)
Apply the check-effects-interactions pattern.

Additional information: link

Address.verifyCallResult(bool,bytes,string) (@openzeppelin/contracts/utils/Address.sol#195-215) uses assembly
- INLINE ASM (@openzeppelin/contracts/utils/Address.sol#207-210)
Do not use evm assembly.

Additional information: link

Different versions of Solidity is used:
- Version used: ['>=0.5.0', '>=0.6.2', '>=0.8.9', '^0.8.0']
- ^0.8.0 (@openzeppelin/contracts/access/AccessControl.sol#3)
- ^0.8.0 (@openzeppelin/contracts/access/IAccessControl.sol#3)
- ^0.8.0 (@openzeppelin/contracts/access/Ownable.sol#3)
- ^0.8.0 (@openzeppelin/contracts/token/ERC20/IERC20.sol#3)
- ^0.8.0 (@openzeppelin/contracts/utils/Address.sol#3)
- ^0.8.0 (@openzeppelin/contracts/utils/Context.sol#3)
- ^0.8.0 (@openzeppelin/contracts/utils/Strings.sol#3)
- ^0.8.0 (@openzeppelin/contracts/utils/introspection/ERC165.sol#3)
- ^0.8.0 (@openzeppelin/contracts/utils/introspection/IERC165.sol#3)
- ^0.8.0 (@openzeppelin/contracts/utils/math/SafeMath.sol#3)
- >=0.5.0 (@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol#1)
- >=0.6.2 (@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol#1)
- >=0.6.2 (@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol#1)
- >=0.8.9 (contracts/ReflectionToken.sol#3)
Use one Solidity version.

Additional information: link

Strings.toString(uint256) (@openzeppelin/contracts/utils/Strings.sol#14-34) is never used and should be removed
Remove unused functions.

Additional information: link

solc-0.8.9 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 Address.functionDelegateCall(address,bytes,string) (@openzeppelin/contracts/utils/Address.sol#178-187):
- (success,returndata) = target.delegatecall(data) (@openzeppelin/contracts/utils/Address.sol#185)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

Variable ReflectionToken._maxTxAmount (contracts/ReflectionToken.sol#48) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Variable ReflectionToken._transferStandard(address,address,uint256).rTransferAmount (contracts/ReflectionToken.sol#529) is too similar to ReflectionToken._getTValues(uint256).tTransferAmount (contracts/ReflectionToken.sol#314)
Prevent variables from having similar names.

Additional information: link

ReflectionToken.constructor(string,string,address) (contracts/ReflectionToken.sol#64-105) uses literals with too many digits:
- swapTokensAtAmount = 200000 * 10 ** _decimals (contracts/ReflectionToken.sol#88)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

isExcludedFromFee(address) should be declared external:
- ReflectionToken.isExcludedFromFee(address) (contracts/ReflectionToken.sol#390-392)
Use the external attribute for functions never called from the contract.

Additional information: link

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.


Unable to find Telegram and Twitter accounts


Unable to find website, listings and other project-related information


Young tokens have high risks of price dump / death


Token has no active CoinGecko listing / rank


Token has no active CoinMarketCap listing / rank

Price for TrickOrTreat