Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
GREENELON.addLiquidity(uint256,uint256) (#569-582) sends eth to arbitrary user
Dangerous calls:
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#574-581)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in GREENELON._transfer(address,address,uint256) (#465-512):
External calls:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#503)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#574-581)
- (success) = recipient.call{value: amount}() (#100)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#593-599)
- address(marketingWallet).sendValue(marketingAmt) (#561)
- address(donationWallet).sendValue(donationAmt) (#565)
- swapAndLiquify(swapTokensAtAmount,taxes) (#504)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#574-581)
- (success) = recipient.call{value: amount}() (#100)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#593-599)
- address(marketingWallet).sendValue(marketingAmt) (#561)
- address(donationWallet).sendValue(donationAmt) (#565)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#503)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#574-581)
- (success) = recipient.call{value: amount}() (#100)
- swapAndLiquify(swapTokensAtAmount,taxes) (#504)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#574-581)
- (success) = recipient.call{value: amount}() (#100)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee,isSell) (#511)
- _rOwned[address(this)] += rMarketing (#376)
- _rOwned[address(this)] += rLiquidity (#366)
- _rOwned[address(this)] += rDonation (#386)
- _rOwned[sender] = _rOwned[sender] - s.rAmount (#527)
- _rOwned[recipient] = _rOwned[recipient] + s.rTransferAmount (#528)
- _tokenTransfer(from,to,amount,takeFee,isSell) (#511)
- _rTotal -= rRfi (#355)
- _tokenTransfer(from,to,amount,takeFee,isSell) (#511)
- _tOwned[address(this)] += tLiquidity (#364)
- _tOwned[sender] = _tOwned[sender] - tAmount (#521)
- _tOwned[address(this)] += tDonation (#384)
- _tOwned[address(this)] += tMarketing (#374)
- _tOwned[recipient] = _tOwned[recipient] + s.tTransferAmount (#524)
Apply the check-effects-interactions pattern.
Additional information: link
GREENELON.rescueAnyBEP20Tokens(address,address,uint256) (#673-675) ignores return value by IERC20(_tokenAddr).transfer(_to,_amount) (#674)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
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)
GREENELON.swapAndLiquify(uint256,GREENELON.Taxes) (#541-567) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - temp.liquidity) (#551)
-bnbToAddLiquidityWith = unitBalance * temp.liquidity (#552)
GREENELON.swapAndLiquify(uint256,GREENELON.Taxes) (#541-567) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - temp.liquidity) (#551)
-marketingAmt = unitBalance * 2 * temp.marketing (#559)
GREENELON.swapAndLiquify(uint256,GREENELON.Taxes) (#541-567) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - temp.liquidity) (#551)
-donationAmt = unitBalance * 2 * temp.donation (#563)
Consider ordering multiplication before division.
Additional information: link
GREENELON.addLiquidity(uint256,uint256) (#569-582) ignores return value by router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#574-581)
Ensure that all the return values of the function calls are used.
Additional information: link
GREENELON.allowance(address,address).owner (#245) shadows:
- Ownable.owner() (#47-49) (function)
GREENELON._approve(address,address,uint256).owner (#458) shadows:
- Ownable.owner() (#47-49) (function)
Rename the local variables that shadow another component.
Additional information: link
GREENELON.updateCooldown(bool,uint256) (#624-627) should emit an event for:
- coolDownTime = time * 1 (#625)
GREENELON.updateSwapTokensAtAmount(uint256) (#629-631) should emit an event for:
- swapTokensAtAmount = amount * 10 ** _decimals (#630)
GREENELON.updateMaxTxLimit(uint256,uint256) (#652-655) should emit an event for:
- maxBuyLimit = maxBuy * 10 ** decimals() (#653)
- maxSellLimit = maxSell * 10 ** decimals() (#654)
GREENELON.updateMaxWalletlimit(uint256) (#657-659) should emit an event for:
- maxWalletLimit = amount * 10 ** decimals() (#658)
Emit an event for critical parameter changes.
Additional information: link
GREENELON.constructor(address)._pair (#201-202) lacks a zero-check on :
- pair = _pair (#205)
GREENELON.updateMarketingWallet(address).newWallet (#615) lacks a zero-check on :
- marketingWallet = newWallet (#616)
GREENELON.updateDonationWallet(address).newWallet (#619) lacks a zero-check on :
- donationWallet = newWallet (#620)
GREENELON.updateRouterAndPair(address,address).newPair (#661) lacks a zero-check on :
- pair = newPair (#663)
Check that the address is not zero.
Additional information: link
Reentrancy in GREENELON._transfer(address,address,uint256) (#465-512):
External calls:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#503)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#574-581)
- (success) = recipient.call{value: amount}() (#100)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#593-599)
- address(marketingWallet).sendValue(marketingAmt) (#561)
- address(donationWallet).sendValue(donationAmt) (#565)
- swapAndLiquify(swapTokensAtAmount,taxes) (#504)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#574-581)
- (success) = recipient.call{value: amount}() (#100)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#593-599)
- address(marketingWallet).sendValue(marketingAmt) (#561)
- address(donationWallet).sendValue(donationAmt) (#565)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#503)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#574-581)
- (success) = recipient.call{value: amount}() (#100)
- swapAndLiquify(swapTokensAtAmount,taxes) (#504)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#574-581)
- (success) = recipient.call{value: amount}() (#100)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee,isSell) (#511)
- totFeesPaid.donation += tDonation (#380)
- totFeesPaid.marketing += tMarketing (#370)
- totFeesPaid.liquidity += tLiquidity (#360)
- totFeesPaid.rfi += tRfi (#356)
Reentrancy in GREENELON.constructor(address) (#199-222):
External calls:
- _pair = IFactory(_router.factory()).createPair(address(this),_router.WETH()) (#201-202)
State variables written after the call(s):
- excludeFromReward(pair) (#207)
- _excluded.push(account) (#316)
- excludeFromReward(pair) (#207)
- _isExcluded[account] = true (#315)
- _isExcludedFromFee[address(this)] = true (#210)
- _isExcludedFromFee[owner()] = true (#211)
- _isExcludedFromFee[marketingWallet] = true (#212)
- _isExcludedFromFee[donationWallet] = true (#213)
- _rOwned[owner()] = _rTotal (#209)
- excludeFromReward(pair) (#207)
- _tOwned[account] = tokenFromReflection(_rOwned[account]) (#313)
- allowedTransfer[address(this)] = true (#215)
- allowedTransfer[owner()] = true (#216)
- allowedTransfer[pair] = true (#217)
- allowedTransfer[marketingWallet] = true (#218)
- allowedTransfer[donationWallet] = true (#219)
- pair = _pair (#205)
- router = _router (#204)
Reentrancy in GREENELON.swapAndLiquify(uint256,GREENELON.Taxes) (#541-567):
External calls:
- swapTokensForBNB(toSwap) (#548)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#593-599)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#556)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#574-581)
External calls sending eth:
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#556)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#574-581)
State variables written after the call(s):
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#556)
- _allowances[owner][spender] = amount (#461)
Reentrancy in GREENELON.transferFrom(address,address,uint256) (#254-262):
External calls:
- _transfer(sender,recipient,amount) (#255)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#574-581)
- (success) = recipient.call{value: amount}() (#100)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#593-599)
- address(marketingWallet).sendValue(marketingAmt) (#561)
- address(donationWallet).sendValue(donationAmt) (#565)
External calls sending eth:
- _transfer(sender,recipient,amount) (#255)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#574-581)
- (success) = recipient.call{value: amount}() (#100)
State variables written after the call(s):
- _approve(sender,_msgSender(),currentAllowance - amount) (#259)
- _allowances[owner][spender] = amount (#461)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in GREENELON._transfer(address,address,uint256) (#465-512):
External calls:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#503)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#574-581)
- (success) = recipient.call{value: amount}() (#100)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#593-599)
- address(marketingWallet).sendValue(marketingAmt) (#561)
- address(donationWallet).sendValue(donationAmt) (#565)
- swapAndLiquify(swapTokensAtAmount,taxes) (#504)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#574-581)
- (success) = recipient.call{value: amount}() (#100)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#593-599)
- address(marketingWallet).sendValue(marketingAmt) (#561)
- address(donationWallet).sendValue(donationAmt) (#565)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#503)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#574-581)
- (success) = recipient.call{value: amount}() (#100)
- swapAndLiquify(swapTokensAtAmount,taxes) (#504)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#574-581)
- (success) = recipient.call{value: amount}() (#100)
Event emitted after the call(s):
- Transfer(sender,address(this),s.tLiquidity + s.tMarketing + s.tDonation) (#533)
- _tokenTransfer(from,to,amount,takeFee,isSell) (#511)
- Transfer(sender,recipient,s.tTransferAmount) (#537)
- _tokenTransfer(from,to,amount,takeFee,isSell) (#511)
Reentrancy in GREENELON.constructor(address) (#199-222):
External calls:
- _pair = IFactory(_router.factory()).createPair(address(this),_router.WETH()) (#201-202)
Event emitted after the call(s):
- Transfer(address(0),owner(),_tTotal) (#221)
Reentrancy in GREENELON.swapAndLiquify(uint256,GREENELON.Taxes) (#541-567):
External calls:
- swapTokensForBNB(toSwap) (#548)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#593-599)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#556)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#574-581)
External calls sending eth:
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#556)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#574-581)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#462)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#556)
Reentrancy in GREENELON.transferFrom(address,address,uint256) (#254-262):
External calls:
- _transfer(sender,recipient,amount) (#255)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#574-581)
- (success) = recipient.call{value: amount}() (#100)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#593-599)
- address(marketingWallet).sendValue(marketingAmt) (#561)
- address(donationWallet).sendValue(donationAmt) (#565)
External calls sending eth:
- _transfer(sender,recipient,amount) (#255)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#574-581)
- (success) = recipient.call{value: amount}() (#100)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#462)
- _approve(sender,_msgSender(),currentAllowance - amount) (#259)
Apply the check-effects-interactions pattern.
Additional information: link
GREENELON._transfer(address,address,uint256) (#465-512) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(timePassed >= coolDownTime,Cooldown enabled) (#492)
Avoid relying on block.timestamp.
Additional information: link
GREENELON.setTradingStatus(bool) (#298-302) compares to a boolean constant:
-state == true && genesis_block == 0 (#301)
Remove the equality to the boolean constant.
Additional information: link
GREENELON.includeInReward(address) (#319-330) has costly operations inside a loop:
- _excluded.pop() (#326)
GREENELON._reflectRfi(uint256,uint256) (#354-357) has costly operations inside a loop:
- _rTotal -= rRfi (#355)
Use a local variable to hold the loop computation result.
Additional information: link
Context._msgData() (#32-35) is never used and should be removed
Remove unused functions.
Additional information: link
GREENELON._rTotal (#142) is set pre-construction with a non-constant function or state variable:
- (MAX - (MAX % _tTotal))
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 Address.sendValue(address,uint256) (#97-102):
- (success) = recipient.call{value: amount}() (#100)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IRouter.WETH() (#78) is not in mixedCase
Struct GREENELON.valuesFromGetValues (#176-188) is not in CapWords
Parameter GREENELON.setTaxes(uint256,uint256,uint256,uint256)._rfi (#344) is not in mixedCase
Parameter GREENELON.setTaxes(uint256,uint256,uint256,uint256)._marketing (#344) is not in mixedCase
Parameter GREENELON.setTaxes(uint256,uint256,uint256,uint256)._liquidity (#344) is not in mixedCase
Parameter GREENELON.setTaxes(uint256,uint256,uint256,uint256)._donation (#344) is not in mixedCase
Parameter GREENELON.setSellTaxes(uint256,uint256,uint256,uint256)._rfi (#349) is not in mixedCase
Parameter GREENELON.setSellTaxes(uint256,uint256,uint256,uint256)._marketing (#349) is not in mixedCase
Parameter GREENELON.setSellTaxes(uint256,uint256,uint256,uint256)._liquidity (#349) is not in mixedCase
Parameter GREENELON.setSellTaxes(uint256,uint256,uint256,uint256)._donation (#349) is not in mixedCase
Parameter GREENELON.updateSwapEnabled(bool)._enabled (#633) is not in mixedCase
Parameter GREENELON.rescueAnyBEP20Tokens(address,address,uint256)._tokenAddr (#673) is not in mixedCase
Parameter GREENELON.rescueAnyBEP20Tokens(address,address,uint256)._to (#673) is not in mixedCase
Parameter GREENELON.rescueAnyBEP20Tokens(address,address,uint256)._amount (#673) is not in mixedCase
Constant GREENELON._decimals (#138) is not in UPPER_CASE_WITH_UNDERSCORES
Variable GREENELON.genesis_block (#149) is not in mixedCase
Constant GREENELON._name (#154) is not in UPPER_CASE_WITH_UNDERSCORES
Constant GREENELON._symbol (#155) is not in UPPER_CASE_WITH_UNDERSCORES
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#33)" inContext (#27-36)
Remove redundant statements if they congest code but offer no value.
Additional information: link
GREENELON._tTotal (#141) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#56-58)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#60-63)
name() should be declared external:
- GREENELON.name() (#225-227)
symbol() should be declared external:
- GREENELON.symbol() (#228-230)
totalSupply() should be declared external:
- GREENELON.totalSupply() (#236-238)
allowance(address,address) should be declared external:
- GREENELON.allowance(address,address) (#245-247)
approve(address,uint256) should be declared external:
- GREENELON.approve(address,uint256) (#249-252)
transferFrom(address,address,uint256) should be declared external:
- GREENELON.transferFrom(address,address,uint256) (#254-262)
increaseAllowance(address,uint256) should be declared external:
- GREENELON.increaseAllowance(address,uint256) (#264-267)
decreaseAllowance(address,uint256) should be declared external:
- GREENELON.decreaseAllowance(address,uint256) (#269-275)
transfer(address,uint256) should be declared external:
- GREENELON.transfer(address,uint256) (#277-281)
isExcludedFromReward(address) should be declared external:
- GREENELON.isExcludedFromReward(address) (#283-285)
reflectionFromToken(uint256,bool) should be declared external:
- GREENELON.reflectionFromToken(uint256,bool) (#287-296)
excludeFromFee(address) should be declared external:
- GREENELON.excludeFromFee(address) (#332-334)
includeInFee(address) should be declared external:
- GREENELON.includeInFee(address) (#336-338)
isExcludedFromFee(address) should be declared external:
- GREENELON.isExcludedFromFee(address) (#340-342)
setTaxes(uint256,uint256,uint256,uint256) should be declared external:
- GREENELON.setTaxes(uint256,uint256,uint256,uint256) (#344-347)
setSellTaxes(uint256,uint256,uint256,uint256) should be declared external:
- GREENELON.setSellTaxes(uint256,uint256,uint256,uint256) (#349-352)
rescueAnyBEP20Tokens(address,address,uint256) should be declared external:
- GREENELON.rescueAnyBEP20Tokens(address,address,uint256) (#673-675)
Use the external attribute for functions never called from the contract.
Additional information: link
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Contract has 16% buy tax and 0% sell tax.
Taxes are suspiciously high (over 10%) and contract ownership is not renounced. Token has a high risk of becoming a honeypot.
Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.
Average 30d PancakeSwap volume is less than $100. Token is either dead or inactive.
Average 30d number of PancakeSwap swaps is less than 1. Token is either dead or inactive.
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 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 price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Unable to find Telegram and Twitter accounts