Herobattle is a super attractive role-playing game, with many ways to play, and most importantly, you can earn your profits through the game by completing in-game tasks to get what is usually your token. Herobattle. You can also compete against other players to win betting rewards. In addition to Play-to-earn in the game, our project also contributes to building the Binance smart chain ecosystem in the immediate future. then we also have plans to expand the ecosystem in the later stages of the project
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
HEROBATTLE.swapAndSendToFee(uint256) (contracts/HeroBattle.sol#404-411) ignores return value by IERC20(tokenAddress).transfer(_marketingWalletAddress,newBalance) (contracts/HeroBattle.sol#410)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Contract locking ether found:
Contract HEROBATTLE (contracts/HeroBattle.sol#17-475) has payable functions:
- HEROBATTLE.receive() (contracts/HeroBattle.sol#126-128)
But does not have a function to withdraw the ether
Remove the payable attribute or add a withdraw function.
Additional information: link
Reentrancy in HEROBATTLE.updateDividendTracker(address) (contracts/HeroBattle.sol#151-166):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (contracts/HeroBattle.sol#158)
- newDividendTracker.excludeFromDividends(address(this)) (contracts/HeroBattle.sol#159)
- newDividendTracker.excludeFromDividends(owner()) (contracts/HeroBattle.sol#160)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (contracts/HeroBattle.sol#161)
State variables written after the call(s):
- dividendTracker = newDividendTracker (contracts/HeroBattle.sol#165)
Apply the check-effects-interactions pattern.
Additional information: link
HEROBATTLE._transfer(address,address,uint256).lastProcessedIndex (contracts/HeroBattle.sol#394) 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
HEROBATTLE._transfer(address,address,uint256) (contracts/HeroBattle.sol#323-402) ignores return value by dividendTracker.process(gas) (contracts/HeroBattle.sol#394-399)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.accumulativeDividendOf(address)._owner (contracts/DividendPayingToken.sol#126) shadows:
- Ownable._owner (contracts/Ownable.sol#8) (state variable)
Rename the local variables that shadow another component.
Additional information: link
HEROBATTLE.setTokenForMarketing(uint256) (contracts/HeroBattle.sol#141-144) should emit an event for:
- tokenForMarketing = _tokenForMarketing (contracts/HeroBattle.sol#143)
Emit an event for critical parameter changes.
Additional information: link
HEROBATTLE.setMarketingWallet(address).wallet (contracts/HeroBattle.sol#201) lacks a zero-check on :
- _marketingWalletAddress = wallet (contracts/HeroBattle.sol#202)
Check that the address is not zero.
Additional information: link
Variable 'HEROBATTLE._transfer(address,address,uint256).lastProcessedIndex (contracts/HeroBattle.sol#394)' in HEROBATTLE._transfer(address,address,uint256) (contracts/HeroBattle.sol#323-402) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (contracts/HeroBattle.sol#395)
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 HEROBATTLE.updateUniswapV2Router(address) (contracts/HeroBattle.sol#168-175):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (contracts/HeroBattle.sol#172-173)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (contracts/HeroBattle.sol#174)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in HEROBATTLE.updateDividendTracker(address) (contracts/HeroBattle.sol#151-166):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (contracts/HeroBattle.sol#158)
- newDividendTracker.excludeFromDividends(address(this)) (contracts/HeroBattle.sol#159)
- newDividendTracker.excludeFromDividends(owner()) (contracts/HeroBattle.sol#160)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (contracts/HeroBattle.sol#161)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (contracts/HeroBattle.sol#163)
Apply the check-effects-interactions pattern.
Additional information: link
HEROBATTLE.blacklistAddress(address,bool) (contracts/HeroBattle.sol#211-217) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(startBlacklistTime + blacklistTimeFrame < _currentTime,Reach BlacklistTimeFrame) (contracts/HeroBattle.sol#215)
Avoid relying on block.timestamp.
Additional information: link
SafeMathInt.mul(int256,int256) (contracts/SafeMathInt.sol#41-48) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version^0.6.2 (contracts/SafeMathUint.sol#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
Function IUniswapV2Router01.WETH() (contracts/IUniswapV2Router.sol#7) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (contracts/Context.sol#21)" inContext (contracts/Context.sol#15-24)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (contracts/IUniswapV2Router.sol#12) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (contracts/IUniswapV2Router.sol#13)
Prevent variables from having similar names.
Additional information: link
HEROBATTLE.slitherConstructorVariables() (contracts/HeroBattle.sol#17-475) uses literals with too many digits:
- gasForProcessing = 300000 (contracts/HeroBattle.sol#49)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SafeMathInt.MAX_INT256 (contracts/SafeMathInt.sol#36) is never used in SafeMathInt (contracts/SafeMathInt.sol#34-92)
Remove unused state variables.
Additional information: link
HEROBATTLE.deadWallet (contracts/HeroBattle.sol#27) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (contracts/Ownable.sol#52-56)
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.
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
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 token contract audit
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 Telegram link on the website
Unable to find Twitter 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 scam / price dump / death
Young tokens have high risks of scam / price dump / death
Token has no active CoinMarketCap listing / rank
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 Youtube account
Unable to find Discord account