Physical utilities CARBO token has many physical utilities built in the project's economy. It is used as a payment method with our contractors, rewards for local green activities for our users, and much more in the future.
CleanCarbon was born to develop new ways of connecting blockchain technologies with effective environmental initiatives. We believe our planet deserves to be clean and our future is brighter when decentralized.
RecoverableFunds.retrieveTokens(address,address) (contracts/RecoverableFunds.sol#13-16) ignores return value by token.transfer(recipient,token.balanceOf(address(this))) (contracts/RecoverableFunds.sol#15)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
Contract ownership is not renounced (belongs to a wallet)
RecoverableFunds.retriveETH(address).recipient (contracts/RecoverableFunds.sol#18) lacks a zero-check on :
- recipient.transfer(address(this).balance) (contracts/RecoverableFunds.sol#19)
Check that the address is not zero.
Additional information: link
Reentrancy in CarboToken.transferFrom(address,address,uint256) (contracts/CarboToken.sol#64-72):
External calls:
- _transfer(sender,recipient,amount) (contracts/CarboToken.sol#65)
- callback.reflectCallback(tAmount,rAmount) (contracts/WithCallback.sol#38)
- callback.increaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#50)
- callback.decreaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#56)
- callback.transferCallback(from,to,tFromAmount,rFromAmount,tToAmount,rToAmount) (contracts/WithCallback.sol#68)
Event emitted after the call(s):
- Approval(owner,spender,amount) (contracts/CarboToken.sol#105)
- _approve(sender,_msgSender(),currentAllowance - amount) (contracts/CarboToken.sol#69)
Reentrancy in CarboToken._transfer(address,address,uint256) (contracts/CarboToken.sol#341-370):
External calls:
- _decreaseBalance(sender,t.sum,r.sum) (contracts/CarboToken.sol#347)
- callback.decreaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#56)
- _increaseBalance(recipient,t.transfer,r.transfer) (contracts/CarboToken.sol#348)
- callback.increaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#50)
- _reflect(t.rfi,r.rfi) (contracts/CarboToken.sol#353)
- callback.reflectCallback(tAmount,rAmount) (contracts/WithCallback.sol#38)
- _increaseBalance(feeAddresses.dividends,t.dividends,r.dividends) (contracts/CarboToken.sol#356)
- callback.increaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#50)
- _increaseBalance(feeAddresses.buyback,t.buyback,r.buyback) (contracts/CarboToken.sol#359)
- callback.increaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#50)
- _increaseBalance(feeAddresses.treasury,t.treasury,r.treasury) (contracts/CarboToken.sol#362)
- callback.increaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#50)
- _increaseBalance(feeAddresses.liquidity,t.liquidity,r.liquidity) (contracts/CarboToken.sol#365)
- callback.increaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#50)
Event emitted after the call(s):
- FeeTaken(t.rfi,t.dividends,t.buyback,t.treasury,t.liquidity) (contracts/CarboToken.sol#367)
Reentrancy in CarboToken._transfer(address,address,uint256) (contracts/CarboToken.sol#341-370):
External calls:
- _decreaseBalance(sender,t.sum,r.sum) (contracts/CarboToken.sol#347)
- callback.decreaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#56)
- _increaseBalance(recipient,t.transfer,r.transfer) (contracts/CarboToken.sol#348)
- callback.increaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#50)
Event emitted after the call(s):
- Transfer(sender,recipient,t.transfer) (contracts/CarboToken.sol#349)
Reentrancy in CarboToken._burn(address,uint256) (contracts/CarboToken.sol#108-116):
External calls:
- _decreaseBalance(account,amount,rAmount) (contracts/CarboToken.sol#112)
- callback.decreaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#56)
- _decreaseTotalSupply(amount,rAmount) (contracts/CarboToken.sol#113)
- callback.decreaseTotalSupplyCallback(tAmount,rAmount) (contracts/WithCallback.sol#62)
Event emitted after the call(s):
- Transfer(account,address(0),amount) (contracts/CarboToken.sol#114)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in CarboToken.transferFrom(address,address,uint256) (contracts/CarboToken.sol#64-72):
External calls:
- _transfer(sender,recipient,amount) (contracts/CarboToken.sol#65)
- callback.reflectCallback(tAmount,rAmount) (contracts/WithCallback.sol#38)
- callback.increaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#50)
- callback.decreaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#56)
- callback.transferCallback(from,to,tFromAmount,rFromAmount,tToAmount,rToAmount) (contracts/WithCallback.sol#68)
State variables written after the call(s):
- _approve(sender,_msgSender(),currentAllowance - amount) (contracts/CarboToken.sol#69)
- _allowances[owner][spender] = amount (contracts/CarboToken.sol#104)
Apply the check-effects-interactions pattern.
Additional information: link
CarboToken._getTAmounts(uint256,ICarboToken.FeeType).t (contracts/CarboToken.sol#299) is a local variable never initialized
CarboToken._getFeeAmounts(uint256,ICarboToken.FeeType).feeAmounts (contracts/CarboToken.sol#173) is a local variable never initialized
CarboToken._getRAmounts(ICarboToken.Amounts,ICarboToken.FeeType,uint256).r (contracts/CarboToken.sol#284) 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
CarboToken.allowance(address,address).owner (contracts/CarboToken.sol#55) shadows:
- Ownable.owner() (@openzeppelin/contracts/access/Ownable.sol#35-37) (function)
CarboToken._approve(address,address,uint256).owner (contracts/CarboToken.sol#101) shadows:
- Ownable.owner() (@openzeppelin/contracts/access/Ownable.sol#35-37) (function)
Rename the local variables that shadow another component.
Additional information: link
Reentrancy in CarboToken._transfer(address,address,uint256) (contracts/CarboToken.sol#341-370):
External calls:
- _decreaseBalance(sender,t.sum,r.sum) (contracts/CarboToken.sol#347)
- callback.decreaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#56)
- _increaseBalance(recipient,t.transfer,r.transfer) (contracts/CarboToken.sol#348)
- callback.increaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#50)
- _reflect(t.rfi,r.rfi) (contracts/CarboToken.sol#353)
- callback.reflectCallback(tAmount,rAmount) (contracts/WithCallback.sol#38)
- _increaseBalance(feeAddresses.dividends,t.dividends,r.dividends) (contracts/CarboToken.sol#356)
- callback.increaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#50)
- _increaseBalance(feeAddresses.buyback,t.buyback,r.buyback) (contracts/CarboToken.sol#359)
- callback.increaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#50)
- _increaseBalance(feeAddresses.treasury,t.treasury,r.treasury) (contracts/CarboToken.sol#362)
- callback.increaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#50)
- _increaseBalance(feeAddresses.liquidity,t.liquidity,r.liquidity) (contracts/CarboToken.sol#365)
- callback.increaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#50)
State variables written after the call(s):
- _increaseBalance(feeAddresses.liquidity,t.liquidity,r.liquidity) (contracts/CarboToken.sol#365)
- _rOwned[account] = _rOwned[account].add(rAmount) (contracts/CarboToken.sol#320)
- _increaseBalance(feeAddresses.liquidity,t.liquidity,r.liquidity) (contracts/CarboToken.sol#365)
- _tOwned[account] = _tOwned[account].add(tAmount) (contracts/CarboToken.sol#322)
Reentrancy in CarboToken._transfer(address,address,uint256) (contracts/CarboToken.sol#341-370):
External calls:
- _decreaseBalance(sender,t.sum,r.sum) (contracts/CarboToken.sol#347)
- callback.decreaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#56)
- _increaseBalance(recipient,t.transfer,r.transfer) (contracts/CarboToken.sol#348)
- callback.increaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#50)
- _reflect(t.rfi,r.rfi) (contracts/CarboToken.sol#353)
- callback.reflectCallback(tAmount,rAmount) (contracts/WithCallback.sol#38)
State variables written after the call(s):
- _reflect(t.rfi,r.rfi) (contracts/CarboToken.sol#353)
- _rTotal = _rTotal.sub(rAmount) (contracts/CarboToken.sol#257)
Reentrancy in CarboToken.reflect(uint256) (contracts/CarboToken.sol#236-243):
External calls:
- _decreaseBalance(account,tAmount,rAmount) (contracts/CarboToken.sol#240)
- callback.decreaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#56)
- _reflect(tAmount,rAmount) (contracts/CarboToken.sol#241)
- callback.reflectCallback(tAmount,rAmount) (contracts/WithCallback.sol#38)
State variables written after the call(s):
- _reflect(tAmount,rAmount) (contracts/CarboToken.sol#241)
- _rTotal = _rTotal.sub(rAmount) (contracts/CarboToken.sol#257)
Reentrancy in CarboToken._burn(address,uint256) (contracts/CarboToken.sol#108-116):
External calls:
- _decreaseBalance(account,amount,rAmount) (contracts/CarboToken.sol#112)
- callback.decreaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#56)
- _decreaseTotalSupply(amount,rAmount) (contracts/CarboToken.sol#113)
- callback.decreaseTotalSupplyCallback(tAmount,rAmount) (contracts/WithCallback.sol#62)
State variables written after the call(s):
- _decreaseTotalSupply(amount,rAmount) (contracts/CarboToken.sol#113)
- _rTotal = _rTotal.sub(rAmount) (contracts/CarboToken.sol#337)
- _decreaseTotalSupply(amount,rAmount) (contracts/CarboToken.sol#113)
- _tTotal = _tTotal.sub(tAmount) (contracts/CarboToken.sol#336)
Reentrancy in CarboToken._transfer(address,address,uint256) (contracts/CarboToken.sol#341-370):
External calls:
- _decreaseBalance(sender,t.sum,r.sum) (contracts/CarboToken.sol#347)
- callback.decreaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#56)
- _increaseBalance(recipient,t.transfer,r.transfer) (contracts/CarboToken.sol#348)
- callback.increaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#50)
- _reflect(t.rfi,r.rfi) (contracts/CarboToken.sol#353)
- callback.reflectCallback(tAmount,rAmount) (contracts/WithCallback.sol#38)
- _increaseBalance(feeAddresses.dividends,t.dividends,r.dividends) (contracts/CarboToken.sol#356)
- callback.increaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#50)
- _increaseBalance(feeAddresses.buyback,t.buyback,r.buyback) (contracts/CarboToken.sol#359)
- callback.increaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#50)
State variables written after the call(s):
- _increaseBalance(feeAddresses.buyback,t.buyback,r.buyback) (contracts/CarboToken.sol#359)
- _rOwned[account] = _rOwned[account].add(rAmount) (contracts/CarboToken.sol#320)
- _increaseBalance(feeAddresses.buyback,t.buyback,r.buyback) (contracts/CarboToken.sol#359)
- _tOwned[account] = _tOwned[account].add(tAmount) (contracts/CarboToken.sol#322)
Reentrancy in CarboToken._transfer(address,address,uint256) (contracts/CarboToken.sol#341-370):
External calls:
- _decreaseBalance(sender,t.sum,r.sum) (contracts/CarboToken.sol#347)
- callback.decreaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#56)
- _increaseBalance(recipient,t.transfer,r.transfer) (contracts/CarboToken.sol#348)
- callback.increaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#50)
State variables written after the call(s):
- _increaseBalance(recipient,t.transfer,r.transfer) (contracts/CarboToken.sol#348)
- _rOwned[account] = _rOwned[account].add(rAmount) (contracts/CarboToken.sol#320)
- _increaseBalance(recipient,t.transfer,r.transfer) (contracts/CarboToken.sol#348)
- _tOwned[account] = _tOwned[account].add(tAmount) (contracts/CarboToken.sol#322)
Reentrancy in CarboToken._transfer(address,address,uint256) (contracts/CarboToken.sol#341-370):
External calls:
- _decreaseBalance(sender,t.sum,r.sum) (contracts/CarboToken.sol#347)
- callback.decreaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#56)
- _increaseBalance(recipient,t.transfer,r.transfer) (contracts/CarboToken.sol#348)
- callback.increaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#50)
- _reflect(t.rfi,r.rfi) (contracts/CarboToken.sol#353)
- callback.reflectCallback(tAmount,rAmount) (contracts/WithCallback.sol#38)
- _increaseBalance(feeAddresses.dividends,t.dividends,r.dividends) (contracts/CarboToken.sol#356)
- callback.increaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#50)
State variables written after the call(s):
- _increaseBalance(feeAddresses.dividends,t.dividends,r.dividends) (contracts/CarboToken.sol#356)
- _rOwned[account] = _rOwned[account].add(rAmount) (contracts/CarboToken.sol#320)
- _increaseBalance(feeAddresses.dividends,t.dividends,r.dividends) (contracts/CarboToken.sol#356)
- _tOwned[account] = _tOwned[account].add(tAmount) (contracts/CarboToken.sol#322)
Reentrancy in CarboToken._transfer(address,address,uint256) (contracts/CarboToken.sol#341-370):
External calls:
- _decreaseBalance(sender,t.sum,r.sum) (contracts/CarboToken.sol#347)
- callback.decreaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#56)
- _increaseBalance(recipient,t.transfer,r.transfer) (contracts/CarboToken.sol#348)
- callback.increaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#50)
- _reflect(t.rfi,r.rfi) (contracts/CarboToken.sol#353)
- callback.reflectCallback(tAmount,rAmount) (contracts/WithCallback.sol#38)
- _increaseBalance(feeAddresses.dividends,t.dividends,r.dividends) (contracts/CarboToken.sol#356)
- callback.increaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#50)
- _increaseBalance(feeAddresses.buyback,t.buyback,r.buyback) (contracts/CarboToken.sol#359)
- callback.increaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#50)
- _increaseBalance(feeAddresses.treasury,t.treasury,r.treasury) (contracts/CarboToken.sol#362)
- callback.increaseBalanceCallback(account,tAmount,rAmount) (contracts/WithCallback.sol#50)
State variables written after the call(s):
- _increaseBalance(feeAddresses.treasury,t.treasury,r.treasury) (contracts/CarboToken.sol#362)
- _rOwned[account] = _rOwned[account].add(rAmount) (contracts/CarboToken.sol#320)
- _increaseBalance(feeAddresses.treasury,t.treasury,r.treasury) (contracts/CarboToken.sol#362)
- _tOwned[account] = _tOwned[account].add(tAmount) (contracts/CarboToken.sol#322)
Apply the check-effects-interactions pattern.
Additional information: link
CarboToken.includeInRFI(address) (contracts/CarboToken.sol#223-234) has costly operations inside a loop:
- _excluded.pop() (contracts/CarboToken.sol#230)
Use a local variable to hold the loop computation result.
Additional information: link
CarboToken._rTotal (contracts/CarboToken.sol#194) 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
SafeMath.tryDiv(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#64-69) is never used and should be removed
SafeMath.tryMod(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#76-81) is never used and should be removed
SafeMath.sub(uint256,uint256,string) (@openzeppelin/contracts/utils/math/SafeMath.sol#168-177) is never used and should be removed
SafeMath.tryAdd(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#22-28) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (@openzeppelin/contracts/utils/math/SafeMath.sol#217-226) is never used and should be removed
SafeMath.div(uint256,uint256,string) (@openzeppelin/contracts/utils/math/SafeMath.sol#191-200) is never used and should be removed
Context._msgData() (@openzeppelin/contracts/utils/Context.sol#21-23) is never used and should be removed
SafeMath.mod(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#151-153) is never used and should be removed
SafeMath.tryMul(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#47-57) is never used and should be removed
SafeMath.trySub(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#35-40) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version^0.8.0 (@openzeppelin/contracts/token/ERC20/IERC20.sol#4) allows old versions
Pragma version^0.8.0 (contracts/interfaces/ICallbackContract.sol#3) allows old versions
Pragma version^0.8.0 (contracts/RecoverableFunds.sol#3) allows old versions
Pragma version^0.8.0 (contracts/interfaces/IDividendManager.sol#3) allows old versions
Pragma version^0.8.0 (contracts/WithCallback.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/security/Pausable.sol#4) allows old versions
Pragma version^0.8.0 (contracts/CarboToken.sol#3) allows old versions
solc-0.8.0 is not recommended for deployment
Pragma version^0.8.0 (@openzeppelin/contracts/utils/math/SafeMath.sol#4) allows old versions
Pragma version^0.8.0 (contracts/interfaces/ICarboToken.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/access/Ownable.sol#4) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/utils/Context.sol#4) allows old versions
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
Parameter WithCallback.setCallbackContract(address)._callback (contracts/WithCallback.sol#27) is not in mixedCase
Variable WithCallback._callbacks (contracts/WithCallback.sol#25) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable WithCallback._transferCallback(address,address,uint256,uint256,uint256,uint256).rFromAmount (contracts/WithCallback.sol#66) is too similar to WithCallback._transferCallback(address,address,uint256,uint256,uint256,uint256).tFromAmount (contracts/WithCallback.sol#66)
Variable ICallbackContract.transferCallback(address,address,uint256,uint256,uint256,uint256).rFromAmount (contracts/interfaces/ICallbackContract.sol#15) is too similar to ICallbackContract.transferCallback(address,address,uint256,uint256,uint256,uint256).tFromAmount (contracts/interfaces/ICallbackContract.sol#15)
Prevent variables from having similar names.
Additional information: link
CarboToken._liquidityAddress (contracts/CarboToken.sol#139) is never used in CarboToken (contracts/CarboToken.sol#14-372)
CarboToken._dividendsAddress (contracts/CarboToken.sol#136) is never used in CarboToken (contracts/CarboToken.sol#14-372)
CarboToken._buybackAddress (contracts/CarboToken.sol#137) is never used in CarboToken (contracts/CarboToken.sol#14-372)
CarboToken._treasuryAddress (contracts/CarboToken.sol#138) is never used in CarboToken (contracts/CarboToken.sol#14-372)
Remove unused state variables.
Additional information: link
CarboToken._symbol (contracts/CarboToken.sol#27) should be constant
CarboToken._treasuryAddress (contracts/CarboToken.sol#138) should be constant
CarboToken._liquidityAddress (contracts/CarboToken.sol#139) should be constant
CarboToken._name (contracts/CarboToken.sol#26) should be constant
CarboToken._dividendsAddress (contracts/CarboToken.sol#136) should be constant
CarboToken._buybackAddress (contracts/CarboToken.sol#137) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
retriveETH(address) should be declared external:
- RecoverableFunds.retriveETH(address) (contracts/RecoverableFunds.sol#18-20)
retrieveTokens(address,address) should be declared external:
- RecoverableFunds.retrieveTokens(address,address) (contracts/RecoverableFunds.sol#13-16)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (@openzeppelin/contracts/access/Ownable.sol#54-56)
name() should be declared external:
- CarboToken.name() (contracts/CarboToken.sol#29-31)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (@openzeppelin/contracts/access/Ownable.sol#62-65)
approve(address,uint256) should be declared external:
- CarboToken.approve(address,uint256) (contracts/CarboToken.sol#59-62)
symbol() should be declared external:
- CarboToken.symbol() (contracts/CarboToken.sol#33-35)
decimals() should be declared external:
- CarboToken.decimals() (contracts/CarboToken.sol#37-39)
Use the external attribute for functions never called from the contract.
Additional information: link
Average 30d PancakeSwap liquidity 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.
Token is deployed only at one blockchain
Average 30d PancakeSwap volume is low.
Average PancakeSwap trading volume, liqudity, number of swaps are low. Token seems to be inactive.
Token has relatively low CoinGecko rank
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Token has relatively low CoinMarketCap rank
Last post in Twitter was more than 30 days ago