Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
BatFloki.swapBack() (#575-620) sends eth to arbitrary user
Dangerous calls:
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#603)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in BatFloki._transferFrom(address,address,uint256) (#478-526):
External calls:
- swapBack() (#505)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#586-592)
- distributor.deposit{value: amountBNBReflection}() (#602)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#603)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#609-616)
External calls sending eth:
- swapBack() (#505)
- distributor.deposit{value: amountBNBReflection}() (#602)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#603)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#609-616)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#508)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#511)
- amountReceived = takeFee(sender,amount) (#510)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#546)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.distributeDividend(address) (#308-319) ignores return value by MATIC.transfer(shareholder,amount) (#314)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Too many vulnerabilities (Unchecked transfer, Reentrancy vulnerability, etc.). High risk of a scam. DYOR & manual audit are advised.
BatFloki.swapBack().tmpSuccess (#603) is written in both
(tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#603)
tmpSuccess = false (#606)
Fix or remove the writes.
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.
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.
Low level call in BatFloki.swapBack() (#575-620):
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#603)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Reentrancy in DividendDistributor.distributeDividend(address) (#308-319):
External calls:
- MATIC.transfer(shareholder,amount) (#314)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (#316)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#317)
Reentrancy in DividendDistributor.process(uint256) (#277-301):
External calls:
- distributeDividend(shareholders[currentIndex]) (#293)
- MATIC.transfer(shareholder,amount) (#314)
State variables written after the call(s):
- currentIndex ++ (#298)
Reentrancy in DividendDistributor.setShare(address,uint256) (#241-255):
External calls:
- distributeDividend(shareholder) (#243)
- MATIC.transfer(shareholder,amount) (#314)
State variables written after the call(s):
- shares[shareholder].amount = amount (#253)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#254)
Apply the check-effects-interactions pattern.
Additional information: link
BatFloki.swapBack() (#575-620) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#609-616)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendDistributor.setDistributionCriteria(uint256,uint256) (#236-239) should emit an event for:
- minPeriod = _minPeriod (#237)
- minDistribution = _minDistribution (#238)
BatFloki.setTxLimit(uint256) (#623-625) should emit an event for:
- _maxTxAmount = amount (#624)
BatFloki.setFees(uint256,uint256,uint256,uint256) (#649-656) should emit an event for:
- liquidityFee = _liquidityFee (#650)
- reflectionFee = _reflectionFee (#651)
- marketingFee = _marketingFee (#652)
- totalFee = _liquidityFee.add(_reflectionFee).add(_marketingFee) (#653)
- feeDenominator = _feeDenominator (#654)
BatFloki.setSwapBackSettings(bool,uint256) (#663-666) should emit an event for:
- swapThreshold = _amount (#665)
BatFloki.setTargetLiquidity(uint256,uint256) (#668-671) should emit an event for:
- targetLiquidity = _target (#669)
- targetLiquidityDenominator = _denominator (#670)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#117) lacks a zero-check on :
- owner = adr (#118)
BatFloki.setFeeReceivers(address,address)._autoLiquidityReceiver (#658) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#659)
BatFloki.setFeeReceivers(address,address)._marketingFeeReceiver (#658) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#660)
Check that the address is not zero.
Additional information: link
DividendDistributor.distributeDividend(address) (#308-319) has external calls inside a loop: MATIC.transfer(shareholder,amount) (#314)
Favor pull over push strategy for external calls.
Additional information: link
Reentrancy in BatFloki.constructor() (#409-439):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#411)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = uint256(- 1) (#412)
- _balances[msg.sender] = _totalSupply (#437)
- autoLiquidityReceiver = msg.sender (#434)
- distributor = new DividendDistributor(address(router)) (#414)
- isDividendExempt[pair] = true (#429)
- isDividendExempt[address(this)] = true (#430)
- isDividendExempt[DEAD] = true (#431)
- isFeeExempt[msg.sender] = true (#416)
- isTimelockExempt[msg.sender] = true (#420)
- isTimelockExempt[DEAD] = true (#421)
- isTimelockExempt[address(this)] = true (#422)
- isTxLimitExempt[msg.sender] = true (#417)
- marketingFeeReceiver = msg.sender (#435)
Reentrancy in DividendDistributor.deposit() (#257-275):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (#264-269)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (#274)
- totalDividends = totalDividends.add(amount) (#273)
Reentrancy in DividendDistributor.distributeDividend(address) (#308-319):
External calls:
- MATIC.transfer(shareholder,amount) (#314)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#315)
Reentrancy in DividendDistributor.setShare(address,uint256) (#241-255):
External calls:
- distributeDividend(shareholder) (#243)
- MATIC.transfer(shareholder,amount) (#314)
State variables written after the call(s):
- addShareholder(shareholder) (#247)
- shareholderIndexes[shareholder] = shareholders.length (#341)
- removeShareholder(shareholder) (#249)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#347)
- addShareholder(shareholder) (#247)
- shareholders.push(shareholder) (#342)
- removeShareholder(shareholder) (#249)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#346)
- shareholders.pop() (#348)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#252)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in BatFloki._transferFrom(address,address,uint256) (#478-526):
External calls:
- swapBack() (#505)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#586-592)
- distributor.deposit{value: amountBNBReflection}() (#602)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#603)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#609-616)
- distributor.setShare(sender,_balances[sender]) (#515)
- distributor.setShare(recipient,_balances[recipient]) (#519)
- distributor.process(distributorGas) (#522)
External calls sending eth:
- swapBack() (#505)
- distributor.deposit{value: amountBNBReflection}() (#602)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#603)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#609-616)
Event emitted after the call(s):
- Transfer(sender,recipient,amountReceived) (#524)
Reentrancy in BatFloki._transferFrom(address,address,uint256) (#478-526):
External calls:
- swapBack() (#505)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#586-592)
- distributor.deposit{value: amountBNBReflection}() (#602)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#603)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#609-616)
External calls sending eth:
- swapBack() (#505)
- distributor.deposit{value: amountBNBReflection}() (#602)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#603)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#609-616)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#547)
- amountReceived = takeFee(sender,amount) (#510)
Reentrancy in BatFloki.constructor() (#409-439):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#411)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#438)
Reentrancy in BatFloki.swapBack() (#575-620):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#586-592)
- distributor.deposit{value: amountBNBReflection}() (#602)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#603)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#609-616)
External calls sending eth:
- distributor.deposit{value: amountBNBReflection}() (#602)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#603)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#609-616)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#618)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.shouldDistribute(address) (#303-306) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#304-305)
BatFloki._transferFrom(address,address,uint256) (#478-526) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(cooldownTimer[recipient] < block.timestamp,Please wait for cooldown between buys) (#496)
Avoid relying on block.timestamp.
Additional information: link
DividendDistributor.process(uint256) (#277-301) has costly operations inside a loop:
- currentIndex = 0 (#289)
DividendDistributor.distributeDividend(address) (#308-319) has costly operations inside a loop:
- totalDistributed = totalDistributed.add(amount) (#313)
DividendDistributor.process(uint256) (#277-301) has costly operations inside a loop:
- currentIndex ++ (#298)
Use a local variable to hold the loop computation result.
Additional information: link
BatFloki._maxTxAmount (#365) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 1 / 100
BatFloki._maxWalletToken (#368) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 2) / 100
BatFloki.swapThreshold (#405) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 10 / 10000
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
Pragma version^0.7.4 (#5) 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 IDEXRouter.WETH() (#132) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minPeriod (#236) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minDistribution (#236) is not in mixedCase
Variable DividendDistributor._token (#188) is not in mixedCase
Variable DividendDistributor.MATIC (#196) is not in mixedCase
Variable DividendDistributor.WBNB (#197) is not in mixedCase
Parameter BatFloki.cooldownEnabled(bool,uint8)._status (#568) is not in mixedCase
Parameter BatFloki.cooldownEnabled(bool,uint8)._interval (#568) is not in mixedCase
Parameter BatFloki.setFees(uint256,uint256,uint256,uint256)._liquidityFee (#649) is not in mixedCase
Parameter BatFloki.setFees(uint256,uint256,uint256,uint256)._reflectionFee (#649) is not in mixedCase
Parameter BatFloki.setFees(uint256,uint256,uint256,uint256)._marketingFee (#649) is not in mixedCase
Parameter BatFloki.setFees(uint256,uint256,uint256,uint256)._feeDenominator (#649) is not in mixedCase
Parameter BatFloki.setFeeReceivers(address,address)._autoLiquidityReceiver (#658) is not in mixedCase
Parameter BatFloki.setFeeReceivers(address,address)._marketingFeeReceiver (#658) is not in mixedCase
Parameter BatFloki.setSwapBackSettings(bool,uint256)._enabled (#663) is not in mixedCase
Parameter BatFloki.setSwapBackSettings(bool,uint256)._amount (#663) is not in mixedCase
Parameter BatFloki.setTargetLiquidity(uint256,uint256)._target (#668) is not in mixedCase
Parameter BatFloki.setTargetLiquidity(uint256,uint256)._denominator (#668) is not in mixedCase
Parameter BatFloki.setDistributionCriteria(uint256,uint256)._minPeriod (#673) is not in mixedCase
Parameter BatFloki.setDistributionCriteria(uint256,uint256)._minDistribution (#673) is not in mixedCase
Variable BatFloki.MATIC (#355) is not in mixedCase
Variable BatFloki.WBNB (#356) is not in mixedCase
Variable BatFloki.DEAD (#357) is not in mixedCase
Variable BatFloki.ZERO (#358) is not in mixedCase
Constant BatFloki._name (#360) is not in UPPER_CASE_WITH_UNDERSCORES
Constant BatFloki._symbol (#361) is not in UPPER_CASE_WITH_UNDERSCORES
Constant BatFloki._decimals (#362) is not in UPPER_CASE_WITH_UNDERSCORES
Variable BatFloki._totalSupply (#364) is not in mixedCase
Variable BatFloki._maxTxAmount (#365) is not in mixedCase
Variable BatFloki._maxWalletToken (#368) is not in mixedCase
Variable BatFloki._balances (#370) is not in mixedCase
Variable BatFloki._allowances (#371) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#137) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#138)
Prevent variables from having similar names.
Additional information: link
BatFloki.slitherConstructorVariables() (#352-697) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#357)
BatFloki.slitherConstructorVariables() (#352-697) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#358)
BatFloki.slitherConstructorVariables() (#352-697) uses literals with too many digits:
- distributorGas = 500000 (#397)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
BatFloki.MATIC (#355) is never used in BatFloki (#352-697)
Remove unused state variables.
Additional information: link
BatFloki.DEAD (#357) should be constant
BatFloki.MATIC (#355) should be constant
BatFloki.WBNB (#356) should be constant
BatFloki.ZERO (#358) should be constant
BatFloki._totalSupply (#364) should be constant
BatFloki.launchedAt (#393) should be constant
BatFloki.tradingOpen (#394) should be constant
DividendDistributor.WBNB (#197) should be constant
DividendDistributor.dividendsPerShareAccuracyFactor (#210) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
authorize(address) should be declared external:
- Auth.authorize(address) (#94-96)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#117-121)
cooldownEnabled(bool,uint8) should be declared external:
- BatFloki.cooldownEnabled(bool,uint8) (#568-571)
Use the external attribute for functions never called from the contract.
Additional information: link
Unable to find website, listings and other project-related information
Token is marked as scam (rug pull, honeypot, phishing, etc.)
Additional information: link
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Unable to find Telegram and Twitter accounts