WoF is an outstanding Play&Earn game where you can build your own DeFi farm and earn $WoF tokens. Open the app and collect new lands, resources, or legendary shovels, feed your animals and beat other players and guilds! Create your farming empire in DeFi!
WorldOfFarms._isExcludedFromLimits (#105) is never initialized. It is used in:
- WorldOfFarms._transfer(address,address,uint256) (#474-516)
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
Reentrancy in WorldOfFarms._transfer(address,address,uint256) (#474-516):
External calls:
- contractSwap(contractTokenBalance) (#510)
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(contractTokenBalance,0,path,address(this),block.timestamp) (#532-540)
- (success,None) = _taxWallets.marketing.call{gas: 35000,value: marketingBalance}() (#547)
- (success,None) = _taxWallets.development.call{gas: 35000,value: developmentBalance}() (#550)
- finalizeTransfer(from,to,amount,buy,sell,other) (#515)
- protections.checkUser(from,to,amount) (#597-598)
External calls sending eth:
- contractSwap(contractTokenBalance) (#510)
- (success,None) = _taxWallets.marketing.call{gas: 35000,value: marketingBalance}() (#547)
- (success,None) = _taxWallets.development.call{gas: 35000,value: developmentBalance}() (#550)
State variables written after the call(s):
- finalizeTransfer(from,to,amount,buy,sell,other) (#515)
- _liquidityHolders[from] = true (#557)
- finalizeTransfer(from,to,amount,buy,sell,other) (#515)
- _tOwned[from] -= amount (#605)
- _tOwned[address(this)] += feeAmount (#633)
- _tOwned[to] += amountReceived (#607)
- finalizeTransfer(from,to,amount,buy,sell,other) (#515)
- contractSwapEnabled = true (#563)
- finalizeTransfer(from,to,amount,buy,sell,other) (#515)
- protections = Protections(address(this)) (#561)
Apply the check-effects-interactions pattern.
Additional information: link
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
Contract ownership is not renounced (belongs to a wallet)
WorldOfFarms.finalizeTransfer(address,address,uint256,bool,bool,bool) (#595-616) ignores return value by protections.checkUser(from,to,amount) (#597-598)
Ensure that all the return values of the function calls are used.
Additional information: link
WorldOfFarms.setSwapSettings(uint256,uint256,uint256,uint256) (#421-428) should emit an event for:
- swapThreshold = (_tTotal * thresholdPercent) / thresholdDivisor (#422)
- swapAmount = (_tTotal * amountPercent) / amountDivisor (#423)
WorldOfFarms.setPriceImpactSwapAmount(uint256) (#430-433) should emit an event for:
- piSwapPercent = priceImpactSwapPercent (#432)
WorldOfFarms.setMaxTxPercent(uint256,uint256) (#408-411) should emit an event for:
- _maxTxAmount = (_tTotal * percent) / divisor (#410)
Emit an event for critical parameter changes.
Additional information: link
WorldOfFarms._checkLiquidityAdd(address,address) (#554-566) has costly operations inside a loop:
- contractSwapEnabled = true (#563)
WorldOfFarms._checkLiquidityAdd(address,address) (#554-566) has costly operations inside a loop:
- _hasLiqBeenAdded = true (#559)
WorldOfFarms._checkLiquidityAdd(address,address) (#554-566) has costly operations inside a loop:
- protections = Protections(address(this)) (#561)
Use a local variable to hold the loop computation result.
Additional information: link
Pragma version>=0.6.0<0.9.0 (#2) is too complex
solc-0.8.17 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 WorldOfFarms.contractSwap(uint256) (#518-552):
- (success,None) = _taxWallets.marketing.call{gas: 35000,value: marketingBalance}() (#547)
- (success,None) = _taxWallets.development.call{gas: 35000,value: developmentBalance}() (#550)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
WorldOfFarms.slitherConstructorConstantVariables() (#99-640) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#149)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Reentrancy in WorldOfFarms.enableTrading() (#568-580):
External calls:
- protections.setLaunch(lpPair,uint32(block.number),uint64(block.timestamp),_decimals) (#574)
State variables written after the call(s):
- tradingEnabled = true (#575)
Reentrancy in WorldOfFarms.transferOwner(address) (#234-248):
External calls:
- finalizeTransfer(_owner,newOwner,balanceOf(_owner),false,false,true) (#241)
- protections.checkUser(from,to,amount) (#597-598)
State variables written after the call(s):
- _owner = newOwner (#245)
Reentrancy in WorldOfFarms.finalizeTransfer(address,address,uint256,bool,bool,bool) (#595-616):
External calls:
- protections.checkUser(from,to,amount) (#597-598)
State variables written after the call(s):
- _checkLiquidityAdd(from,to) (#610)
- _liquidityHolders[from] = true (#557)
- _checkLiquidityAdd(from,to) (#610)
- protections = Protections(address(this)) (#561)
Apply the check-effects-interactions pattern.
Additional information: link
WorldOfFarms.finalizeTransfer(address,address,uint256,bool,bool,bool).check (#597) is a local variable never initialized
WorldOfFarms.finalizeTransfer(address,address,uint256,bool,bool,bool).checked (#596) 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
WorldOfFarms.setOperator(address).newOperator (#259) lacks a zero-check on :
- operator = newOperator (#266)
Check that the address is not zero.
Additional information: link
WorldOfFarms.finalizeTransfer(address,address,uint256,bool,bool,bool) (#595-616) has external calls inside a loop: protections.checkUser(from,to,amount) (#597-598)
Favor pull over push strategy for external calls.
Additional information: link
Variable 'WorldOfFarms.finalizeTransfer(address,address,uint256,bool,bool,bool).check (#597)' in WorldOfFarms.finalizeTransfer(address,address,uint256,bool,bool,bool) (#595-616) potentially used before declaration: checked = check (#598)
Move all variable declarations prior to any usage of the variable, and ensure that reaching a variable declaration does not depend on some conditional if it is used unconditionally.
Additional information: link
Reentrancy in WorldOfFarms.setNewRouter(address) (#322-334):
External calls:
- lpPair = IFactoryV2(_newRouter.factory()).createPair(address(this),_newRouter.WETH()) (#327)
State variables written after the call(s):
- _approve(address(this),address(dexRouter),type()(uint256).max) (#333)
- _allowances[sender][spender] = amount (#305)
- dexRouter = _newRouter (#332)
Reentrancy in WorldOfFarms.finalizeTransfer(address,address,uint256,bool,bool,bool) (#595-616):
External calls:
- protections.checkUser(from,to,amount) (#597-598)
State variables written after the call(s):
- _checkLiquidityAdd(from,to) (#610)
- _hasLiqBeenAdded = true (#559)
- _checkLiquidityAdd(from,to) (#610)
- _isExcludedFromFees[from] = true (#558)
- _tOwned[from] -= amount (#605)
- _tOwned[to] += amountReceived (#607)
- amountReceived = takeTaxes(from,buy,sell,amount) (#606)
- _tOwned[address(this)] += feeAmount (#633)
- _checkLiquidityAdd(from,to) (#610)
- contractSwapEnabled = true (#563)
Reentrancy in WorldOfFarms.enableTrading() (#568-580):
External calls:
- protections.setLaunch(lpPair,uint32(block.number),uint64(block.timestamp),_decimals) (#574)
State variables written after the call(s):
- allowedPresaleExclusion = false (#576)
- launchStamp = block.timestamp (#579)
- swapAmount = (balanceOf(lpPair) * 30) / 10000 (#578)
- swapThreshold = (balanceOf(lpPair) * 10) / 10000 (#577)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in WorldOfFarms._transfer(address,address,uint256) (#474-516):
External calls:
- contractSwap(contractTokenBalance) (#510)
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(contractTokenBalance,0,path,address(this),block.timestamp) (#532-540)
- (success,None) = _taxWallets.marketing.call{gas: 35000,value: marketingBalance}() (#547)
- (success,None) = _taxWallets.development.call{gas: 35000,value: developmentBalance}() (#550)
- finalizeTransfer(from,to,amount,buy,sell,other) (#515)
- protections.checkUser(from,to,amount) (#597-598)
External calls sending eth:
- contractSwap(contractTokenBalance) (#510)
- (success,None) = _taxWallets.marketing.call{gas: 35000,value: marketingBalance}() (#547)
- (success,None) = _taxWallets.development.call{gas: 35000,value: developmentBalance}() (#550)
Event emitted after the call(s):
- ContractSwapEnabledUpdated(true) (#564)
- finalizeTransfer(from,to,amount,buy,sell,other) (#515)
- Transfer(from,address(this),feeAmount) (#634)
- finalizeTransfer(from,to,amount,buy,sell,other) (#515)
- Transfer(from,to,amountReceived) (#608)
- finalizeTransfer(from,to,amount,buy,sell,other) (#515)
Reentrancy in WorldOfFarms.finalizeTransfer(address,address,uint256,bool,bool,bool) (#595-616):
External calls:
- protections.checkUser(from,to,amount) (#597-598)
Event emitted after the call(s):
- ContractSwapEnabledUpdated(true) (#564)
- _checkLiquidityAdd(from,to) (#610)
- Transfer(from,address(this),feeAmount) (#634)
- amountReceived = takeTaxes(from,buy,sell,amount) (#606)
- Transfer(from,to,amountReceived) (#608)
Reentrancy in WorldOfFarms.setNewRouter(address) (#322-334):
External calls:
- lpPair = IFactoryV2(_newRouter.factory()).createPair(address(this),_newRouter.WETH()) (#327)
Event emitted after the call(s):
- Approval(sender,spender,amount) (#306)
- _approve(address(this),address(dexRouter),type()(uint256).max) (#333)
Reentrancy in WorldOfFarms.transferOwner(address) (#234-248):
External calls:
- finalizeTransfer(_owner,newOwner,balanceOf(_owner),false,false,true) (#241)
- protections.checkUser(from,to,amount) (#597-598)
Event emitted after the call(s):
- OwnershipTransferred(oldOwner,newOwner) (#246)
Apply the check-effects-interactions pattern.
Additional information: link
WorldOfFarms.setLpPair(address,bool) (#336-348) uses timestamp for comparisons
Dangerous comparisons:
- timeSinceLastPair != 0 (#341)
- require(bool,string)(block.timestamp - timeSinceLastPair > 259200,3 Day cooldown.) (#342)
Avoid relying on block.timestamp.
Additional information: link
Constant WorldOfFarms.maxBuyTaxes (#141) is not in UPPER_CASE_WITH_UNDERSCORES
Function IRouter01.WETH() (#33) is not in mixedCase
Variable WorldOfFarms._taxRates (#129-133) is not in mixedCase
Variable WorldOfFarms._ratios (#135-139) is not in mixedCase
Constant WorldOfFarms._symbol (#113) is not in UPPER_CASE_WITH_UNDERSCORES
Constant WorldOfFarms._name (#112) is not in UPPER_CASE_WITH_UNDERSCORES
Variable WorldOfFarms._taxWallets (#156-159) is not in mixedCase
Constant WorldOfFarms.maxTransferTaxes (#143) is not in UPPER_CASE_WITH_UNDERSCORES
Constant WorldOfFarms._tTotal (#115) is not in UPPER_CASE_WITH_UNDERSCORES
Constant WorldOfFarms.masterTaxDivisor (#144) is not in UPPER_CASE_WITH_UNDERSCORES
Variable WorldOfFarms._hasLiqBeenAdded (#171) is not in mixedCase
Parameter WorldOfFarms.setProtectionSettings(bool,bool)._antiBlock (#380) is not in mixedCase
Constant WorldOfFarms.startingSupply (#111) is not in UPPER_CASE_WITH_UNDERSCORES
Constant WorldOfFarms._decimals (#114) is not in UPPER_CASE_WITH_UNDERSCORES
Constant WorldOfFarms.maxSellTaxes (#142) is not in UPPER_CASE_WITH_UNDERSCORES
Parameter WorldOfFarms.setProtectionSettings(bool,bool)._antiSnipe (#380) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IRouter01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#45) is too similar to IRouter01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#46)
Prevent variables from having similar names.
Additional information: link
transfer(address,uint256) should be declared external:
- WorldOfFarms.transfer(address,uint256) (#291-294)
getCirculatingSupply() should be declared external:
- WorldOfFarms.getCirculatingSupply() (#372-374)
enableTrading() should be declared external:
- WorldOfFarms.enableTrading() (#568-580)
Use the external attribute for functions never called from the contract.
Additional information: link
Contract has 3% buy tax and 3% sell tax.
Taxes are low but contract ownership is not renounced. Token has a high risk of becoming a honeypot.
Average 30d PancakeSwap liquidity is low.
Number of Binance Smart Chain (BSC) token holders is low.
Token is deployed only at one blockchain
Token has only one trading pair
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 scam / price dump / death
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
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account