Raven the Game is a play to earn game that is currently live on Google Play. You can play the game from your android phone or our website. Top scorers are going to be rewarded with $RTG each week!
Raven the Game has some special contract properties to make sure it's price is always going up after the launch, like liquidity generating and reflection to our holders. You can earn more tokens simply by holding!
Our unique 10k NFT collection will be launched and integrated with our game after our presale, don't forget this chance to get into the metaverse!
Audit report : https://github.com/interfinetwork/smart-contract-audits/blob/main/RavenTheGame_0x6f4bA85A97B914Fd7e1C52cFBa85ed57C843c6Fc.pdf
Play the game:
https://play.google.com/store/apps/details?id=com.RavenGameStudios.RavenTheGame
Raventhegame.addLiquidity(uint256,uint256) (#586-599) sends eth to arbitrary user
Dangerous calls:
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#591-598)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in Raventhegame._transfer(address,address,uint256) (#482-529):
External calls:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#520)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#591-598)
- (success) = recipient.call{value: amount}() (#106)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#610-616)
- address(marketingWallet).sendValue(marketingAmt) (#578)
- address(devWallet).sendValue(devAmt) (#582)
- swapAndLiquify(swapTokensAtAmount,taxes) (#521)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#591-598)
- (success) = recipient.call{value: amount}() (#106)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#610-616)
- address(marketingWallet).sendValue(marketingAmt) (#578)
- address(devWallet).sendValue(devAmt) (#582)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#520)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#591-598)
- (success) = recipient.call{value: amount}() (#106)
- swapAndLiquify(swapTokensAtAmount,taxes) (#521)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#591-598)
- (success) = recipient.call{value: amount}() (#106)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee,isSell) (#528)
- _rOwned[address(this)] += rDev (#403)
- _rOwned[address(this)] += rMarketing (#393)
- _rOwned[address(this)] += rLiquidity (#383)
- _rOwned[sender] = _rOwned[sender] - s.rAmount (#544)
- _rOwned[recipient] = _rOwned[recipient] + s.rTransferAmount (#545)
- _tokenTransfer(from,to,amount,takeFee,isSell) (#528)
- _rTotal -= rRfi (#372)
- _tokenTransfer(from,to,amount,takeFee,isSell) (#528)
- _tOwned[address(this)] += tMarketing (#391)
- _tOwned[address(this)] += tLiquidity (#381)
- _tOwned[address(this)] += tDev (#401)
- _tOwned[sender] = _tOwned[sender] - tAmount (#538)
- _tOwned[recipient] = _tOwned[recipient] + s.tTransferAmount (#541)
Apply the check-effects-interactions pattern.
Additional information: link
Raventhegame.rescueAnyBEP20Tokens(address,address,uint256) (#694-696) ignores return value by IERC20(_tokenAddr).transfer(_to,_amount) (#695)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
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.
Raventhegame.swapAndLiquify(uint256,Raventhegame.Taxes) (#558-584) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - temp.liquidity) (#568)
-bnbToAddLiquidityWith = unitBalance * temp.liquidity (#569)
Raventhegame.swapAndLiquify(uint256,Raventhegame.Taxes) (#558-584) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - temp.liquidity) (#568)
-marketingAmt = unitBalance * 2 * temp.marketing (#576)
Raventhegame.swapAndLiquify(uint256,Raventhegame.Taxes) (#558-584) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - temp.liquidity) (#568)
-devAmt = unitBalance * 2 * temp.dev (#580)
Consider ordering multiplication before division.
Additional information: link
Raventhegame.addLiquidity(uint256,uint256) (#586-599) ignores return value by router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#591-598)
Ensure that all the return values of the function calls are used.
Additional information: link
Raventhegame.allowance(address,address).owner (#251) shadows:
- Ownable.owner() (#53-55) (function)
Raventhegame._approve(address,address,uint256).owner (#475) shadows:
- Ownable.owner() (#53-55) (function)
Rename the local variables that shadow another component.
Additional information: link
Raventhegame.updateCooldown(bool,uint256) (#641-645) should emit an event for:
- coolDownTime = time * 1 (#643)
Raventhegame.updateSwapTokensAtAmount(uint256) (#647-649) should emit an event for:
- swapTokensAtAmount = amount * 10 ** _decimals (#648)
Raventhegame.updateMaxTxLimit(uint256,uint256) (#673-678) should emit an event for:
- maxBuyLimit = maxBuy * 10 ** decimals() (#676)
- maxSellLimit = maxSell * 10 ** decimals() (#677)
Emit an event for critical parameter changes.
Additional information: link
Raventhegame.constructor(address)._pair (#207-208) lacks a zero-check on :
- pair = _pair (#211)
Raventhegame.updateMarketingWallet(address).newWallet (#632) lacks a zero-check on :
- marketingWallet = newWallet (#633)
Raventhegame.updateDevWallet(address).newWallet (#636) lacks a zero-check on :
- devWallet = newWallet (#637)
Raventhegame.updateRouterAndPair(address,address).newPair (#682) lacks a zero-check on :
- pair = newPair (#684)
Check that the address is not zero.
Additional information: link
Reentrancy in Raventhegame._transfer(address,address,uint256) (#482-529):
External calls:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#520)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#591-598)
- (success) = recipient.call{value: amount}() (#106)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#610-616)
- address(marketingWallet).sendValue(marketingAmt) (#578)
- address(devWallet).sendValue(devAmt) (#582)
- swapAndLiquify(swapTokensAtAmount,taxes) (#521)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#591-598)
- (success) = recipient.call{value: amount}() (#106)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#610-616)
- address(marketingWallet).sendValue(marketingAmt) (#578)
- address(devWallet).sendValue(devAmt) (#582)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#520)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#591-598)
- (success) = recipient.call{value: amount}() (#106)
- swapAndLiquify(swapTokensAtAmount,taxes) (#521)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#591-598)
- (success) = recipient.call{value: amount}() (#106)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee,isSell) (#528)
- totFeesPaid.dev += tDev (#397)
- totFeesPaid.liquidity += tLiquidity (#377)
- totFeesPaid.marketing += tMarketing (#387)
- totFeesPaid.rfi += tRfi (#373)
Reentrancy in Raventhegame.constructor(address) (#205-228):
External calls:
- _pair = IFactory(_router.factory()).createPair(address(this),_router.WETH()) (#207-208)
State variables written after the call(s):
- excludeFromReward(pair) (#213)
- _excluded.push(account) (#329)
- excludeFromReward(pair) (#213)
- _isExcluded[account] = true (#328)
- _isExcludedFromFee[address(this)] = true (#216)
- _isExcludedFromFee[owner()] = true (#217)
- _isExcludedFromFee[marketingWallet] = true (#218)
- _isExcludedFromFee[devWallet] = true (#219)
- _rOwned[owner()] = _rTotal (#215)
- excludeFromReward(pair) (#213)
- _tOwned[account] = tokenFromReflection(_rOwned[account]) (#326)
- allowedTransfer[address(this)] = true (#221)
- allowedTransfer[owner()] = true (#222)
- allowedTransfer[pair] = true (#223)
- allowedTransfer[marketingWallet] = true (#224)
- allowedTransfer[devWallet] = true (#225)
- pair = _pair (#211)
- router = _router (#210)
Reentrancy in Raventhegame.swapAndLiquify(uint256,Raventhegame.Taxes) (#558-584):
External calls:
- swapTokensForBNB(toSwap) (#565)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#610-616)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#573)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#591-598)
External calls sending eth:
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#573)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#591-598)
State variables written after the call(s):
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#573)
- _allowances[owner][spender] = amount (#478)
Reentrancy in Raventhegame.transferFrom(address,address,uint256) (#260-268):
External calls:
- _transfer(sender,recipient,amount) (#261)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#591-598)
- (success) = recipient.call{value: amount}() (#106)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#610-616)
- address(marketingWallet).sendValue(marketingAmt) (#578)
- address(devWallet).sendValue(devAmt) (#582)
External calls sending eth:
- _transfer(sender,recipient,amount) (#261)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#591-598)
- (success) = recipient.call{value: amount}() (#106)
State variables written after the call(s):
- _approve(sender,_msgSender(),currentAllowance - amount) (#265)
- _allowances[owner][spender] = amount (#478)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Raventhegame._transfer(address,address,uint256) (#482-529):
External calls:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#520)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#591-598)
- (success) = recipient.call{value: amount}() (#106)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#610-616)
- address(marketingWallet).sendValue(marketingAmt) (#578)
- address(devWallet).sendValue(devAmt) (#582)
- swapAndLiquify(swapTokensAtAmount,taxes) (#521)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#591-598)
- (success) = recipient.call{value: amount}() (#106)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#610-616)
- address(marketingWallet).sendValue(marketingAmt) (#578)
- address(devWallet).sendValue(devAmt) (#582)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#520)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#591-598)
- (success) = recipient.call{value: amount}() (#106)
- swapAndLiquify(swapTokensAtAmount,taxes) (#521)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#591-598)
- (success) = recipient.call{value: amount}() (#106)
Event emitted after the call(s):
- Transfer(sender,address(this),s.tLiquidity + s.tMarketing + s.tDev) (#550)
- _tokenTransfer(from,to,amount,takeFee,isSell) (#528)
- Transfer(sender,recipient,s.tTransferAmount) (#554)
- _tokenTransfer(from,to,amount,takeFee,isSell) (#528)
Reentrancy in Raventhegame.constructor(address) (#205-228):
External calls:
- _pair = IFactory(_router.factory()).createPair(address(this),_router.WETH()) (#207-208)
Event emitted after the call(s):
- Transfer(address(0),owner(),_tTotal) (#227)
Reentrancy in Raventhegame.swapAndLiquify(uint256,Raventhegame.Taxes) (#558-584):
External calls:
- swapTokensForBNB(toSwap) (#565)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#610-616)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#573)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#591-598)
External calls sending eth:
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#573)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#591-598)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#479)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#573)
Reentrancy in Raventhegame.transferFrom(address,address,uint256) (#260-268):
External calls:
- _transfer(sender,recipient,amount) (#261)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#591-598)
- (success) = recipient.call{value: amount}() (#106)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#610-616)
- address(marketingWallet).sendValue(marketingAmt) (#578)
- address(devWallet).sendValue(devAmt) (#582)
External calls sending eth:
- _transfer(sender,recipient,amount) (#261)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#591-598)
- (success) = recipient.call{value: amount}() (#106)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#479)
- _approve(sender,_msgSender(),currentAllowance - amount) (#265)
Apply the check-effects-interactions pattern.
Additional information: link
Raventhegame._transfer(address,address,uint256) (#482-529) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(timePassed >= coolDownTime,Cooldown enabled) (#509)
Avoid relying on block.timestamp.
Additional information: link
Raventhegame.setTStatus(bool) (#309-314) compares to a boolean constant:
-state == true && genesis_block == 0 (#313)
Raventhegame.setTStatus(bool) (#309-314) compares to a boolean constant:
-require(bool,string)(state != false,You can not stop trading after it is started) (#310)
Remove the equality to the boolean constant.
Additional information: link
Raventhegame.includeInReward(address) (#332-343) has costly operations inside a loop:
- _excluded.pop() (#339)
Raventhegame._reflectRfi(uint256,uint256) (#371-374) has costly operations inside a loop:
- _rTotal -= rRfi (#372)
Use a local variable to hold the loop computation result.
Additional information: link
Context._msgData() (#38-41) is never used and should be removed
Remove unused functions.
Additional information: link
Raventhegame._rTotal (#148) is set pre-construction with a non-constant function or state variable:
- (MAX - (MAX % _tTotal))
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) (#103-108):
- (success) = recipient.call{value: amount}() (#106)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IRouter.WETH() (#84) is not in mixedCase
Struct Raventhegame.valuesFromGetValues (#182-194) is not in CapWords
Function Raventhegame.bl_check(address) (#293-295) is not in mixedCase
Parameter Raventhegame.setTaxes(uint256,uint256,uint256,uint256)._rfi (#359) is not in mixedCase
Parameter Raventhegame.setTaxes(uint256,uint256,uint256,uint256)._marketing (#359) is not in mixedCase
Parameter Raventhegame.setTaxes(uint256,uint256,uint256,uint256)._liquidity (#359) is not in mixedCase
Parameter Raventhegame.setTaxes(uint256,uint256,uint256,uint256)._dev (#359) is not in mixedCase
Parameter Raventhegame.setSellTaxes(uint256,uint256,uint256,uint256)._rfi (#365) is not in mixedCase
Parameter Raventhegame.setSellTaxes(uint256,uint256,uint256,uint256)._marketing (#365) is not in mixedCase
Parameter Raventhegame.setSellTaxes(uint256,uint256,uint256,uint256)._liquidity (#365) is not in mixedCase
Parameter Raventhegame.setSellTaxes(uint256,uint256,uint256,uint256)._dev (#365) is not in mixedCase
Parameter Raventhegame.rescueAnyBEP20Tokens(address,address,uint256)._tokenAddr (#694) is not in mixedCase
Parameter Raventhegame.rescueAnyBEP20Tokens(address,address,uint256)._to (#694) is not in mixedCase
Parameter Raventhegame.rescueAnyBEP20Tokens(address,address,uint256)._amount (#694) is not in mixedCase
Variable Raventhegame.t_Enabled (#125) is not in mixedCase
Constant Raventhegame._decimals (#144) is not in UPPER_CASE_WITH_UNDERSCORES
Variable Raventhegame.genesis_block (#155) is not in mixedCase
Constant Raventhegame._name (#160) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Raventhegame._symbol (#161) is not in UPPER_CASE_WITH_UNDERSCORES
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#39)" inContext (#33-42)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Raventhegame._tTotal (#147) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#62-64)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#66-69)
name() should be declared external:
- Raventhegame.name() (#231-233)
symbol() should be declared external:
- Raventhegame.symbol() (#234-236)
totalSupply() should be declared external:
- Raventhegame.totalSupply() (#242-244)
allowance(address,address) should be declared external:
- Raventhegame.allowance(address,address) (#251-253)
approve(address,uint256) should be declared external:
- Raventhegame.approve(address,uint256) (#255-258)
transferFrom(address,address,uint256) should be declared external:
- Raventhegame.transferFrom(address,address,uint256) (#260-268)
increaseAllowance(address,uint256) should be declared external:
- Raventhegame.increaseAllowance(address,uint256) (#270-273)
decreaseAllowance(address,uint256) should be declared external:
- Raventhegame.decreaseAllowance(address,uint256) (#275-281)
transfer(address,uint256) should be declared external:
- Raventhegame.transfer(address,uint256) (#283-287)
isExcludedFromReward(address) should be declared external:
- Raventhegame.isExcludedFromReward(address) (#289-291)
bl_check(address) should be declared external:
- Raventhegame.bl_check(address) (#293-295)
reflectionFromToken(uint256,bool) should be declared external:
- Raventhegame.reflectionFromToken(uint256,bool) (#297-306)
excludeFromFee(address) should be declared external:
- Raventhegame.excludeFromFee(address) (#346-348)
includeInFee(address) should be declared external:
- Raventhegame.includeInFee(address) (#350-352)
isExcludedFromFee(address) should be declared external:
- Raventhegame.isExcludedFromFee(address) (#355-357)
setTaxes(uint256,uint256,uint256,uint256) should be declared external:
- Raventhegame.setTaxes(uint256,uint256,uint256,uint256) (#359-363)
setSellTaxes(uint256,uint256,uint256,uint256) should be declared external:
- Raventhegame.setSellTaxes(uint256,uint256,uint256,uint256) (#365-369)
rescueAnyBEP20Tokens(address,address,uint256) should be declared external:
- Raventhegame.rescueAnyBEP20Tokens(address,address,uint256) (#694-696)
Use the external attribute for functions never called from the contract.
Additional information: link
Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive. Ignore for presale.
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
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.
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
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/project description on the website or on BscScan, CoinMarketCap
Unable to find whitepaper link on the website
Unable to find code repository for the project
Young tokens have high risks of price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Last post in Twitter was more than 30 days ago
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account