Tree Defi is a leveraged-yield farming protocol built on the Binance Smart Chain. It allows yield farmers to earn higher return by opening leveraged positions. Moreover, one third of the deposit fees on our platform will be used to plant trees in real life. Our donations will have proof of purchase and will by trackable by users through the blockchain.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
TreeToken._writeCheckpoint(address,uint32,uint256,uint256) (TreeDefiToken.sol#306-324) uses a dangerous strict equality:
- nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber (TreeDefiToken.sol#316)
Don't use strict equality to determine if an account has enough Ether or tokens.
Additional information: link
BEP20.constructor(string,string).name (BEP20.sol#56) shadows:
- BEP20.name() (BEP20.sol#72-74) (function)
- IBEP20.name() (IBEP20.sol#24) (function)
BEP20.constructor(string,string).symbol (BEP20.sol#56) shadows:
- BEP20.symbol() (BEP20.sol#80-82) (function)
- IBEP20.symbol() (IBEP20.sol#19) (function)
BEP20.allowance(address,address).owner (BEP20.sol#121) shadows:
- Ownable.owner() (Ownable.sol#35-37) (function)
BEP20._approve(address,address,uint256).owner (BEP20.sol#280) shadows:
- Ownable.owner() (Ownable.sol#35-37) (function)
TreeToken.burn(uint256).totalSupply (TreeDefiToken.sol#102) shadows:
- BEP20.totalSupply() (BEP20.sol#94-96) (function)
- IBEP20.totalSupply() (IBEP20.sol#9) (function)
Rename the local variables that shadow another component.
Additional information: link
TreeToken.delegateBySig(address,uint256,uint256,uint8,bytes32,bytes32) (TreeDefiToken.sol#172-213) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(now <= expiry,TREE::delegateBySig: signature expired) (TreeDefiToken.sol#211)
Avoid relying on block.timestamp.
Additional information: link
TreeToken.getChainId() (TreeDefiToken.sol#331-335) uses assembly
- INLINE ASM (TreeDefiToken.sol#333)
Do not use evm assembly.
Additional information: link
Different versions of Solidity is used:
- Version used: ['0.6.12', '>=0.4.0', '>=0.6.0<0.8.0', '>=0.6.4']
- >=0.4.0 (BEP20.sol#3)
- >=0.6.0<0.8.0 (Context.sol#3)
- >=0.6.4 (IBEP20.sol#3)
- >=0.6.0<0.8.0 (Ownable.sol#3)
- >=0.6.0<0.8.0 (SafeMath.sol#3)
- 0.6.12 (TreeDefiToken.sol#5)
- 0.6.12 (TreeDefiToken.sol#43)
- 0.6.12 (TreeDefiToken.sol#90)
Use one Solidity version.
Additional information: link
BEP20._burnFrom(address,uint256) (BEP20.sol#294-297) is never used and should be removed
Context._msgData() (Context.sol#20-23) is never used and should be removed
SafeMath.div(uint256,uint256) (SafeMath.sol#103-105) is never used and should be removed
SafeMath.div(uint256,uint256,string) (SafeMath.sol#119-125) is never used and should be removed
SafeMath.mod(uint256,uint256) (SafeMath.sol#139-141) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (SafeMath.sol#155-158) is never used and should be removed
SafeMath.mul(uint256,uint256) (SafeMath.sol#77-89) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version>=0.4.0 (BEP20.sol#3) allows old versions
Pragma version>=0.6.0<0.8.0 (Context.sol#3) is too complex
Pragma version>=0.6.4 (IBEP20.sol#3) allows old versions
Pragma version>=0.6.0<0.8.0 (Ownable.sol#3) is too complex
Pragma version>=0.6.0<0.8.0 (SafeMath.sol#3) is too complex
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 TreeToken.mint(address,uint256)._to (TreeDefiToken.sol#95) is not in mixedCase
Parameter TreeToken.mint(address,uint256)._amount (TreeDefiToken.sol#95) is not in mixedCase
Variable TreeToken._delegates (TreeDefiToken.sol#114) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (Context.sol#21)" inContext (Context.sol#15-25)
Remove redundant statements if they congest code but offer no value.
Additional information: link
symbol() should be declared external:
- BEP20.symbol() (BEP20.sol#80-82)
decimals() should be declared external:
- BEP20.decimals() (BEP20.sol#87-89)
transfer(address,uint256) should be declared external:
- BEP20.transfer(address,uint256) (BEP20.sol#113-116)
allowance(address,address) should be declared external:
- BEP20.allowance(address,address) (BEP20.sol#121-123)
approve(address,uint256) should be declared external:
- BEP20.approve(address,uint256) (BEP20.sol#132-135)
transferFrom(address,address,uint256) should be declared external:
- BEP20.transferFrom(address,address,uint256) (BEP20.sol#149-157)
increaseAllowance(address,uint256) should be declared external:
- BEP20.increaseAllowance(address,uint256) (BEP20.sol#171-174)
decreaseAllowance(address,uint256) should be declared external:
- BEP20.decreaseAllowance(address,uint256) (BEP20.sol#190-193)
mint(uint256) should be declared external:
- BEP20.mint(uint256) (BEP20.sol#203-206)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (Ownable.sol#54-57)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (Ownable.sol#63-67)
addMinter(address) should be declared external:
- MinterRole.addMinter(address) (TreeDefiToken.sol#66-68)
removeMinter(address) should be declared external:
- MinterRole.removeMinter(address) (TreeDefiToken.sol#70-72)
renounceMinter() should be declared external:
- MinterRole.renounceMinter() (TreeDefiToken.sol#74-76)
mint(address,uint256) should be declared external:
- TreeToken.mint(address,uint256) (TreeDefiToken.sol#95-98)
burn(uint256) should be declared external:
- TreeToken.burn(uint256) (TreeDefiToken.sol#100-106)
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 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.
Token is deployed only at one blockchain
Token was delisted from CoinGecko
Additional information: link
Unable to find token on CoinMarketCap
Additional information: link
Unable to find token contract audit
Unable to find audit link on the website
Unable to find Telegram link on the website
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Token has a considerable age, but average PancakeSwap 30d trading volume is low
Unable to find Blog account (Reddit or Medium)
Unable to find Discord account