Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Reentrancy in BraveToken.swapTokenForBrave(uint256,address) (#752-790):
External calls:
- IBEP20(tokenAddress).transferFrom(msg.sender,address(this),amount) (#755)
- IBEP20(tokenAddress).approve(address(pancakeRouter),amount) (#756)
- pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(amount,0,path,address(this),block.timestamp) (#768-774)
- paySwapTxFee(swapTxFee) (#778)
- (sent) = salePool.call{value: txFeeBase}() (#707)
- pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbSwap}(0,path,address(addressAD),block.timestamp) (#782-787)
External calls sending eth:
- paySwapTxFee(swapTxFee) (#778)
- (sent) = salePool.call{value: txFeeBase}() (#707)
- pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbSwap}(0,path,address(addressAD),block.timestamp) (#782-787)
State variables written after the call(s):
- lotteryOpen(amount) (#789)
- termLotteryBNB = 0 (#584)
Apply the check-effects-interactions pattern.
Additional information: link
BraveToken.swapTokenForBrave(uint256,address) (#752-790) ignores return value by IBEP20(tokenAddress).transferFrom(msg.sender,address(this),amount) (#755)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
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.
BraveToken.getRewardAmount(address) (#884-886) performs a multiplication on the result of a division:
-rewardPoolBNB.mul(whiteList.discount()).div(100).mul(_tOwned[account]).div(getCurrency()) (#885)
Consider ordering multiplication before division.
Additional information: link
BraveWhiteList.setDiscount(uint256) (#935-938) uses tx.origin for authorization: require(bool)(tx.origin == owner() && rate <= 100) (#936)
Do not use tx.origin for authorization.
Additional information: link
BraveTokenView.getAddressLotteryBalance(address,BraveToken).i (#992) 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
BraveToken.swapTokenForBrave(uint256,address) (#752-790) ignores return value by IBEP20(tokenAddress).approve(address(pancakeRouter),amount) (#756)
Ensure that all the return values of the function calls are used.
Additional information: link
BraveToken._approve(address,address,uint256).owner (#511) shadows:
- Ownable.owner() (#153-155) (function)
Rename the local variables that shadow another component.
Additional information: link
BraveTokenView.getAddressLotteryBalance(address,BraveToken) (#986-996) has external calls inside a loop: reward += tokenAddress.lotteryTermsAmount(term).mul(tokenAddress.accountLotteryHistory(account,term)) (#994)
Favor pull over push strategy for external calls.
Additional information: link
Reentrancy in BraveToken.transferFrom(address,address,uint256) (#493-497):
External calls:
- _transfer(sender,recipient,amount) (#494)
- (sent) = salePool.call{value: txFeeBase}() (#707)
- pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(swapAmount,0,path,address(this),block.timestamp) (#854-860)
External calls sending eth:
- _transfer(sender,recipient,amount) (#494)
- (sent) = salePool.call{value: txFeeBase}() (#707)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount)) (#495)
- _allowances[owner][spender] = amount (#515)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in BraveToken.transferFrom(address,address,uint256) (#493-497):
External calls:
- _transfer(sender,recipient,amount) (#494)
- (sent) = salePool.call{value: txFeeBase}() (#707)
- pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(swapAmount,0,path,address(this),block.timestamp) (#854-860)
External calls sending eth:
- _transfer(sender,recipient,amount) (#494)
- (sent) = salePool.call{value: txFeeBase}() (#707)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#516)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount)) (#495)
Apply the check-effects-interactions pattern.
Additional information: link
BraveToken.updateBuyState(address) (#687-693) uses timestamp for comparisons
Dangerous comparisons:
- accountBuyDayState[account] != getTodayCount (#689)
Avoid relying on block.timestamp.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#121-137) uses assembly
- INLINE ASM (#129-132)
Do not use evm assembly.
Additional information: link
BraveToken._transfer(address,address,uint256) (#519-564) compares to a boolean constant:
-whiteList.whiteListActive(from) == true || whiteList.whiteListActive(to) == true (#556)
Remove the equality to the boolean constant.
Additional information: link
Context._msgData() (#80-83) is never used and should be removed
Remove unused functions.
Additional information: link
solc-0.6.8 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 BraveToken.swapBraveForToken(uint256,address) (#792-835):
- (sent) = tx.origin.call{value: bnbSwap}() (#821)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable BraveToken._lotterySeek (#611) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#81)" inContext (#75-84)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable BraveTokenView.getBNBTokenPairAmounts(address).token0Address (#977) is too similar to BraveTokenView.getBNBTokenPairAmounts(address).token1Address (#978)
Prevent variables from having similar names.
Additional information: link
BraveToken.slitherConstructorVariables() (#419-892) uses literals with too many digits:
- getLotteryAmount = 5000000000000 * 10 ** 9 (#608)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
BraveToken.salePool (#601) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
getAddressLotteryBalance(address,BraveToken) should be declared external:
- BraveTokenView.getAddressLotteryBalance(address,BraveToken) (#986-996)
Use the external attribute for functions never called from the contract.
Additional information: link
Average 30d PancakeSwap volume is low.
Average PancakeSwap trading volume, liqudity, number of swaps are low. Token seems to be inactive.
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 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
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 token/project description on the website or on BscScan, CoinHunt, CoinGecko, CoinMarketCap
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Token has relatively low CoinMarketCap rank
Telegram account link seems to be invalid
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