GFLOKI is an innovative AI Rebase token. AI automatically calculates the most reasonable increase and can passively reward $DOGE coins. The earlier the purchase time, the longer the token holding time, the higher the proportion of dividends. This combination of AI Rebase and Passive Dividend rewards is a new combination on the Binance Smart Chain, which will break all leaderboards!The great Musk has recently fallen in love with Genshin, and Floki is a new pet adopted by Musk. Before that, Floki had been wandering around looking for food and shelter with the spirit of persistence and non-giving up. After adoption, I watched Musk play the game Genshin every day. After a long time, the smart Floki was also infected by the charm of Genshin, so GenshinFloki, who inherited the charm and wisdom of the great dog king, has arrived.
GenshinFlokiInu.swapBack() (#1041-1098) sends eth to arbitrary user
Dangerous calls:
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#1075-1078)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#1079-1082)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in GenshinFlokiInu._transferFrom(address,address,uint256) (#845-928):
External calls:
- swapBack() (#903)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#1056-1062)
- distributor.deposit{value: amountBNBReflection}() (#1074)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#1075-1078)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#1079-1082)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#1088-1095)
External calls sending eth:
- swapBack() (#903)
- distributor.deposit{value: amountBNBReflection}() (#1074)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#1075-1078)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#1079-1082)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#1088-1095)
State variables written after the call(s):
- _rBalance[sender] = _rBalance[sender].sub(rAmount,Insufficient Balance) (#907)
- _rBalance[recipient] = _rBalance[recipient].add(amountReceived) (#913)
- amountReceived = takeFee(sender,rAmount,(recipient == pair)) (#909-912)
- _rBalance[address(this)] = _rBalance[address(this)].add(feeAmount) (#972)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.distributeDividend(address) (#390-407) ignores return value by RWRD.transfer(shareholder,amount) (#398)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Too many vulnerabilities (Unchecked transfer, Reentrancy vulnerability, etc.). High risk of a scam. DYOR & manual audit are advised.
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
GenshinFlokiInu.swapBack().tmpSuccess (#1075) is written in both
(tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#1079-1082)
tmpSuccess = false (#1085)
Fix or remove the writes.
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.
Combination 2: Unchecked transfer + 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.
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.
Not a direct threat, but may indicate unreliable intentions of developer. Widespread names (e.g. Elon, King, Moon, Doge) are common among meme-tokens and scams. The allow to gain free hype and attract unexperienced investors.
GenshinFlokiInu.slitherConstructorVariables() (#457-1327) performs a multiplication on the result of a division:
-_maxWalletToken = rSupply.div(1000).mul(50) (#545)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in DividendDistributor.setShare(address,uint256) (#312-332):
External calls:
- distributeDividend(shareholder) (#318)
- RWRD.transfer(shareholder,amount) (#398)
State variables written after the call(s):
- shares[shareholder].amount = amount (#328)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#329-331)
Apply the check-effects-interactions pattern.
Additional information: link
GenshinFlokiInu.manage_blacklist(address[],bool).i (#1031) is a local variable never initialized
Initialize all the variables. If a variable is meant to be initialized to zero, explicitly set it to zero to improve code readability.
Additional information: link
GenshinFlokiInu.swapBack() (#1041-1098) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#1088-1095)
Ensure that all the return values of the function calls are used.
Additional information: link
GenshinFlokiInu.setMaster(address) (#1181-1183) should emit an event for:
- master = _master (#1182)
Emit an event for critical parameter changes.
Additional information: link
GenshinFlokiInu.setMaxTxPercent_base1000(uint256) (#1250-1255) should emit an event for:
- _maxTxAmount = rSupply.div(1000).mul(maxTXPercentage_base1000) (#1254)
Emit an event for critical parameter changes.
Additional information: link
GenshinFlokiInu.rescueBNB(address)._recipient (#1213) lacks a zero-check on :
- _recipient.transfer(address(this).balance) (#1214)
Check that the address is not zero.
Additional information: link
GenshinFlokiInu.multiTransfer_fixed(address,address[],uint256) (#1296-1323) has external calls inside a loop: distributor.setShare(addresses[i],balanceOf(addresses[i])) (#1313-1315)
Favor pull over push strategy for external calls.
Additional information: link
Reentrancy in DividendDistributor.setShare(address,uint256) (#312-332):
External calls:
- distributeDividend(shareholder) (#318)
- RWRD.transfer(shareholder,amount) (#398)
State variables written after the call(s):
- addShareholder(shareholder) (#322)
- shareholderIndexes[shareholder] = shareholders.length (#442)
- removeShareholder(shareholder) (#324)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#450-452)
- addShareholder(shareholder) (#322)
- shareholders.push(shareholder) (#443)
- removeShareholder(shareholder) (#324)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#447-449)
- shareholders.pop() (#453)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#327)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in GenshinFlokiInu.swapBack() (#1041-1098):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#1056-1062)
- distributor.deposit{value: amountBNBReflection}() (#1074)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#1075-1078)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#1079-1082)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#1088-1095)
External calls sending eth:
- distributor.deposit{value: amountBNBReflection}() (#1074)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#1075-1078)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#1079-1082)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#1088-1095)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify.div(rate)) (#1096)
Apply the check-effects-interactions pattern.
Additional information: link
GenshinFlokiInu._transferFrom(address,address,uint256) (#845-928) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(cooldownTimer[recipient] < block.timestamp,buy Cooldown exists) (#884-887)
Avoid relying on block.timestamp.
Additional information: link
DividendDistributor.process(uint256) (#356-382) has costly operations inside a loop:
- currentIndex ++ (#379)
Use a local variable to hold the loop computation result.
Additional information: link
SafeMathInt.sub(int256,int256) (#72-76) is never used and should be removed
Remove unused functions.
Additional information: link
GenshinFlokiInu.swapThreshold (#534) is set pre-construction with a non-constant function or state variable:
- rSupply.div(swapMultiplier)
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.7.4 (#3) 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 GenshinFlokiInu.swapBack() (#1041-1098):
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#1075-1078)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#1079-1082)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable GenshinFlokiInu._maxWalletToken (#545) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#187) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#188)
Prevent variables from having similar names.
Additional information: link
GenshinFlokiInu.slitherConstructorVariables() (#457-1327) uses literals with too many digits:
- distributorGas = 500000 (#510)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SafeMathInt.MAX_INT256 (#56) is never used in SafeMathInt (#54-88)
Remove unused state variables.
Additional information: link
GenshinFlokiInu.ZERO (#463) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
isOverLiquified(uint256,uint256) should be declared external:
- GenshinFlokiInu.isOverLiquified(uint256,uint256) (#1227-1233)
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/project description on the website or on BscScan, CoinMarketCap
Unable to find whitepaper link on the website
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
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
Young tokens have high risks of price dump / death
Token has relatively low CoinGecko rank
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