InternationalLGTBday.swapBack() (#627-674) sends eth to arbitrary user
Dangerous calls:
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#657)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#658)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in InternationalLGTBday._transferFrom(address,address,uint256) (#497-555):
External calls:
- swapBack() (#533)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#639-645)
- distributor.deposit{value: amountBNBReflection}() (#656)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#657)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#658)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#664-671)
External calls sending eth:
- swapBack() (#533)
- distributor.deposit{value: amountBNBReflection}() (#656)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#657)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#658)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#664-671)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#536)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#539)
- amountReceived = takeFee(sender,amount,(recipient == pair)) (#538)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#583)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.distributeDividend(address) (#317-328) ignores return value by RWRD.transfer(shareholder,amount) (#323)
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.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
InternationalLGTBday.swapBack().tmpSuccess (#657) is written in both
(tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#657)
(tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#658)
InternationalLGTBday.swapBack().tmpSuccess (#657) is written in both
(tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#658)
tmpSuccess = false (#661)
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.
Contract ownership is not renounced (belongs to a wallet)
Reentrancy in DividendDistributor.distributeDividend(address) (#317-328):
External calls:
- RWRD.transfer(shareholder,amount) (#323)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (#325)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#326)
Reentrancy in DividendDistributor.process(uint256) (#286-310):
External calls:
- distributeDividend(shareholders[currentIndex]) (#302)
- RWRD.transfer(shareholder,amount) (#323)
State variables written after the call(s):
- currentIndex ++ (#307)
Reentrancy in DividendDistributor.setShare(address,uint256) (#250-264):
External calls:
- distributeDividend(shareholder) (#252)
- RWRD.transfer(shareholder,amount) (#323)
State variables written after the call(s):
- shares[shareholder].amount = amount (#262)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#263)
Apply the check-effects-interactions pattern.
Additional information: link
InternationalLGTBday.manage_isNotBot(address[],bool).i (#708) is a local variable never initialized
InternationalLGTBday.manage_blacklist(address[],bool).i (#700) 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
InternationalLGTBday.swapBack() (#627-674) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#664-671)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendDistributor.setDistributionCriteria(uint256,uint256) (#241-244) should emit an event for:
- minPeriod = _minPeriod (#242)
- minDistribution = _minDistribution (#243)
InternationalLGTBday.setMaxTxPercent_base1000(uint256) (#486-489) should emit an event for:
- _maxTxAmount = (_totalSupply * maxTXPercentage_base1000) / 1000 (#488)
InternationalLGTBday.setTxLimit(uint256) (#491-494) should emit an event for:
- _maxTxAmount = amount (#493)
InternationalLGTBday.setSellMultiplier(uint256) (#622-625) should emit an event for:
- sellMultiplier = Multiplier (#624)
InternationalLGTBday.setFees(uint256,uint256,uint256,uint256,uint256) (#743-752) should emit an event for:
- liquidityFee = _liquidityFee (#745)
- reflectionFee = _reflectionFee (#746)
- marketingFee = _marketingFee (#747)
- devFee = _devFee (#748)
- totalFee = _liquidityFee.add(_reflectionFee).add(_marketingFee).add(_devFee) (#749)
- feeDenominator = _feeDenominator (#750)
InternationalLGTBday.setSwapBackSettings(bool,uint256) (#771-775) should emit an event for:
- swapThreshold = _amount (#774)
InternationalLGTBday.setTargetLiquidity(uint256,uint256) (#777-781) should emit an event for:
- targetLiquidity = _target (#779)
- targetLiquidityDenominator = _denominator (#780)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#112) lacks a zero-check on :
- owner = adr (#113)
InternationalLGTBday.setFeeReceivers(address,address,address)._autoLiquidityReceiver (#735) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#737)
InternationalLGTBday.setFeeReceivers(address,address,address)._marketingFeeReceiver (#735) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#738)
InternationalLGTBday.setFeeReceivers(address,address,address)._devFeeReceiver (#735) lacks a zero-check on :
- devFeeReceiver = _devFeeReceiver (#739)
Check that the address is not zero.
Additional information: link
DividendDistributor.distributeDividend(address) (#317-328) has external calls inside a loop: RWRD.transfer(shareholder,amount) (#323)
Favor pull over push strategy for external calls.
Additional information: link
Reentrancy in InternationalLGTBday.constructor() (#419-443):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#421)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = uint256(- 1) (#422)
- _balances[msg.sender] = _totalSupply (#441)
- autoLiquidityReceiver = msg.sender (#437)
- devFeeReceiver = msg.sender (#439)
- distributor = new DividendDistributor(address(router)) (#424)
- isDividendExempt[pair] = true (#433)
- isDividendExempt[address(this)] = true (#434)
- isDividendExempt[DEAD] = true (#435)
- isFeeExempt[msg.sender] = true (#426)
- isTimelockExempt[msg.sender] = true (#429)
- isTimelockExempt[DEAD] = true (#430)
- isTimelockExempt[address(this)] = true (#431)
- isTxLimitExempt[msg.sender] = true (#427)
- marketingFeeReceiver = msg.sender (#438)
Reentrancy in DividendDistributor.deposit() (#266-284):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (#273-278)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (#283)
- totalDividends = totalDividends.add(amount) (#282)
Reentrancy in DividendDistributor.distributeDividend(address) (#317-328):
External calls:
- RWRD.transfer(shareholder,amount) (#323)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#324)
Reentrancy in DividendDistributor.setShare(address,uint256) (#250-264):
External calls:
- distributeDividend(shareholder) (#252)
- RWRD.transfer(shareholder,amount) (#323)
State variables written after the call(s):
- addShareholder(shareholder) (#256)
- shareholderIndexes[shareholder] = shareholders.length (#350)
- removeShareholder(shareholder) (#258)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#356)
- addShareholder(shareholder) (#256)
- shareholders.push(shareholder) (#351)
- removeShareholder(shareholder) (#258)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#355)
- shareholders.pop() (#357)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#261)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in InternationalLGTBday._transferFrom(address,address,uint256) (#497-555):
External calls:
- swapBack() (#533)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#639-645)
- distributor.deposit{value: amountBNBReflection}() (#656)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#657)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#658)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#664-671)
- distributor.setShare(sender,_balances[sender]) (#543)
- distributor.setShare(recipient,_balances[recipient]) (#547)
- distributor.process(distributorGas) (#550)
External calls sending eth:
- swapBack() (#533)
- distributor.deposit{value: amountBNBReflection}() (#656)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#657)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#658)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#664-671)
Event emitted after the call(s):
- Transfer(sender,recipient,amountReceived) (#552)
Reentrancy in InternationalLGTBday._transferFrom(address,address,uint256) (#497-555):
External calls:
- swapBack() (#533)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#639-645)
- distributor.deposit{value: amountBNBReflection}() (#656)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#657)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#658)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#664-671)
External calls sending eth:
- swapBack() (#533)
- distributor.deposit{value: amountBNBReflection}() (#656)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#657)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#658)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#664-671)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#584)
- amountReceived = takeFee(sender,amount,(recipient == pair)) (#538)
Reentrancy in InternationalLGTBday.constructor() (#419-443):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#421)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#442)
Reentrancy in InternationalLGTBday.swapBack() (#627-674):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#639-645)
- distributor.deposit{value: amountBNBReflection}() (#656)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#657)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#658)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#664-671)
External calls sending eth:
- distributor.deposit{value: amountBNBReflection}() (#656)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#657)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#658)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#664-671)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#672)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.shouldDistribute(address) (#312-315) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#313-314)
InternationalLGTBday._transferFrom(address,address,uint256) (#497-555) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(cooldownTimer[recipient] < block.timestamp,Please wait for 1min between two buys) (#526)
Avoid relying on block.timestamp.
Additional information: link
DividendDistributor.process(uint256) (#286-310) has costly operations inside a loop:
- currentIndex = 0 (#298)
DividendDistributor.distributeDividend(address) (#317-328) has costly operations inside a loop:
- totalDistributed = totalDistributed.add(amount) (#322)
DividendDistributor.process(uint256) (#286-310) has costly operations inside a loop:
- currentIndex ++ (#307)
Use a local variable to hold the loop computation result.
Additional information: link
InternationalLGTBday._maxTxAmount (#375) is set pre-construction with a non-constant function or state variable:
- _totalSupply
InternationalLGTBday._maxWalletToken (#376) is set pre-construction with a non-constant function or state variable:
- _totalSupply
InternationalLGTBday.totalFee (#392) is set pre-construction with a non-constant function or state variable:
- marketingFee + reflectionFee + liquidityFee + devFee
InternationalLGTBday.swapThreshold (#398) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 30 / 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
Low level call in InternationalLGTBday.swapBack() (#627-674):
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#657)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#658)
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() (#134) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minPeriod (#241) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minDistribution (#241) is not in mixedCase
Variable DividendDistributor._token (#194) is not in mixedCase
Variable DividendDistributor.RWRD (#202) is not in mixedCase
Variable DividendDistributor.WBNB (#203) is not in mixedCase
Function InternationalLGTBday.setMaxWalletPercent_base1000(uint256) (#481-484) is not in mixedCase
Parameter InternationalLGTBday.setMaxWalletPercent_base1000(uint256).maxWallPercent_base1000 (#481) is not in mixedCase
Function InternationalLGTBday.setMaxTxPercent_base1000(uint256) (#486-489) is not in mixedCase
Parameter InternationalLGTBday.setMaxTxPercent_base1000(uint256).maxTXPercentage_base1000 (#486) is not in mixedCase
Parameter InternationalLGTBday.cooldownEnabled(bool,uint8)._status (#590) is not in mixedCase
Parameter InternationalLGTBday.cooldownEnabled(bool,uint8)._interval (#590) is not in mixedCase
Parameter InternationalLGTBday.setTrading(bool)._status (#597) is not in mixedCase
Function InternationalLGTBday.clearStuckBalance_sender(uint256) (#616-620) is not in mixedCase
Parameter InternationalLGTBday.setSellMultiplier(uint256).Multiplier (#622) is not in mixedCase
Function InternationalLGTBday.add_blacklist(address,bool) (#688-691) is not in mixedCase
Function InternationalLGTBday.enable_blacklist(bool) (#693-696) is not in mixedCase
Parameter InternationalLGTBday.enable_blacklist(bool)._status (#693) is not in mixedCase
Function InternationalLGTBday.manage_blacklist(address[],bool) (#698-703) is not in mixedCase
Function InternationalLGTBday.manage_isNotBot(address[],bool) (#706-712) is not in mixedCase
Function InternationalLGTBday.enable_antibotMode(bool) (#714-717) is not in mixedCase
Parameter InternationalLGTBday.enable_antibotMode(bool)._status (#714) is not in mixedCase
Parameter InternationalLGTBday.setFeeReceivers(address,address,address)._autoLiquidityReceiver (#735) is not in mixedCase
Parameter InternationalLGTBday.setFeeReceivers(address,address,address)._marketingFeeReceiver (#735) is not in mixedCase
Parameter InternationalLGTBday.setFeeReceivers(address,address,address)._devFeeReceiver (#735) is not in mixedCase
Parameter InternationalLGTBday.setFees(uint256,uint256,uint256,uint256,uint256)._liquidityFee (#743) is not in mixedCase
Parameter InternationalLGTBday.setFees(uint256,uint256,uint256,uint256,uint256)._reflectionFee (#743) is not in mixedCase
Parameter InternationalLGTBday.setFees(uint256,uint256,uint256,uint256,uint256)._marketingFee (#743) is not in mixedCase
Parameter InternationalLGTBday.setFees(uint256,uint256,uint256,uint256,uint256)._devFee (#743) is not in mixedCase
Parameter InternationalLGTBday.setFees(uint256,uint256,uint256,uint256,uint256)._feeDenominator (#743) is not in mixedCase
Parameter InternationalLGTBday.setDistributionCriteria(uint256,uint256)._minPeriod (#754) is not in mixedCase
Parameter InternationalLGTBday.setDistributionCriteria(uint256,uint256)._minDistribution (#754) is not in mixedCase
Parameter InternationalLGTBday.setSwapBackSettings(bool,uint256)._enabled (#771) is not in mixedCase
Parameter InternationalLGTBday.setSwapBackSettings(bool,uint256)._amount (#771) is not in mixedCase
Parameter InternationalLGTBday.setTargetLiquidity(uint256,uint256)._target (#777) is not in mixedCase
Parameter InternationalLGTBday.setTargetLiquidity(uint256,uint256)._denominator (#777) is not in mixedCase
Variable InternationalLGTBday.WBNB (#365) is not in mixedCase
Variable InternationalLGTBday.DEAD (#366) is not in mixedCase
Variable InternationalLGTBday.ZERO (#367) is not in mixedCase
Constant InternationalLGTBday._name (#369) is not in UPPER_CASE_WITH_UNDERSCORES
Constant InternationalLGTBday._symbol (#370) is not in UPPER_CASE_WITH_UNDERSCORES
Constant InternationalLGTBday._decimals (#371) is not in UPPER_CASE_WITH_UNDERSCORES
Variable InternationalLGTBday._totalSupply (#374) is not in mixedCase
Variable InternationalLGTBday._maxTxAmount (#375) is not in mixedCase
Variable InternationalLGTBday._maxWalletToken (#376) is not in mixedCase
Variable InternationalLGTBday._balances (#378) is not in mixedCase
Variable InternationalLGTBday._allowances (#379) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#139) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#140)
Prevent variables from having similar names.
Additional information: link
InternationalLGTBday.slitherConstructorVariables() (#362-802) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#366)
InternationalLGTBday.slitherConstructorVariables() (#362-802) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#367)
InternationalLGTBday.slitherConstructorVariables() (#362-802) uses literals with too many digits:
- distributorGas = 500000 (#397)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
DividendDistributor.WBNB (#203) should be constant
DividendDistributor.dividendsPerShareAccuracyFactor (#216) should be constant
InternationalLGTBday.DEAD (#366) should be constant
InternationalLGTBday.WBNB (#365) should be constant
InternationalLGTBday.ZERO (#367) should be constant
InternationalLGTBday._totalSupply (#374) 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) (#96-98)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#100-102)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#112-116)
renounceOwnership() should be declared external:
- Auth.renounceOwnership() (#118-121)
cooldownEnabled(bool,uint8) should be declared external:
- InternationalLGTBday.cooldownEnabled(bool,uint8) (#590-594)
setTrading(bool) should be declared external:
- InternationalLGTBday.setTrading(bool) (#597-600)
enable_blacklist(bool) should be declared external:
- InternationalLGTBday.enable_blacklist(bool) (#693-696)
manage_blacklist(address[],bool) should be declared external:
- InternationalLGTBday.manage_blacklist(address[],bool) (#698-703)
manage_isNotBot(address[],bool) should be declared external:
- InternationalLGTBday.manage_isNotBot(address[],bool) (#706-712)
enable_antibotMode(bool) should be declared external:
- InternationalLGTBday.enable_antibotMode(bool) (#714-717)
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 Telegram and Twitter accounts