OFFICE.swapBack() (#566-593) sends eth to arbitrary user
Dangerous calls:
- address(marketing).call{gas: 30000,value: amountBNBMarketing}() (#586)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in OFFICE._transferFrom(address,address,uint256) (#503-527):
External calls:
- swapBack() (#511)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(swapThreshold,0,path,address(this),block.timestamp) (#574-592)
- distributor.deposit{value: amountBNBReflection}() (#585)
- address(marketing).call{gas: 30000,value: amountBNBMarketing}() (#586)
- buyBackTokens() (#512)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,DEAD,block.timestamp.add(300)) (#611-618)
External calls sending eth:
- swapBack() (#511)
- distributor.deposit{value: amountBNBReflection}() (#585)
- address(marketing).call{gas: 30000,value: amountBNBMarketing}() (#586)
- buyBackTokens() (#512)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,DEAD,block.timestamp.add(300)) (#611-618)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#515)
- amountReceived = takeFee(sender,recipient,amount) (#517)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#553)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#518)
- buyBackTokens() (#512)
- inSwap = true (#447)
- inSwap = false (#447)
Apply the check-effects-interactions pattern.
Additional information: link
SafeToken.withdraw(address,uint256) (#370-373) ignores return value by IBEP20(_token).transfer(safeManager,_amount) (#372)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
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.
Reentrancy in DividendDistributor.setShare(address,uint256) (#239-253):
External calls:
- distributeDividend(shareholder) (#241)
- WBNB.transfer(shareholder,amount) (#320)
State variables written after the call(s):
- shares[shareholder].amount = amount (#251)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#252)
Apply the check-effects-interactions pattern.
Additional information: link
OFFICE.swapBack() (#566-593) ignores return value by address(marketing).call{gas: 30000,value: amountBNBMarketing}() (#586)
Ensure that the return value of a low-level call is checked or logged.
Additional information: link
OFFICE.swapBack().e (#588) 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
OFFICE.setSwapBackSettings(bool,uint256) (#659-662) should emit an event for:
- swapThreshold = _amount (#661)
Emit an event for critical parameter changes.
Additional information: link
OFFICE.setMarketingWallet(address)._marketing (#655) lacks a zero-check on :
- marketing = _marketing (#656)
Check that the address is not zero.
Additional information: link
Variable 'OFFICE.swapBack().e (#588)' in OFFICE.swapBack() (#566-593) potentially used before declaration: SwapBackFailed(string(abi.encodePacked(SwapBack failed with error ,e))) (#589)
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 DividendDistributor.setShare(address,uint256) (#239-253):
External calls:
- distributeDividend(shareholder) (#241)
- WBNB.transfer(shareholder,amount) (#320)
State variables written after the call(s):
- addShareholder(shareholder) (#245)
- shareholderIndexes[shareholder] = shareholders.length (#347)
- removeShareholder(shareholder) (#247)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#353)
- addShareholder(shareholder) (#245)
- shareholders.push(shareholder) (#348)
- removeShareholder(shareholder) (#247)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#352)
- shareholders.pop() (#354)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#250)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in OFFICE.swapBnbForTokens(uint256) (#604-621):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,DEAD,block.timestamp.add(300)) (#611-618)
Event emitted after the call(s):
- SwapBNBForTokens(amount,path) (#620)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.shouldDistribute(address) (#309-312) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#310-311)
Avoid relying on block.timestamp.
Additional information: link
DividendDistributor.process(uint256) (#283-307) has costly operations inside a loop:
- currentIndex ++ (#304)
Use a local variable to hold the loop computation result.
Additional information: link
Context._msgData() (#52-55) is never used and should be removed
Remove unused functions.
Additional information: link
OFFICE.swapThreshold (#444) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 5000
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
solc-0.8.6 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 OFFICE.swapBack() (#566-593):
- address(marketing).call{gas: 30000,value: amountBNBMarketing}() (#586)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable OFFICE._maxTxAmount (#425) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#53)" inContext (#47-56)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#138) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#139)
Prevent variables from having similar names.
Additional information: link
OFFICE.slitherConstructorVariables() (#405-689) uses literals with too many digits:
- distributorGas = 500000 (#440)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
OFFICE.buyBackUpperLimit (#426) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
getCirculatingSupply() should be declared external:
- OFFICE.getCirculatingSupply() (#673-675)
Use the external attribute for functions never called from the contract.
Additional information: link
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.
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Number of Binance Smart Chain (BSC) token holders is low.
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 token contract audit
Unable to find audit link on the website
Unable to find whitepaper 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
Token has no active CoinMarketCap listing / rank
Young tokens have high risks of price dump / death
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