CharityProtocol Token Logo

CHPR [CharityProtocol] Token

About CHPR

Listings

Not Found
Token 3 years

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.


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

Reentrancy in CharityProtocol._transfer(address,address,uint256) (#988-1032):
External calls:
- swapAndLiquify(contractTokenBalance) (#1019)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1080-1087)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1066-1072)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#1019)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1080-1087)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#1031)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#944)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1113)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1122)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1133)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#860)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1114)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1124)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1134)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#862)
- _tokenTransfer(from,to,amount,takeFee) (#1031)
- _rTotal = _rTotal.sub(rFee) (#899)
- _tokenTransfer(from,to,amount,takeFee) (#1031)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#946)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1132)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#859)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1123)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#861)
Apply the check-effects-interactions pattern.

Additional information: link

CharityProtocol.addLiquidity(uint256,uint256) (#1075-1088) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1080-1087)
Ensure that all the return values of the function calls are used.

Additional information: link

CharityProtocol._approve(address,address,uint256).owner (#980) shadows:
- Ownable.owner() (#412-414) (function)
Rename the local variables that shadow another component.

Additional information: link

CharityProtocol.setMaxTxPercent(uint256) (#884-888) should emit an event for:
- _maxTxAmount = _tTotal.mul(maxTxPercent).div(10 ** 2) (#885-887)
Emit an event for critical parameter changes.

Additional information: link

Reentrancy in CharityProtocol.transferFrom(address,address,uint256) (#785-789):
External calls:
- _transfer(sender,recipient,amount) (#786)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1080-1087)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1066-1072)
External calls sending eth:
- _transfer(sender,recipient,amount) (#786)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1080-1087)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#787)
- _allowances[owner][spender] = amount (#984)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in CharityProtocol.transferFrom(address,address,uint256) (#785-789):
External calls:
- _transfer(sender,recipient,amount) (#786)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1080-1087)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1066-1072)
External calls sending eth:
- _transfer(sender,recipient,amount) (#786)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1080-1087)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#985)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#787)
Apply the check-effects-interactions pattern.

Additional information: link

Ownable.unlock() (#459-464) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(now > _lockTime,Contract is locked until 7 days) (#461)
Avoid relying on block.timestamp.

Additional information: link

Address._functionCallWithValue(address,bytes,uint256,string) (#357-378) uses assembly
- INLINE ASM (#370-373)
Do not use evm assembly.

Additional information: link

SafeMath.mod(uint256,uint256,string) (#225-228) is never used and should be removed
Remove unused functions.

Additional information: link

CharityProtocol._previousLiquidityFee (#707) is set pre-construction with a non-constant function or state variable:
- _liquidityFee
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._functionCallWithValue(address,bytes,uint256,string) (#357-378):
- (success,returndata) = target.call{value: weiValue}(data) (#361)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

Variable CharityProtocol._maxTxAmount (#715) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (#237)" inContext (#231-240)
Remove redundant statements if they congest code but offer no value.

Additional information: link

Variable CharityProtocol._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#920) is too similar to CharityProtocol._getTValues(uint256).tTransferAmount (#912)
Prevent variables from having similar names.

Additional information: link

CharityProtocol.slitherConstructorVariables() (#681-1144) uses literals with too many digits:
- numTokensSellToAddToLiquidity = 500000 * 10 ** 6 * 10 ** 9 (#716)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

CharityProtocol.numTokensSellToAddToLiquidity (#716) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

isExcludedFromFee(address) should be declared external:
- CharityProtocol.isExcludedFromFee(address) (#976-978)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive. Ignore for presale.


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


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 CHPR