🔱 Genshin King 🔱
⚔️First play-to-earn NFT game which rewards players directly in BNB!
🔹Website: https://genshinking.com/
🔹Gitbook: https://info.genshinking.com/
🔹Twitter: https://twitter.com/genshin_king
🔹Discord: https://discord.gg/tX9pur3hQd
Reentrancy in GENKToken._transfer(address,address,uint256) (contracts/GENK.sol#226-284):
External calls:
- swapAndCharge(tokenBalance) (contracts/GENK.sol#267)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/GENK.sol#326-333)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/GENK.sol#312-318)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (contracts/GENK.sol#297)
External calls sending eth:
- swapAndCharge(tokenBalance) (contracts/GENK.sol#267)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/GENK.sol#326-333)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (contracts/GENK.sol#297)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (contracts/GENK.sol#283)
- _BNBFee = _previousBNBFee (contracts/GENK.sol#210)
- _BNBFee = 0 (contracts/GENK.sol#205)
- _tokenTransfer(from,to,amount,takeFee) (contracts/GENK.sol#283)
- _balances[sender] = _balances[sender].sub(amount) (contracts/GENK.sol#341)
- _balances[recipient] = _balances[recipient].add(tTransferAmount) (contracts/GENK.sol#342)
- _balances[address(this)] = _balances[address(this)].add(amount.sub(tTransferAmount)) (contracts/GENK.sol#343)
- _tokenTransfer(from,to,amount,takeFee) (contracts/GENK.sol#283)
- _liquidityFee = _previousLiquidityFee (contracts/GENK.sol#211)
- _liquidityFee = 0 (contracts/GENK.sol#206)
- lastSwapTime = block.timestamp (contracts/GENK.sol#268)
Apply the check-effects-interactions pattern.
Additional information: link
GENKToken.swapAndCharge(uint256) (contracts/GENK.sol#286-300) uses a dangerous strict equality:
- require(bool,string)(success == true,Transfer failed.) (contracts/GENK.sol#298)
Don't use strict equality to determine if an account has enough Ether or tokens.
Additional information: link
Contract ownership is not renounced (belongs to a wallet)
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
GENKToken.swapAndCharge(uint256) (contracts/GENK.sol#286-300) performs a multiplication on the result of a division:
-liquidBalance = tokenBalance.mul(_liquidityFee).div(_liquidityFee + _BNBFee).div(2) (contracts/GENK.sol#289)
-bnbForLiquid = newBalance.mul(liquidBalance).div(tokenBalance) (contracts/GENK.sol#294)
Consider ordering multiplication before division.
Additional information: link
GENKToken.addLiquidity(uint256,uint256) (contracts/GENK.sol#321-334) ignores return value by pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/GENK.sol#326-333)
Ensure that all the return values of the function calls are used.
Additional information: link
GENKToken.allowance(address,address).owner (contracts/GENK.sol#117) shadows:
- Ownable.owner() (contracts/Ownable.sol#19-21) (function)
GENKToken._approve(address,address,uint256).owner (contracts/GENK.sol#218) shadows:
- Ownable.owner() (contracts/Ownable.sol#19-21) (function)
Rename the local variables that shadow another component.
Additional information: link
Reentrancy in GENKToken._transfer(address,address,uint256) (contracts/GENK.sol#226-284):
External calls:
- swapAndCharge(tokenBalance) (contracts/GENK.sol#267)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/GENK.sol#326-333)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/GENK.sol#312-318)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (contracts/GENK.sol#297)
External calls sending eth:
- swapAndCharge(tokenBalance) (contracts/GENK.sol#267)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/GENK.sol#326-333)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (contracts/GENK.sol#297)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (contracts/GENK.sol#283)
- _previousBNBFee = _BNBFee (contracts/GENK.sol#202)
- _tokenTransfer(from,to,amount,takeFee) (contracts/GENK.sol#283)
- _previousLiquidityFee = _liquidityFee (contracts/GENK.sol#203)
Reentrancy in GENKToken.constructor() (contracts/GENK.sol#69-86):
External calls:
- pancakeswapV2Pair = IPancakeswapV2Factory(_pancakeswapV2Router.factory()).createPair(address(this),_pancakeswapV2Router.WETH()) (contracts/GENK.sol#75-76)
State variables written after the call(s):
- _balances[_msgSender()] = _tTotal (contracts/GENK.sol#84)
- _isExcludedFromFee[_msgSender()] = true (contracts/GENK.sol#82)
- _isExcludedFromFee[address(this)] = true (contracts/GENK.sol#83)
- pancakeswapV2Router = _pancakeswapV2Router (contracts/GENK.sol#79)
Reentrancy in GENKToken.swapAndCharge(uint256) (contracts/GENK.sol#286-300):
External calls:
- swapTokensForEth(tokenBalance) (contracts/GENK.sol#291)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/GENK.sol#312-318)
- addLiquidity(liquidBalance,bnbForLiquid) (contracts/GENK.sol#295)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/GENK.sol#326-333)
External calls sending eth:
- addLiquidity(liquidBalance,bnbForLiquid) (contracts/GENK.sol#295)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/GENK.sol#326-333)
State variables written after the call(s):
- addLiquidity(liquidBalance,bnbForLiquid) (contracts/GENK.sol#295)
- _allowances[owner][spender] = amount (contracts/GENK.sol#222)
Reentrancy in GENKToken.transferFrom(address,address,uint256) (contracts/GENK.sol#126-130):
External calls:
- _transfer(sender,recipient,amount) (contracts/GENK.sol#127)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/GENK.sol#326-333)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/GENK.sol#312-318)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (contracts/GENK.sol#297)
External calls sending eth:
- _transfer(sender,recipient,amount) (contracts/GENK.sol#127)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/GENK.sol#326-333)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (contracts/GENK.sol#297)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,BEP20: transfer amount exceeds allowance)) (contracts/GENK.sol#128)
- _allowances[owner][spender] = amount (contracts/GENK.sol#222)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in GENKToken._transfer(address,address,uint256) (contracts/GENK.sol#226-284):
External calls:
- swapAndCharge(tokenBalance) (contracts/GENK.sol#267)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/GENK.sol#326-333)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/GENK.sol#312-318)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (contracts/GENK.sol#297)
External calls sending eth:
- swapAndCharge(tokenBalance) (contracts/GENK.sol#267)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/GENK.sol#326-333)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (contracts/GENK.sol#297)
Event emitted after the call(s):
- Transfer(sender,recipient,tTransferAmount) (contracts/GENK.sol#344)
- _tokenTransfer(from,to,amount,takeFee) (contracts/GENK.sol#283)
Reentrancy in GENKToken.constructor() (contracts/GENK.sol#69-86):
External calls:
- pancakeswapV2Pair = IPancakeswapV2Factory(_pancakeswapV2Router.factory()).createPair(address(this),_pancakeswapV2Router.WETH()) (contracts/GENK.sol#75-76)
Event emitted after the call(s):
- Transfer(address(0),owner(),_tTotal) (contracts/GENK.sol#85)
Reentrancy in GENKToken.swapAndCharge(uint256) (contracts/GENK.sol#286-300):
External calls:
- swapTokensForEth(tokenBalance) (contracts/GENK.sol#291)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/GENK.sol#312-318)
- addLiquidity(liquidBalance,bnbForLiquid) (contracts/GENK.sol#295)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/GENK.sol#326-333)
External calls sending eth:
- addLiquidity(liquidBalance,bnbForLiquid) (contracts/GENK.sol#295)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/GENK.sol#326-333)
Event emitted after the call(s):
- Approval(owner,spender,amount) (contracts/GENK.sol#223)
- addLiquidity(liquidBalance,bnbForLiquid) (contracts/GENK.sol#295)
Reentrancy in GENKToken.swapAndCharge(uint256) (contracts/GENK.sol#286-300):
External calls:
- swapTokensForEth(tokenBalance) (contracts/GENK.sol#291)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/GENK.sol#312-318)
- addLiquidity(liquidBalance,bnbForLiquid) (contracts/GENK.sol#295)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/GENK.sol#326-333)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (contracts/GENK.sol#297)
External calls sending eth:
- addLiquidity(liquidBalance,bnbForLiquid) (contracts/GENK.sol#295)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/GENK.sol#326-333)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (contracts/GENK.sol#297)
Event emitted after the call(s):
- SwapAndCharged(tokenBalance,liquidBalance,address(this).balance,bnbForLiquid) (contracts/GENK.sol#299)
Reentrancy in GENKToken.transferFrom(address,address,uint256) (contracts/GENK.sol#126-130):
External calls:
- _transfer(sender,recipient,amount) (contracts/GENK.sol#127)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/GENK.sol#326-333)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/GENK.sol#312-318)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (contracts/GENK.sol#297)
External calls sending eth:
- _transfer(sender,recipient,amount) (contracts/GENK.sol#127)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/GENK.sol#326-333)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (contracts/GENK.sol#297)
Event emitted after the call(s):
- Approval(owner,spender,amount) (contracts/GENK.sol#223)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,BEP20: transfer amount exceeds allowance)) (contracts/GENK.sol#128)
Apply the check-effects-interactions pattern.
Additional information: link
GENKToken._transfer(address,address,uint256) (contracts/GENK.sol#226-284) uses timestamp for comparisons
Dangerous comparisons:
- overMinTokenBalance && ! inSwapAndLiquify && from != pancakeswapV2Pair && swapAndLiquifyEnabled && block.timestamp >= lastSwapTime + swapCoolDownTime (contracts/GENK.sol#260-264)
Ownable.unlock() (contracts/Ownable.sol#50-55) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp > _lockTime,Contract is locked until 0 days) (contracts/Ownable.sol#52)
Avoid relying on block.timestamp.
Additional information: link
GENKToken._transfer(address,address,uint256) (contracts/GENK.sol#226-284) compares to a boolean constant:
-require(bool,string)(presaleEnded == true,You are not allowed to add liquidity before presale is ended) (contracts/GENK.sol#235)
GENKToken.swapAndCharge(uint256) (contracts/GENK.sol#286-300) compares to a boolean constant:
-require(bool,string)(success == true,Transfer failed.) (contracts/GENK.sol#298)
Remove the equality to the boolean constant.
Additional information: link
Context._msgData() (contracts/Context.sol#18-21) is never used and should be removed
SafeMath.div(uint256,uint256,string) (contracts/SafeMath.sol#189-194) is never used and should be removed
SafeMath.mod(uint256,uint256) (contracts/SafeMath.sol#149-151) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (contracts/SafeMath.sol#211-216) is never used and should be removed
SafeMath.tryAdd(uint256,uint256) (contracts/SafeMath.sol#20-26) is never used and should be removed
SafeMath.tryDiv(uint256,uint256) (contracts/SafeMath.sol#62-67) is never used and should be removed
SafeMath.tryMod(uint256,uint256) (contracts/SafeMath.sol#74-79) is never used and should be removed
SafeMath.tryMul(uint256,uint256) (contracts/SafeMath.sol#45-55) is never used and should be removed
SafeMath.trySub(uint256,uint256) (contracts/SafeMath.sol#33-38) is never used and should be removed
Remove unused functions.
Additional information: link
GENKToken._previousBNBFee (contracts/GENK.sol#29) is set pre-construction with a non-constant function or state variable:
- _BNBFee
GENKToken._previousLiquidityFee (contracts/GENK.sol#32) is set pre-construction with a non-constant function or state variable:
- _liquidityFee
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
Pragma version^0.8.0 (contracts/Context.sol#2) allows old versions
Pragma version^0.8.0 (contracts/GENK.sol#3) allows old versions
Pragma version^0.8.0 (contracts/IBEP20.sol#3) allows old versions
Pragma version^0.8.0 (contracts/IPancakeswapV2Factory.sol#3) allows old versions
Pragma version^0.8.0 (contracts/IPancakeswapV2Router01.sol#3) allows old versions
Pragma version^0.8.0 (contracts/IPancakeswapV2Router02.sol#3) allows old versions
Pragma version^0.8.0 (contracts/Ownable.sol#2) allows old versions
Pragma version^0.8.0 (contracts/SafeMath.sol#2) allows old versions
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 GENKToken.swapAndCharge(uint256) (contracts/GENK.sol#286-300):
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (contracts/GENK.sol#297)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Parameter GENKToken.setSwapAndLiquifyEnabled(bool)._enabled (contracts/GENK.sol#185) is not in mixedCase
Variable GENKToken._BNBFee (contracts/GENK.sol#28) is not in mixedCase
Variable GENKToken._liquidityFee (contracts/GENK.sol#31) is not in mixedCase
Variable GENKToken._maxTxAmount (contracts/GENK.sol#42) is not in mixedCase
Function IPancakeswapV2Router01.WETH() (contracts/IPancakeswapV2Router01.sol#7) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (contracts/Context.sol#19)" inContext (contracts/Context.sol#13-23)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable IPancakeswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (contracts/IPancakeswapV2Router01.sol#12) is too similar to IPancakeswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (contracts/IPancakeswapV2Router01.sol#13)
Prevent variables from having similar names.
Additional information: link
GENKToken.MAX (contracts/GENK.sol#23) is never used in GENKToken (contracts/GENK.sol#12-350)
GENKToken.lastTxTimes (contracts/GENK.sol#47) is never used in GENKToken (contracts/GENK.sol#12-350)
Remove unused state variables.
Additional information: link
GENKToken._decimals (contracts/GENK.sol#26) should be constant
GENKToken._name (contracts/GENK.sol#24) should be constant
GENKToken._symbol (contracts/GENK.sol#25) should be constant
GENKToken._tTotal (contracts/GENK.sol#22) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
transfer(address,uint256) should be declared external:
- GENKToken.transfer(address,uint256) (contracts/GENK.sol#112-115)
allowance(address,address) should be declared external:
- GENKToken.allowance(address,address) (contracts/GENK.sol#117-119)
approve(address,uint256) should be declared external:
- GENKToken.approve(address,uint256) (contracts/GENK.sol#121-124)
transferFrom(address,address,uint256) should be declared external:
- GENKToken.transferFrom(address,address,uint256) (contracts/GENK.sol#126-130)
increaseAllowance(address,uint256) should be declared external:
- GENKToken.increaseAllowance(address,uint256) (contracts/GENK.sol#132-135)
decreaseAllowance(address,uint256) should be declared external:
- GENKToken.decreaseAllowance(address,uint256) (contracts/GENK.sol#137-140)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (contracts/Ownable.sol#28-31)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (contracts/Ownable.sol#33-37)
geUnlockTime() should be declared external:
- Ownable.geUnlockTime() (contracts/Ownable.sol#39-41)
lock(uint256) should be declared external:
- Ownable.lock(uint256) (contracts/Ownable.sol#43-48)
unlock() should be declared external:
- Ownable.unlock() (contracts/Ownable.sol#50-55)
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 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 token on CoinGecko
Additional information: link
Token was delisted (assigned to inactive / untracked listing) from CoinMarketCap
Additional information: link
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
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
Token has no active CoinMarketCap listing / rank
Alexa traffic rank is relatively low
Additional information: link
Young tokens have high risks of price dump / death
Telegram account link seems to be invalid
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account