Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
BNBMYVALENTINE.swapBack() (#627-676) sends eth to arbitrary user
Dangerous calls:
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#658)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#659)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in BNBMYVALENTINE._transferFrom(address,address,uint256) (#562-603):
External calls:
- swapBack() (#572)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#637-643)
- dividendDistributor.deposit{value: amountBNBReflection}() (#653)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#658)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#659)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#666-673)
External calls sending eth:
- swapBack() (#572)
- dividendDistributor.deposit{value: amountBNBReflection}() (#653)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#658)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#659)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#666-673)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#580)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#588)
- finalAmount = takeFee(sender,recipient,amount) (#587)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#617)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.distributeDividend(address) (#248-260) ignores return value by RewardToken.transfer(shareholder,amount) (#254)
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.
BNBMYVALENTINE.swapBack().tmpSuccess (#658) is written in both
(tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#658)
tmpSuccess = false (#662)
BNBMYVALENTINE.swapBack().tmpSuccess1 (#659) is written in both
(tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#659)
tmpSuccess1 = false (#663)
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.
BNBMYVALENTINE._maxTxAmount (#370) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 1 / 100
BNBMYVALENTINE._walletMax (#371) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 2 / 100
BNBMYVALENTINE.swapThreshold (#407) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 5 / 2000
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 (#17) allows old versions
solc-0.7.4 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 BNBMYVALENTINE.swapBack() (#627-676):
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#658)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#659)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IDEXRouter.WETH() (#76) is not in mixedCase
Variable DividendDistributor._token (#133) is not in mixedCase
Variable DividendDistributor.RewardToken (#143) is not in mixedCase
Constant BNBMYVALENTINE._name (#360) is not in UPPER_CASE_WITH_UNDERSCORES
Constant BNBMYVALENTINE._symbol (#361) is not in UPPER_CASE_WITH_UNDERSCORES
Constant BNBMYVALENTINE._decimals (#362) is not in UPPER_CASE_WITH_UNDERSCORES
Variable BNBMYVALENTINE.DEAD (#364) is not in mixedCase
Variable BNBMYVALENTINE.ZERO (#365) is not in mixedCase
Variable BNBMYVALENTINE.RewardToken (#367) is not in mixedCase
Variable BNBMYVALENTINE._totalSupply (#369) is not in mixedCase
Variable BNBMYVALENTINE._maxTxAmount (#370) is not in mixedCase
Variable BNBMYVALENTINE._walletMax (#371) is not in mixedCase
Variable BNBMYVALENTINE._balances (#375) is not in mixedCase
Variable BNBMYVALENTINE._allowances (#376) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#81) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#82)
Prevent variables from having similar names.
Additional information: link
Reentrancy in DividendDistributor.distributeDividend(address) (#248-260):
External calls:
- RewardToken.transfer(shareholder,amount) (#254)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (#256)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#257)
Reentrancy in DividendDistributor.process(uint256) (#219-241):
External calls:
- distributeDividend(shareholders[currentIndex]) (#233)
- RewardToken.transfer(shareholder,amount) (#254)
State variables written after the call(s):
- currentIndex ++ (#238)
Reentrancy in DividendDistributor.setShare(address,uint256) (#182-197):
External calls:
- distributeDividend(shareholder) (#185)
- RewardToken.transfer(shareholder,amount) (#254)
State variables written after the call(s):
- shares[shareholder].amount = amount (#195)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#196)
Apply the check-effects-interactions pattern.
Additional information: link
BNBMYVALENTINE.swapBack() (#627-676) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#666-673)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendDistributor.setDistributionCriteria(uint256,uint256) (#177-180) should emit an event for:
- minPeriod = newMinPeriod (#178)
- minDistribution = newMinDistribution (#179)
BNBMYVALENTINE.changeFees(uint256,uint256,uint256,uint256) (#519-527) should emit an event for:
- liquidityFee = newLiqFee (#520)
- rewardsFee = newRewardFee (#521)
- totalFee = liquidityFee.add(marketingFee).add(rewardsFee) (#525)
- totalFeeIfSelling = totalFee.add(extraFeeOnSell) (#526)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#347) lacks a zero-check on :
- owner = adr (#348)
BNBMYVALENTINE.changeFeeReceivers(address,address,address).newLiquidityReceiver (#529) lacks a zero-check on :
- autoLiquidityReceiver = newLiquidityReceiver (#530)
BNBMYVALENTINE.changeFeeReceivers(address,address,address).newMarketingWallet (#529) lacks a zero-check on :
- marketingWallet = newMarketingWallet (#531)
BNBMYVALENTINE.changeFeeReceivers(address,address,address).newanothermarketingWallet (#529) lacks a zero-check on :
- anothermarketingWallet = newanothermarketingWallet (#532)
Check that the address is not zero.
Additional information: link
DividendDistributor.distributeDividend(address) (#248-260) has external calls inside a loop: RewardToken.transfer(shareholder,amount) (#254)
Favor pull over push strategy for external calls.
Additional information: link
Reentrancy in BNBMYVALENTINE._transferFrom(address,address,uint256) (#562-603):
External calls:
- swapBack() (#572)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#637-643)
- dividendDistributor.deposit{value: amountBNBReflection}() (#653)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#658)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#659)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#666-673)
External calls sending eth:
- swapBack() (#572)
- dividendDistributor.deposit{value: amountBNBReflection}() (#653)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#658)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#659)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#666-673)
State variables written after the call(s):
- launch() (#576)
- launchedAt = block.number (#485)
Reentrancy in BNBMYVALENTINE.constructor() (#415-447):
External calls:
- pair = IDEXFactory(router.factory()).createPair(router.WETH(),address(this)) (#418)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = uint256(- 1) (#419)
- _balances[msg.sender] = _totalSupply (#445)
- anothermarketingWallet = 0x65Ac10EB51F2E09bC7a5744ad4AFF90788c59469 (#440)
- autoLiquidityReceiver = msg.sender (#438)
- dividendDistributor = new DividendDistributor(address(router)) (#421)
- isDividendExempt[pair] = true (#431)
- isDividendExempt[address(this)] = true (#433)
- isDividendExempt[DEAD] = true (#434)
- isDividendExempt[ZERO] = true (#435)
- isFeeExempt[msg.sender] = true (#423)
- isFeeExempt[address(this)] = true (#424)
- isFeeExempt[anothermarketingWallet] = true (#425)
- isTxLimitExempt[msg.sender] = true (#427)
- isTxLimitExempt[pair] = true (#428)
- isTxLimitExempt[DEAD] = true (#429)
- marketingWallet = msg.sender (#439)
- totalFee = liquidityFee.add(marketingFee).add(rewardsFee) (#442)
- totalFeeIfSelling = totalFee.add(extraFeeOnSell) (#443)
Reentrancy in DividendDistributor.deposit() (#199-217):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (#207-212)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (#216)
- totalDividends = totalDividends.add(amount) (#215)
Reentrancy in DividendDistributor.distributeDividend(address) (#248-260):
External calls:
- RewardToken.transfer(shareholder,amount) (#254)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#255)
Reentrancy in DividendDistributor.setShare(address,uint256) (#182-197):
External calls:
- distributeDividend(shareholder) (#185)
- RewardToken.transfer(shareholder,amount) (#254)
State variables written after the call(s):
- addShareholder(shareholder) (#189)
- shareholderIndexes[shareholder] = shareholders.length (#278)
- removeShareholder(shareholder) (#191)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#284)
- addShareholder(shareholder) (#189)
- shareholders.push(shareholder) (#279)
- removeShareholder(shareholder) (#191)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#283)
- shareholders.pop() (#285)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#194)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in BNBMYVALENTINE._transferFrom(address,address,uint256) (#562-603):
External calls:
- swapBack() (#572)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#637-643)
- dividendDistributor.deposit{value: amountBNBReflection}() (#653)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#658)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#659)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#666-673)
- dividendDistributor.setShare(sender,_balances[sender]) (#592)
- dividendDistributor.setShare(recipient,_balances[recipient]) (#596)
- dividendDistributor.process(distributorGas) (#599)
External calls sending eth:
- swapBack() (#572)
- dividendDistributor.deposit{value: amountBNBReflection}() (#653)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#658)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#659)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#666-673)
Event emitted after the call(s):
- Transfer(sender,recipient,finalAmount) (#601)
Reentrancy in BNBMYVALENTINE._transferFrom(address,address,uint256) (#562-603):
External calls:
- swapBack() (#572)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#637-643)
- dividendDistributor.deposit{value: amountBNBReflection}() (#653)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#658)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#659)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#666-673)
External calls sending eth:
- swapBack() (#572)
- dividendDistributor.deposit{value: amountBNBReflection}() (#653)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#658)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#659)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#666-673)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#618)
- finalAmount = takeFee(sender,recipient,amount) (#587)
Reentrancy in BNBMYVALENTINE.constructor() (#415-447):
External calls:
- pair = IDEXFactory(router.factory()).createPair(router.WETH(),address(this)) (#418)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#446)
Reentrancy in BNBMYVALENTINE.swapBack() (#627-676):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#637-643)
- dividendDistributor.deposit{value: amountBNBReflection}() (#653)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#658)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#659)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#666-673)
External calls sending eth:
- dividendDistributor.deposit{value: amountBNBReflection}() (#653)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#658)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#659)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#666-673)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#674)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.shouldDistribute(address) (#243-246) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#244-245)
Avoid relying on block.timestamp.
Additional information: link
DividendDistributor.process(uint256) (#219-241) has costly operations inside a loop:
- currentIndex = 0 (#230)
DividendDistributor.distributeDividend(address) (#248-260) has costly operations inside a loop:
- totalDistributed = totalDistributed.add(amount) (#253)
DividendDistributor.process(uint256) (#219-241) has costly operations inside a loop:
- currentIndex ++ (#238)
Use a local variable to hold the loop computation result.
Additional information: link
BNBMYVALENTINE.slitherConstructorVariables() (#356-681) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#364)
BNBMYVALENTINE.slitherConstructorVariables() (#356-681) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#365)
BNBMYVALENTINE.slitherConstructorVariables() (#356-681) uses literals with too many digits:
- _totalSupply = 1000000000000000 * (10 ** _decimals) (#369)
BNBMYVALENTINE.slitherConstructorVariables() (#356-681) uses literals with too many digits:
- distributorGas = 300000 (#401)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
BNBMYVALENTINE.RewardToken (#367) is never used in BNBMYVALENTINE (#356-681)
Remove unused state variables.
Additional information: link
BNBMYVALENTINE.DEAD (#364) should be constant
BNBMYVALENTINE.RewardToken (#367) should be constant
BNBMYVALENTINE.ZERO (#365) should be constant
BNBMYVALENTINE._totalSupply (#369) should be constant
BNBMYVALENTINE.routerAddress (#366) should be constant
DividendDistributor.dividendsPerShareAccuracyFactor (#154) should be constant
DividendDistributor.routerAddress (#142) 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) (#319-321)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#326-328)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#347-351)
getCirculatingSupply() should be declared external:
- BNBMYVALENTINE.getCirculatingSupply() (#457-459)
claim() should be declared external:
- BNBMYVALENTINE.claim() (#475-478)
tradingStatus(bool) should be declared external:
- BNBMYVALENTINE.tradingStatus(bool) (#623-625)
Use the external attribute for functions never called from the contract.
Additional information: link
Unable to find website, listings and other project-related information
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 Twitter account
Telegram account has less than 100 subscribers
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account