Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Reentrancy in OHAYO._transfer(address,address,uint256) (#601-651):
External calls:
- collectFees() (#631)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#728-735)
- IERC20(marketingWalletToken).transfer(marketingAddress,IERC20(marketingWalletToken).balanceOf(address(this))) (#686)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#697-703)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#715-721)
External calls sending eth:
- collectFees() (#631)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#728-735)
State variables written after the call(s):
- transferToken(from,address(this),feesToContract) (#645)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#742)
- _balances[recipient] = _balances[recipient].add(amount) (#743)
- transferToken(from,deadAddress,toBurnAmount) (#646)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#742)
- _balances[recipient] = _balances[recipient].add(amount) (#743)
- transferToken(from,to,amount) (#650)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#742)
- _balances[recipient] = _balances[recipient].add(amount) (#743)
Apply the check-effects-interactions pattern.
Additional information: link
OHAYO.swapAndSendToFee(uint256) (#681-687) ignores return value by IERC20(marketingWalletToken).transfer(marketingAddress,IERC20(marketingWalletToken).balanceOf(address(this))) (#686)
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.
OHAYO.setMarketingAddress(address).newMarketingAddress (#508) lacks a zero-check on :
- marketingAddress = newMarketingAddress (#509)
OHAYO.setMarketingWalletToken(address)._marketingWalletToken (#539) lacks a zero-check on :
- marketingWalletToken = _marketingWalletToken (#540)
Check that the address is not zero.
Additional information: link
OHAYO.addLiquidity(uint256,uint256) (#724-736) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#728-735)
Ensure that all the return values of the function calls are used.
Additional information: link
OHAYO.allowance(address,address).owner (#475) shadows:
- Ownable.owner() (#147-149) (function)
OHAYO._approve(address,address,uint256).owner (#500) shadows:
- Ownable.owner() (#147-149) (function)
Rename the local variables that shadow another component.
Additional information: link
OHAYO.setLiquifyThreshhold(uint256) (#535-537) should emit an event for:
- _liquifyThreshhold = newLiquifyThreshhold (#536)
OHAYO.setMaxBalance(uint256) (#543-546) should emit an event for:
- _maxBalance = newMaxBalance (#545)
Emit an event for critical parameter changes.
Additional information: link
Reentrancy in OHAYO.collectFees() (#653-663):
External calls:
- swapAndLiquify(liquidityTokensToSell) (#659)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#728-735)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#697-703)
- swapAndSendToFee(marketingTokensToSell) (#662)
- IERC20(marketingWalletToken).transfer(marketingAddress,IERC20(marketingWalletToken).balanceOf(address(this))) (#686)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#715-721)
External calls sending eth:
- swapAndLiquify(liquidityTokensToSell) (#659)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#728-735)
State variables written after the call(s):
- swapAndSendToFee(marketingTokensToSell) (#662)
- _allowances[owner][spender] = amount (#504)
Reentrancy in OHAYO.constructor() (#421-446):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#423-424)
State variables written after the call(s):
- _balances[_msgSender()] = _totalSupply (#444)
- _burnFee = 1 (#437)
- _isExcludedFromFees[owner()] = true (#428)
- _isExcludedFromFees[address(this)] = true (#429)
- _isExcludedFromMaxBalance[owner()] = true (#431)
- _isExcludedFromMaxBalance[address(this)] = true (#432)
- _isExcludedFromMaxBalance[uniswapV2Pair] = true (#433)
- _liquidityFee = 1 (#435)
- _liquifyThreshhold = 100 * 10 ** 3 * 10 ** _decimals (#441)
- _marketingFee = 8 (#436)
- _maxBalance = 1000 * 10 ** 9 * 10 ** _decimals (#442)
- _totalFees = _liquidityFee.add(_marketingFee).add(_burnFee) (#438)
- _totalFeesToContract = _liquidityFee.add(_marketingFee) (#439)
- uniswapV2Router = _uniswapV2Router (#426)
Reentrancy in OHAYO.swapAndLiquify(uint256) (#665-679):
External calls:
- swapTokensForEth(half) (#673)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#697-703)
- addLiquidity(otherHalf,newBalance) (#678)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#728-735)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#678)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#728-735)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#678)
- _allowances[owner][spender] = amount (#504)
Reentrancy in OHAYO.transferFrom(address,address,uint256) (#484-488):
External calls:
- _transfer(sender,recipient,amount) (#485)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#728-735)
- IERC20(marketingWalletToken).transfer(marketingAddress,IERC20(marketingWalletToken).balanceOf(address(this))) (#686)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#697-703)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#715-721)
External calls sending eth:
- _transfer(sender,recipient,amount) (#485)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#728-735)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#486)
- _allowances[owner][spender] = amount (#504)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in OHAYO._transfer(address,address,uint256) (#601-651):
External calls:
- collectFees() (#631)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#728-735)
- IERC20(marketingWalletToken).transfer(marketingAddress,IERC20(marketingWalletToken).balanceOf(address(this))) (#686)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#697-703)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#715-721)
External calls sending eth:
- collectFees() (#631)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#728-735)
Event emitted after the call(s):
- TokenBurn(from,toBurnAmount) (#647)
- Transfer(sender,recipient,amount) (#744)
- transferToken(from,deadAddress,toBurnAmount) (#646)
- Transfer(sender,recipient,amount) (#744)
- transferToken(from,to,amount) (#650)
- Transfer(sender,recipient,amount) (#744)
- transferToken(from,address(this),feesToContract) (#645)
Reentrancy in OHAYO.collectFees() (#653-663):
External calls:
- swapAndLiquify(liquidityTokensToSell) (#659)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#728-735)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#697-703)
- swapAndSendToFee(marketingTokensToSell) (#662)
- IERC20(marketingWalletToken).transfer(marketingAddress,IERC20(marketingWalletToken).balanceOf(address(this))) (#686)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#715-721)
External calls sending eth:
- swapAndLiquify(liquidityTokensToSell) (#659)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#728-735)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#505)
- swapAndSendToFee(marketingTokensToSell) (#662)
Reentrancy in OHAYO.constructor() (#421-446):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#423-424)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_totalSupply) (#445)
Reentrancy in OHAYO.swapAndLiquify(uint256) (#665-679):
External calls:
- swapTokensForEth(half) (#673)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#697-703)
- addLiquidity(otherHalf,newBalance) (#678)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#728-735)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#678)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#728-735)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#505)
- addLiquidity(otherHalf,newBalance) (#678)
Reentrancy in OHAYO.transferFrom(address,address,uint256) (#484-488):
External calls:
- _transfer(sender,recipient,amount) (#485)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#728-735)
- IERC20(marketingWalletToken).transfer(marketingAddress,IERC20(marketingWalletToken).balanceOf(address(this))) (#686)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#697-703)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#715-721)
External calls sending eth:
- _transfer(sender,recipient,amount) (#485)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#728-735)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#505)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#486)
Apply the check-effects-interactions pattern.
Additional information: link
Address.isContract(address) (#77-86) uses assembly
- INLINE ASM (#84)
Address._functionCallWithValue(address,bytes,uint256,string) (#114-131) uses assembly
- INLINE ASM (#123-126)
Do not use evm assembly.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#114-131) is never used and should be removed
Address.functionCall(address,bytes) (#97-99) is never used and should be removed
Address.functionCall(address,bytes,string) (#101-103) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#105-107) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#109-112) is never used and should be removed
Address.isContract(address) (#77-86) is never used and should be removed
Address.sendValue(address,uint256) (#88-94) is never used and should be removed
Context._msgData() (#8-11) is never used and should be removed
SafeMath.mod(uint256,uint256) (#65-67) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#69-72) is never used and should be removed
Remove unused functions.
Additional information: link
OHAYO._totalSupply (#389) is set pre-construction with a non-constant function or state variable:
- 10000 * 10 ** 8 * 10 ** _decimals
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.sendValue(address,uint256) (#88-94):
- (success) = recipient.call{value: amount}() (#92)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#114-131):
- (success,returndata) = target.call{value: weiValue}(data) (#117)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#204) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#205) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#221) is not in mixedCase
Function IUniswapV2Router01.WETH() (#240) is not in mixedCase
Parameter OHAYO.setMarketingWalletToken(address)._marketingWalletToken (#539) is not in mixedCase
Constant OHAYO.deadAddress (#393) is not in UPPER_CASE_WITH_UNDERSCORES
Constant OHAYO._maxFees (#400) is not in UPPER_CASE_WITH_UNDERSCORES
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#9)" inContext (#3-12)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#245) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#246)
Prevent variables from having similar names.
Additional information: link
OHAYO.slitherConstructorConstantVariables() (#377-747) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#393)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Ownable._previousOwner (#136) is never used in OHAYO (#377-747)
Ownable._lockTime (#137) is never used in OHAYO (#377-747)
Remove unused state variables.
Additional information: link
OHAYO._decimals (#388) should be constant
OHAYO._name (#386) should be constant
OHAYO._symbol (#387) should be constant
Ownable._lockTime (#137) should be constant
Ownable._previousOwner (#136) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#156-159)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#161-165)
name() should be declared external:
- OHAYO.name() (#450-452)
symbol() should be declared external:
- OHAYO.symbol() (#454-456)
decimals() should be declared external:
- OHAYO.decimals() (#458-460)
totalSupply() should be declared external:
- OHAYO.totalSupply() (#462-464)
transfer(address,uint256) should be declared external:
- OHAYO.transfer(address,uint256) (#470-473)
allowance(address,address) should be declared external:
- OHAYO.allowance(address,address) (#475-477)
approve(address,uint256) should be declared external:
- OHAYO.approve(address,uint256) (#479-482)
transferFrom(address,address,uint256) should be declared external:
- OHAYO.transferFrom(address,address,uint256) (#484-488)
increaseAllowance(address,uint256) should be declared external:
- OHAYO.increaseAllowance(address,uint256) (#490-493)
decreaseAllowance(address,uint256) should be declared external:
- OHAYO.decreaseAllowance(address,uint256) (#495-498)
isExcludedFromFees(address) should be declared external:
- OHAYO.isExcludedFromFees(address) (#548-550)
excludeFromFees(address) should be declared external:
- OHAYO.excludeFromFees(address) (#552-554)
includeInFees(address) should be declared external:
- OHAYO.includeInFees(address) (#556-558)
isExcludedFromMaxBalance(address) should be declared external:
- OHAYO.isExcludedFromMaxBalance(address) (#560-562)
excludeFromMaxBalance(address) should be declared external:
- OHAYO.excludeFromMaxBalance(address) (#564-566)
includeInMaxBalance(address) should be declared external:
- OHAYO.includeInMaxBalance(address) (#568-570)
totalFees() should be declared external:
- OHAYO.totalFees() (#572-574)
liquidityFee() should be declared external:
- OHAYO.liquidityFee() (#576-578)
marketingFee() should be declared external:
- OHAYO.marketingFee() (#580-582)
burnFee() should be declared external:
- OHAYO.burnFee() (#584-586)
maxFees() should be declared external:
- OHAYO.maxFees() (#588-590)
liquifyThreshhold() should be declared external:
- OHAYO.liquifyThreshhold() (#592-594)
maxBalance() should be declared external:
- OHAYO.maxBalance() (#596-598)
Use the external attribute for functions never called from the contract.
Additional information: link
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