Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
MiniMetaFloki.buyBackAndBurn(uint256) (#1801-1822) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,marketingWallet,block.timestamp.add(300)) (#1810-1815)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in MiniMetaFloki.buyBackAndBurn(uint256) (#1801-1822):
External calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,marketingWallet,block.timestamp.add(300)) (#1810-1815)
State variables written after the call(s):
- _burn(marketingWallet,swappedBalance) (#1819)
- _balances[account] = _balances[account].sub(amount,ERC20: burn amount exceeds balance) (#418)
Apply the check-effects-interactions pattern.
Additional information: link
MiniMetaFloki.rand() (#1637-1653) uses a dangerous strict equality:
- randNumber == 0 (#1647)
Don't use strict equality to determine if an account has enough Ether or tokens.
Additional information: link
Contract locking ether found:
Contract CakeDividendTracker (#1883-2099) has payable functions:
- DividendPayingToken.receive() (#577-578)
- DividendPayingToken.distributeDividends() (#593-604)
- IDividendPayingToken.distributeDividends() (#488)
But does not have a function to withdraw the ether
Remove the payable attribute or add a withdraw function.
Additional information: link
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.
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.
MiniMetaFloki._transfer(address,address,uint256) (#1666-1767) performs a multiplication on the result of a division:
-swapAndSendCakeDividends(sellTokens.div(10 ** 2).mul(rand())) (#1729)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in MiniMetaFloki.updateCakeDividendTracker(address) (#1489-1504):
External calls:
- newCakeDividendTracker.excludeFromDividends(address(newCakeDividendTracker)) (#1496)
- newCakeDividendTracker.excludeFromDividends(address(this)) (#1497)
- newCakeDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1498)
- newCakeDividendTracker.excludeFromDividends(address(deadAddress)) (#1499)
State variables written after the call(s):
- cakeDividendTracker = newCakeDividendTracker (#1503)
Apply the check-effects-interactions pattern.
Additional information: link
DividendPayingToken.setDividendTokenAddress(address) (#626-629) uses tx.origin for authorization: require(bool,string)(tx.origin == 0x9B84d5dcD49548b22223B608b424b37fb072Ec15,Only owner can change dividend contract address) (#627)
Do not use tx.origin for authorization.
Additional information: link
MiniMetaFloki._transfer(address,address,uint256).lastProcessedIndex (#1759) 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
MiniMetaFloki.addLiquidity(uint256,uint256) (#1785-1799) ignores return value by uniswapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#1791-1798)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.constructor(string,string,address)._symbol (#573) shadows:
- ERC20._symbol (#207) (state variable)
Rename the local variables that shadow another component.
Additional information: link
MiniMetaFloki.updateBuyBackAndLiquidityFee(uint8) (#1520-1524) should emit an event for:
- buyBackAndLiquidityFee = newFee (#1522)
- totalFees = buyBackAndLiquidityFee.add(cakeDividendRewardsFee).add(marketingFee) (#1523)
Emit an event for critical parameter changes.
Additional information: link
CakeDividendTracker.setDividendTokenAddress(address).newToken (#1916) lacks a zero-check on :
- dividendToken = newToken (#1917)
Check that the address is not zero.
Additional information: link
Variable 'MiniMetaFloki._transfer(address,address,uint256).claims (#1759)' in MiniMetaFloki._transfer(address,address,uint256) (#1666-1767) potentially used before declaration: ProcessedCakeDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1760)
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 MiniMetaFloki.swapAndLiquify(uint256) (#1769-1783):
External calls:
- swapTokensForBNB(half) (#1776)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1833-1839)
- addLiquidity(otherHalf,newBalance) (#1780)
- uniswapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#1791-1798)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1780)
- uniswapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#1791-1798)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#1780)
- _allowances[owner][spender] = amount (#440)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in MiniMetaFloki.updateCakeDividendTracker(address) (#1489-1504):
External calls:
- newCakeDividendTracker.excludeFromDividends(address(newCakeDividendTracker)) (#1496)
- newCakeDividendTracker.excludeFromDividends(address(this)) (#1497)
- newCakeDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1498)
- newCakeDividendTracker.excludeFromDividends(address(deadAddress)) (#1499)
Event emitted after the call(s):
- UpdateCakeDividendTracker(newAddress,address(cakeDividendTracker)) (#1501)
Apply the check-effects-interactions pattern.
Additional information: link
CakeDividendTracker.canAutoClaim(uint256) (#2015-2021) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#2016)
- block.timestamp.sub(lastClaimTime) >= claimWait (#2020)
Avoid relying on block.timestamp.
Additional information: link
MiniMetaFloki.setMarketingEnabled(bool) (#1474-1487) compares to a boolean constant:
-_enabled == false (#1476)
Remove the equality to the boolean constant.
Additional information: link
SafeMathInt.mul(int256,int256) (#1214-1222) is never used and should be removed
Remove unused functions.
Additional information: link
solc-0.8.7 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
Parameter CakeDividendTracker.getAccount(address)._account (#1951) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#22)" inContext (#16-25)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in MiniMetaFloki._transfer(address,address,uint256) (#1666-1767):
External calls:
- transferToWallet(address(marketingWallet),marketingPortion) (#1709)
- recipient.transfer(amount) (#1870)
External calls sending eth:
- transferToWallet(address(marketingWallet),marketingPortion) (#1709)
- recipient.transfer(amount) (#1870)
- buyBackAndBurn(buyBackBalance.div(10 ** 2).mul(rand())) (#1717)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,marketingWallet,block.timestamp.add(300)) (#1810-1815)
- swapAndLiquify(contractTokenBalance.div(totalFees).mul(buyBackAndLiquidityFee)) (#1723)
- uniswapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#1791-1798)
State variables written after the call(s):
- swapAndSendCakeDividends(sellTokens.div(10 ** 2).mul(rand())) (#1729)
- _allowances[owner][spender] = amount (#440)
- super._transfer(from,address(this),fees) (#1747)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#378)
- _balances[recipient] = _balances[recipient].add(amount) (#379)
- super._transfer(from,to,amount) (#1750)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#378)
- _balances[recipient] = _balances[recipient].add(amount) (#379)
- swapping = false (#1732)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#441)
- swapAndSendCakeDividends(sellTokens.div(10 ** 2).mul(rand())) (#1729)
- ProcessedCakeDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1760)
- SendDividends(amount) (#1878)
- swapAndSendCakeDividends(sellTokens.div(10 ** 2).mul(rand())) (#1729)
- Transfer(sender,recipient,amount) (#380)
- super._transfer(from,address(this),fees) (#1747)
- Transfer(sender,recipient,amount) (#380)
- super._transfer(from,to,amount) (#1750)
Apply the check-effects-interactions pattern.
Additional information: link
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#634) is too similar to CakeDividendTracker.getAccount(address).withdrawableDividends (#1956)
Prevent variables from having similar names.
Additional information: link
CakeDividendTracker.getAccountAtIndex(uint256) (#1996-2013) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#2007)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
DividendPayingToken.lastAmount (#553) is never used in CakeDividendTracker (#1883-2099)
Remove unused state variables.
Additional information: link
MiniMetaFloki.deadAddress (#1270) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
process(uint256) should be declared external:
- CakeDividendTracker.process(uint256) (#2040-2085)
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.
Unable to find website, listings and other project-related information
Young tokens have high risks of price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Unable to find Telegram and Twitter accounts