Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
GenshinBoy.addLiquidity(uint256,uint256) (#1048-1061) sends eth to arbitrary user
Dangerous calls:
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1053-1060)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in GenshinBoy._transfer(address,address,uint256) (#911-962):
External calls:
- swapAndLiquify(contractTokenBalance) (#945)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1053-1060)
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1039-1045)
- buyBackTokens(buyBackAmount) (#951)
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1020-1025)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#945)
- _devWallet.transfer(devBalance) (#1009)
- _marketingWallet.transfer(marketingBalance) (#1010)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1053-1060)
- buyBackTokens(buyBackAmount) (#951)
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1020-1025)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#961)
- _buyBackFee = _previousBuyBackFee (#1186)
- _buyBackFee = _boostedBuyBackFee (#1203)
- _buyBackFee = 0 (#1178)
- _tokenTransfer(from,to,amount,takeFee) (#961)
- _devFee = _previousDevFee (#1188)
- _devFee = _boostedDevFee (#1205)
- _devFee = 0 (#1180)
- _tokenTransfer(from,to,amount,takeFee) (#961)
- _liquidityFee = _previousLiquidityFee (#1185)
- _liquidityFee = _boostedLiquidityFee (#1202)
- _liquidityFee = 0 (#1177)
- _tokenTransfer(from,to,amount,takeFee) (#961)
- _marketingFee = _previousMarketingFee (#1187)
- _marketingFee = _boostedMarketingFee (#1204)
- _marketingFee = 0 (#1179)
- _tokenTransfer(from,to,amount,takeFee) (#961)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#1148)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1081)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1082)
- _tokenTransfer(from,to,amount,takeFee) (#961)
- _rTotal = _rTotal.sub(rFee) (#1141)
- _tokenTransfer(from,to,amount,takeFee) (#961)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#1150)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1085)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1087)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1089)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1090)
- buyBackTokens(buyBackAmount) (#951)
- inSwapAndLiquify = true (#667)
- inSwapAndLiquify = false (#669)
Apply the check-effects-interactions pattern.
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.
GenshinBoy.swapAndLiquify(uint256) (#970-1006) performs a multiplication on the result of a division:
-toDev = contractTokenBalance.mul(_devFee).div(totalBNBFees) (#976)
-devBalance = fromSwap.mul(toDev).div(toSwapForEth) (#997)
Consider ordering multiplication before division.
Additional information: link
GenshinBoy.addLiquidity(uint256,uint256) (#1048-1061) ignores return value by dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1053-1060)
Ensure that all the return values of the function calls are used.
Additional information: link
GenshinBoy._approve(address,address,uint256).owner (#903) shadows:
- Ownable.owner() (#535-537) (function)
Rename the local variables that shadow another component.
Additional information: link
GenshinBoy.setBuyBackAmount(uint256,uint256) (#816-818) should emit an event for:
- buyBackAmount = amount * 10 ** multiplier (#817)
Emit an event for critical parameter changes.
Additional information: link
Reentrancy in GenshinBoy.transferFrom(address,address,uint256) (#726-730):
External calls:
- _transfer(sender,recipient,amount) (#727)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1053-1060)
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1020-1025)
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1039-1045)
External calls sending eth:
- _transfer(sender,recipient,amount) (#727)
- _devWallet.transfer(devBalance) (#1009)
- _marketingWallet.transfer(marketingBalance) (#1010)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1053-1060)
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1020-1025)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#728)
- _allowances[owner][spender] = amount (#907)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in GenshinBoy.transferFrom(address,address,uint256) (#726-730):
External calls:
- _transfer(sender,recipient,amount) (#727)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1053-1060)
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1020-1025)
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1039-1045)
External calls sending eth:
- _transfer(sender,recipient,amount) (#727)
- _devWallet.transfer(devBalance) (#1009)
- _marketingWallet.transfer(marketingBalance) (#1010)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1053-1060)
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1020-1025)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#908)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#728)
Apply the check-effects-interactions pattern.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#310-331) uses assembly
- INLINE ASM (#323-326)
Do not use evm assembly.
Additional information: link
GenshinBoy.restoreAllFee() (#1183-1192) compares to a boolean constant:
-boosted == true (#1190)
Remove the equality to the boolean constant.
Additional information: link
SafeMath.mod(uint256,uint256,string) (#266-269) is never used and should be removed
Remove unused functions.
Additional information: link
GenshinBoy.numTokensSellToAddToLiquidity (#645) is set pre-construction with a non-constant function or state variable:
- (_tTotal * percentToSell) / 10000
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
solc-0.8.6 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._functionCallWithValue(address,bytes,uint256,string) (#310-331):
- (success,returndata) = target.call{value: weiValue}(data) (#314)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable GenshinBoy._boostedDevFee (#604) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#18)" inContext (#12-22)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in GenshinBoy.transferFrom(address,address,uint256) (#726-730):
External calls:
- _transfer(sender,recipient,amount) (#727)
- _devWallet.transfer(devBalance) (#1009)
- _marketingWallet.transfer(marketingBalance) (#1010)
External calls sending eth:
- _transfer(sender,recipient,amount) (#727)
- _devWallet.transfer(devBalance) (#1009)
- _marketingWallet.transfer(marketingBalance) (#1010)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1053-1060)
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1020-1025)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#728)
- _allowances[owner][spender] = amount (#907)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#908)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#728)
Apply the check-effects-interactions pattern.
Additional information: link
Variable GenshinBoy._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#1118) is too similar to GenshinBoy._finalizeTransfer(address,address,uint256).tTransferAmount (#1079)
Prevent variables from having similar names.
Additional information: link
GenshinBoy.slitherConstructorVariables() (#559-1208) uses literals with too many digits:
- burnAddress = 0x000000000000000000000000000000000000dEaD (#615)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
GenshinBoy._previousMaxWalletAmount (#639) is never used in GenshinBoy (#559-1208)
Remove unused state variables.
Additional information: link
GenshinBoy.startingSupply (#574) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
excludeFromReward(address) should be declared external:
- GenshinBoy.excludeFromReward(address) (#877-885)
Use the external attribute for functions never called from the contract.
Additional information: link
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Number of Binance Smart Chain (BSC) token holders is low.
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 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
Unable to find Telegram and Twitter accounts