Green Chart Token Logo

$green [Green Chart] Token

About $green

Listings

Not Found
Token 22 months

Website

Not Found

Description

Not Found

Social

Not Found

Laser Scorebeta Last Audit: 30 November 2021

report
Token seems to be anonymous. As long as we are unable to find website score is limited.

Green.buyBackAndBurn(uint256) (#1381-1398) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1390-1395)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in Green._transfer(address,address,uint256) (#1212-1362):
External calls:
- swapTokensForBNB(contractTokenBalance) (#1276)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1409-1415)
- swapTokensForBNB(contractTokenBalance) (#1282)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1409-1415)
- buyBackAndBurn(buybackAmount) (#1306)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1390-1395)
External calls sending eth:
- transferToWallet(address(marketingWallet),marketingPortion) (#1291)
- recipient.transfer(amount) (#1420)
- addr.transfer(devPortion) (#1293)
- transferToWallet(address(marketingWallet),swapTokens_scope_0) (#1297)
- recipient.transfer(amount) (#1420)
- buyBackAndBurn(buybackAmount) (#1306)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1390-1395)
State variables written after the call(s):
- super._transfer(from,rewardsWallet,rewardPortion) (#1326)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#396)
- _balances[recipient] = _balances[recipient].add(amount) (#397)
- super._transfer(from,rewardsWallet,rewardPortion_scope_1) (#1334)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#396)
- _balances[recipient] = _balances[recipient].add(amount) (#397)
- super._transfer(from,rewardsWallet,rewardPortion_scope_3) (#1348)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#396)
- _balances[recipient] = _balances[recipient].add(amount) (#397)
- super._transfer(from,address(this),fees) (#1357)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#396)
- _balances[recipient] = _balances[recipient].add(amount) (#397)
- super._transfer(from,to,amount) (#1360)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#396)
- _balances[recipient] = _balances[recipient].add(amount) (#397)
- lastBuyBack = block.timestamp (#1308)
- swapping = false (#1312)
Apply the check-effects-interactions pattern.

Additional information: link

Green._totalSupply (#906) shadows:
- ERC20._totalSupply (#221)
Remove the state variable shadowing.

Additional information: link


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

Green.rand() (#1194-1210) uses a dangerous strict equality:
- randNumber == 0 (#1204)
Don't use strict equality to determine if an account has enough Ether or tokens.

Additional information: link

Green.updateBotFees(uint256) (#1170-1173) contains a tautology or contradiction:
- require(bool,string)(percent >= 0 && percent <= 100,must be between 0 and 100) (#1171)
Fix the incorrect comparison by changing the value type or the comparison.

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.

Green._transfer(address,address,uint256) (#1212-1362) performs a multiplication on the result of a division:
-buyBackBalance = (afterSwap.sub(buyBackBalance)).mul(buyBackFee).div(totalSellFees) (#1278)
-buybackAmount = buyBackBalance.mul(buybackpercent).div(100) (#1303)
Consider ordering multiplication before division.

Additional information: link

Green.updateBotBlocks(uint256) (#1376-1379) should emit an event for:
- _botBlocks = botBlocks (#1378)
Emit an event for critical parameter changes.

Additional information: link

Green.whitelistPinkSale(address)._presaleAddress (#1006) lacks a zero-check on :
- presaleAddress = _presaleAddress (#1007)
Check that the address is not zero.

Additional information: link

Reentrancy in Green.constructor() (#974-1000):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#981-982)
State variables written after the call(s):
- _mint(owner(),_totalSupply) (#999)
- _balances[account] = _balances[account].add(amount) (#416)
- _mint(owner(),_totalSupply) (#999)
- _totalSupply = _totalSupply.add(amount) (#415)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#987)
- automatedMarketMakerPairs[pair] = value (#1186)
- excludeFromFees(marketingWallet,true) (#990)
- isExcludedFromFees[account] = excluded (#1160)
- excludeFromFees(rewardsWallet,true) (#991)
- isExcludedFromFees[account] = excluded (#1160)
- excludeFromFees(address(this),true) (#992)
- isExcludedFromFees[account] = excluded (#1160)
- excludeFromFees(owner(),true) (#993)
- isExcludedFromFees[account] = excluded (#1160)
- uniswapV2Pair = _uniswapV2Pair (#985)
- uniswapV2Router = _uniswapV2Router (#984)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in Green.constructor() (#974-1000):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#981-982)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#1162)
- excludeFromFees(owner(),true) (#993)
- ExcludeFromFees(account,excluded) (#1162)
- excludeFromFees(address(this),true) (#992)
- ExcludeFromFees(account,excluded) (#1162)
- excludeFromFees(rewardsWallet,true) (#991)
- ExcludeFromFees(account,excluded) (#1162)
- excludeFromFees(marketingWallet,true) (#990)
- SetAutomatedMarketMakerPair(pair,value) (#1187)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#987)
- Transfer(address(0),account,amount) (#417)
- _mint(owner(),_totalSupply) (#999)
Apply the check-effects-interactions pattern.

Additional information: link

Green._transfer(address,address,uint256) (#1212-1362) uses timestamp for comparisons
Dangerous comparisons:
- block.timestamp - previousTransactionBlock[to] <= _botBlocks (#1234)
- block.timestamp <= _firstBlock.add(_botBlocks) (#1240)
- block.timestamp - previousTransactionBlock[from] <= _botBlocks (#1260)
- block.timestamp < _firstBlock + (86400) (#1287)
- buyBackEnabled && block.timestamp.sub(lastBuyBack) > (300) (#1301)
- buyBack <= 50 || block.timestamp.sub(lastBuyBack) > (600) (#1302)
Avoid relying on block.timestamp.

Additional information: link

Green.setMarketingEnabled(bool) (#1115-1131) compares to a boolean constant:
-_enabled == false (#1117)
Remove the equality to the boolean constant.

Additional information: link

SafeMath.trySub(uint256,uint256) (#722-725) is never used and should be removed
Remove unused functions.

Additional information: link

solc-0.8.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

Variable Green._totalSupply (#906) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (#39)" inContext (#33-42)
Remove redundant statements if they congest code but offer no value.

Additional information: link

Reentrancy in Green._transfer(address,address,uint256) (#1212-1362):
External calls:
- transferToWallet(address(marketingWallet),marketingPortion) (#1291)
- recipient.transfer(amount) (#1420)
- addr.transfer(devPortion) (#1293)
- transferToWallet(address(marketingWallet),swapTokens_scope_0) (#1297)
- recipient.transfer(amount) (#1420)
External calls sending eth:
- transferToWallet(address(marketingWallet),marketingPortion) (#1291)
- recipient.transfer(amount) (#1420)
- addr.transfer(devPortion) (#1293)
- transferToWallet(address(marketingWallet),swapTokens_scope_0) (#1297)
- recipient.transfer(amount) (#1420)
- buyBackAndBurn(buybackAmount) (#1306)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1390-1395)
State variables written after the call(s):
- super._transfer(from,rewardsWallet,rewardPortion) (#1326)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#396)
- _balances[recipient] = _balances[recipient].add(amount) (#397)
- super._transfer(from,rewardsWallet,rewardPortion_scope_1) (#1334)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#396)
- _balances[recipient] = _balances[recipient].add(amount) (#397)
- super._transfer(from,rewardsWallet,rewardPortion_scope_3) (#1348)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#396)
- _balances[recipient] = _balances[recipient].add(amount) (#397)
- super._transfer(from,address(this),fees) (#1357)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#396)
- _balances[recipient] = _balances[recipient].add(amount) (#397)
- super._transfer(from,to,amount) (#1360)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#396)
- _balances[recipient] = _balances[recipient].add(amount) (#397)
- lastBuyBack = block.timestamp (#1308)
- swapping = false (#1312)
Event emitted after the call(s):
- SwapBNBForTokens(amount,path) (#1397)
- buyBackAndBurn(buybackAmount) (#1306)
- Transfer(sender,recipient,amount) (#398)
- super._transfer(from,to,amount) (#1360)
- Transfer(sender,recipient,amount) (#398)
- super._transfer(from,rewardsWallet,rewardPortion_scope_1) (#1334)
- Transfer(sender,recipient,amount) (#398)
- super._transfer(from,rewardsWallet,rewardPortion) (#1326)
- Transfer(sender,recipient,amount) (#398)
- super._transfer(from,rewardsWallet,rewardPortion_scope_3) (#1348)
- Transfer(sender,recipient,amount) (#398)
- super._transfer(from,address(this),fees) (#1357)
Apply the check-effects-interactions pattern.

Additional information: link

Variable Green._transfer(address,address,uint256).rewardPortion_scope_1 (#1332) is too similar to Green._transfer(address,address,uint256).rewardPortion_scope_3 (#1346)
Prevent variables from having similar names.

Additional information: link

Green.slitherConstructorVariables() (#903-1429) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#911)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

Green.deadAddress (#911) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

_transferOwnership(address) should be declared external:
- Green._transferOwnership(address) (#1423-1426)
Use the external attribute for functions never called from the contract.

Additional information: link

Contract ticker ($green) contains non-alphanumeric characters.
Not a direct threat, but may indicate unreliable intentions of developer. Non-alphanumeric chars (,.;!#*&") are extremely rare among low risk tokens.

Holders:


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


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 PancakeSwap trading pair to compute liquidity.


Unable to find PancakeSwap trading pair to compute volume.


Unable to find PancakeSwap trading pair to compute number of swaps.


Unable to find Telegram and Twitter accounts


Unable to find website, listings and other project-related information


Young tokens have high risks of price dump / death


Token has no active CoinGecko listing / rank


Token has no active CoinMarketCap listing / rank

Price for $green