Thaicoin is a decentralized reserve currency protocol on the BSC network.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
ThalCoin._transfer(address,address,uint256) (#700-732) performs a multiplication on the result of a division:
-time_scope_1 = (now - aTime) / unLockaTime (#716)
-amount = time_scope_1.mul(bal_scope_0).mul(2).div(100) (#718)
Consider ordering multiplication before division.
Additional information: link
ThalCoin._approve(address,address,uint256).owner (#683) shadows:
- Ownable.owner() (#169-171) (function)
Rename the local variables that shadow another component.
Additional information: link
ThalCoin.setLiqAddress(address)._liqaddress (#565) lacks a zero-check on :
- liqAddress = _liqaddress (#566)
Check that the address is not zero.
Additional information: link
Reentrancy in ThalCoin.constructor() (#419-444):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#426-427)
State variables written after the call(s):
- _isExcludedFromFee[msg.sender] = true (#433)
- _isExcludedFromFee[address(this)] = true (#434)
- _isExcludedFromFee[MarketAddress] = true (#435)
- _isExcludedFromFee[JobAddress] = true (#436)
- _isExcludedFromFee[AlpAddress] = true (#437)
- _isExcludedFromFee[SellAddress] = true (#438)
- _isExcludedFromFee[LpMainAddress] = true (#439)
- _owner = msg.sender (#442)
- uniswapV2Router = _uniswapV2Router (#430)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in ThalCoin.constructor() (#419-444):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#426-427)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_tTotal) (#443)
Apply the check-effects-interactions pattern.
Additional information: link
ThalCoin._transfer(address,address,uint256) (#700-732) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(amount > 0,Transfer amount must be greater than zero) (#707)
- amount > time.mul(bal).mul(5).div(10 ** 2) && time <= 77760000 (#711)
- amount > time_scope_1.mul(bal_scope_0).mul(2).div(100) && time_scope_1 <= 31104000 (#717)
- require(bool,string)(amount <= _maxTxAmount,Transfer amount exceeds the maxTxAmount.) (#724)
Avoid relying on block.timestamp.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#139-158) uses assembly
- INLINE ASM (#150-153)
Do not use evm assembly.
Additional information: link
SafeMath.mod(uint256,uint256,string) (#83-86) is never used and should be removed
Remove unused functions.
Additional information: link
ThalCoin.lotteryFee (#396) is set pre-construction with a non-constant function or state variable:
- _lotteryFee
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
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#139-158):
- (success,returndata) = target.call{value: weiValue}(data) (#143)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable ThalCoin._maxTxAmount (#401) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#95)" inContext (#89-98)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable ThalCoin.unLockaTime (#408) is too similar to ThalCoin.unLockjTime (#406)
Prevent variables from having similar names.
Additional information: link
ThalCoin.slitherConstructorVariables() (#355-797) uses literals with too many digits:
- _maxTxAmount = 5000000000 * 10 ** 9 (#401)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
ThalCoin.unLockjTime (#406) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
getTime() should be declared external:
- ThalCoin.getTime() (#692-698)
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 token on CoinHunt
Additional information: link
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 scam / price dump / death
Token has no active CoinGecko listing / rank
Young tokens have high risks of price dump / death
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