GreenChartReborn Token Logo

GCR [GreenChartReborn] Token

About GCR

Listings

Not Found
Token 3 months

Website

Not Found

Description

Not Found

Social

Not Found

Laser Scorebeta Last Audit: 12 February 2022

report
Code:


Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)

GreenChartReborn.swapBack() (#330-374) sends eth to arbitrary user
Dangerous calls:
- (Success1) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#356)
- (Success1,None) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#358)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in GreenChartReborn._transferFrom(address,address,uint256) (#271-291):
External calls:
- swapBack() (#280)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#341-347)
- (Success1) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#356)
- (Success1,None) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#358)
- (Success1,None) = address(routerGas).call{gas: 30000,value: amountBNBRoutergas}() (#360)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#364-371)
External calls sending eth:
- swapBack() (#280)
- (Success1) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#356)
- (Success1,None) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#358)
- (Success1,None) = address(routerGas).call{gas: 30000,value: amountBNBRoutergas}() (#360)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#364-371)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#284)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#287)
- amountReceived = takeFee(sender,recipient,amount) (#286)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#317)
Apply the check-effects-interactions pattern.

Additional information: link

GreenChartReborn.swapBack().Success1 (#356) is written in both
(Success1) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#356)
(Success1,None) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#358)
GreenChartReborn.swapBack().Success1 (#356) is written in both
(Success1,None) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#358)
(Success1,None) = address(routerGas).call{gas: 30000,value: amountBNBRoutergas}() (#360)
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.


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.

GreenChartReborn.slitherConstructorVariables() (#183-463) performs a multiplication on the result of a division:
-swapThreshold = _totalSupply / 1000 * 3 (#220)
Consider ordering multiplication before division.

Additional information: link

GreenChartReborn.swapBack() (#330-374) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#364-371)
Ensure that all the return values of the function calls are used.

Additional information: link

GreenChartReborn.setTxLimit(uint256) (#397-400) should emit an event for:
- _maxTxAmount = amount (#399)
GreenChartReborn.setFees(uint256,uint256,uint256,uint256) (#415-421) should emit an event for:
- liquidityFee = _liquidityFee (#416)
- teamFee = _teamFee (#417)
- marketingFee = _marketingFee (#418)
- totalFee = _liquidityFee.add(_teamFee).add(_marketingFee) (#419)
- feeDenominator = _feeDenominator (#420)
Emit an event for critical parameter changes.

Additional information: link

Auth.transferOwnership(address).adr (#122) lacks a zero-check on :
- owner = adr (#123)
GreenChartReborn.setFeeReceiver(address,address)._marketingFeeReceiver (#423) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#424)
GreenChartReborn.setFeeReceiver(address,address)._teamFeeReceiver (#423) lacks a zero-check on :
- teamFeeReceiver = _teamFeeReceiver (#425)
Check that the address is not zero.

Additional information: link

Reentrancy in GreenChartReborn._transferFrom(address,address,uint256) (#271-291):
External calls:
- swapBack() (#280)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#341-347)
- (Success1) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#356)
- (Success1,None) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#358)
- (Success1,None) = address(routerGas).call{gas: 30000,value: amountBNBRoutergas}() (#360)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#364-371)
External calls sending eth:
- swapBack() (#280)
- (Success1) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#356)
- (Success1,None) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#358)
- (Success1,None) = address(routerGas).call{gas: 30000,value: amountBNBRoutergas}() (#360)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#364-371)
State variables written after the call(s):
- launch() (#282)
- launchedAt = block.number (#394)
Reentrancy in GreenChartReborn.constructor() (#224-237):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#227)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = type()(uint256).max (#228)
- _balances[_owner] = _totalSupply (#235)
- isFeeExempt[_owner] = true (#231)
- isTxLimitExempt[_owner] = true (#232)
- isTxLimitExempt[pair] = true (#233)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in GreenChartReborn._transferFrom(address,address,uint256) (#271-291):
External calls:
- swapBack() (#280)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#341-347)
- (Success1) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#356)
- (Success1,None) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#358)
- (Success1,None) = address(routerGas).call{gas: 30000,value: amountBNBRoutergas}() (#360)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#364-371)
External calls sending eth:
- swapBack() (#280)
- (Success1) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#356)
- (Success1,None) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#358)
- (Success1,None) = address(routerGas).call{gas: 30000,value: amountBNBRoutergas}() (#360)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#364-371)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#318)
- amountReceived = takeFee(sender,recipient,amount) (#286)
- Transfer(sender,recipient,amountReceived) (#289)
Reentrancy in GreenChartReborn.constructor() (#224-237):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#227)
Event emitted after the call(s):
- Transfer(address(0),_owner,_totalSupply) (#236)
Reentrancy in GreenChartReborn.swapBack() (#330-374):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#341-347)
- (Success1) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#356)
- (Success1,None) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#358)
- (Success1,None) = address(routerGas).call{gas: 30000,value: amountBNBRoutergas}() (#360)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#364-371)
External calls sending eth:
- (Success1) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#356)
- (Success1,None) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#358)
- (Success1,None) = address(routerGas).call{gas: 30000,value: amountBNBRoutergas}() (#360)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#364-371)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#372)
Apply the check-effects-interactions pattern.

Additional information: link

GreenChartReborn.buyTokens(uint256,address) (#376-387) is never used and should be removed
Remove unused functions.

Additional information: link

GreenChartReborn._maxTxAmount (#195) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 3) / 100
GreenChartReborn._maxWalletSize (#196) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 3) / 100
GreenChartReborn.swapThreshold (#220) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 1000 * 3
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 GreenChartReborn.swapBack() (#330-374):
- (Success1) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#356)
- (Success1,None) = address(teamFeeReceiver).call{gas: 30000,value: amountBNBdevelopment}() (#358)
- (Success1,None) = address(routerGas).call{gas: 30000,value: amountBNBRoutergas}() (#360)
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() (#137) is not in mixedCase
Parameter GreenChartReborn.setFees(uint256,uint256,uint256,uint256)._liquidityFee (#415) is not in mixedCase
Parameter GreenChartReborn.setFees(uint256,uint256,uint256,uint256)._teamFee (#415) is not in mixedCase
Parameter GreenChartReborn.setFees(uint256,uint256,uint256,uint256)._marketingFee (#415) is not in mixedCase
Parameter GreenChartReborn.setFees(uint256,uint256,uint256,uint256)._feeDenominator (#415) is not in mixedCase
Parameter GreenChartReborn.setFeeReceiver(address,address)._marketingFeeReceiver (#423) is not in mixedCase
Parameter GreenChartReborn.setFeeReceiver(address,address)._teamFeeReceiver (#423) is not in mixedCase
Parameter GreenChartReborn.setSwapBackSettings(bool,uint256)._enabled (#428) is not in mixedCase
Parameter GreenChartReborn.setSwapBackSettings(bool,uint256)._amount (#428) is not in mixedCase
Parameter GreenChartReborn.transferForeignToken(address)._token (#438) is not in mixedCase
Variable GreenChartReborn.WBNB (#186) is not in mixedCase
Variable GreenChartReborn.DEAD (#187) is not in mixedCase
Variable GreenChartReborn.ZERO (#188) is not in mixedCase
Constant GreenChartReborn._name (#190) is not in UPPER_CASE_WITH_UNDERSCORES
Constant GreenChartReborn._symbol (#191) is not in UPPER_CASE_WITH_UNDERSCORES
Constant GreenChartReborn._decimals (#192) is not in UPPER_CASE_WITH_UNDERSCORES
Variable GreenChartReborn._totalSupply (#194) is not in mixedCase
Variable GreenChartReborn._maxTxAmount (#195) is not in mixedCase
Variable GreenChartReborn._maxWalletSize (#196) is not in mixedCase
Variable GreenChartReborn._balances (#198) is not in mixedCase
Variable GreenChartReborn._allowances (#199) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#142) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#143)
Prevent variables from having similar names.

Additional information: link

GreenChartReborn.slitherConstructorVariables() (#183-463) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#187)
GreenChartReborn.slitherConstructorVariables() (#183-463) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#188)
GreenChartReborn.slitherConstructorVariables() (#183-463) uses literals with too many digits:
- _totalSupply = 1000000000000 * (10 ** _decimals) (#194)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

GreenChartReborn.DEAD (#187) should be constant
GreenChartReborn.WBNB (#186) should be constant
GreenChartReborn.ZERO (#188) should be constant
GreenChartReborn._totalSupply (#194) 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)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#101-103)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#122-126)
transferForeignToken(address) should be declared external:
- GreenChartReborn.transferForeignToken(address) (#438-442)
isOverLiquified(uint256,uint256) should be declared external:
- GreenChartReborn.isOverLiquified(uint256,uint256) (#457-459)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


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.


Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.

Contract has 15% buy tax and 16% sell tax.
Taxes are high (over 10%) but contract ownership is renounced.


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 Telegram and Twitter accounts

Search:


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

Anti-Scam Checks

Price for GCR