CertiK reviewed GroveCoin on 11 Jan 2023: 8 findings, 0 critical; 2 acknowledged, 6 open.
Report hosted on skynet.certik.com.
Trustblock does not review code.
Statuses are the security firm’s own, from its report.
| Severity | Open | Acknowledged | Fixed |
|---|---|---|---|
| Critical | 0 | 0 | 0 |
| High | 0 | 2 | 0 |
| Medium | 0 | 0 | 0 |
| Low | 6 | 0 | 0 |
The functions which are never called internally within the contract should have external visibility for gas optimization. ```solidity=319 function renounceOwnership() public virtual onlyOwner { ``` --- ```solidity=520 function name() public view virtual override returns (string memory) { ``` --- ```solidity=528 function symbol() public view virtual override returns (string memory) { ``` --- ```solidity=545 function decimals() public view virtual override returns (uint8) { ``` ```solidity=876 function decimals() public view override returns (uint8) { ``` --- ```solidity=552 function totalSupply() public view virtual override returns (uint256) { ``` --- ```solidity=559 function balanceOf(address account) public view virtual override returns (uint256) { ``` --- ```solidity=571 function transfer(address to, uint256 amount) public virtual override returns (bool) { ``` ```solidity=905 function transfer(address to, uint256 amount) public override returns (bool) { ``` --- ```solidity=594 function approve(address spender, uint256 amount) public virtual override returns (bool) { ``` --- ```solidity=616 function transferFrom( ``` ```solidity=880 function transferFrom( ``` --- ```solidity=639 function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { ``` --- ```solidity=659 function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { ``` --- ```solidity=923 function ExcludeFromBlackList(address account) public onlyOwner() { ``` --- ```solidity=927 function IncludeInBlackList(address account) public onlyOwner() { ``` --- ```solidity=931 function getRestriction(address account) public view onlyOwner() returns (Restriction memory) { ``` --- ```solidity=935 function deleteRestriction(address account) public onlyOwner() { ``` --- ```solidity=939 function addRestriction(address account, uint256 delay, uint256 amount) public onlyOwner() { ``` --- ```solidity=962 function setTax(address account, uint256 tax) public onlyOwner() { ``` --- ```solidity=967 function getTax() public view onlyOwner() returns (address account, uint256 tax){ ``` --- ```solidity=971 function deleteTax() public onlyOwner() { ```
The variable `_tax` does not have reasonable boundaries, so they can be given arbitrary values after deploying.
The current logic of the function `checkRestriction` will block an account with restrictions, to receive tokens from the same `from` address in a period of time. It will also restrict the amount transferring each time.
Functions that update state variables should emit relevant events as notifications.
Addresses should be checked before assignment or external call to make sure they are not zero addresses.
The `SafeMath` library is used unnecessarily. With Solidity compiler versions 0.8.0 or newer, arithmetic operations will automatically revert in case of integer overflow or underflow. ```solidity=18 library SafeMath { ``` - An implementation of `SafeMath` library is found. --- ```solidity=853 using SafeMath for uint256; ``` - `SafeMath` library is used for `uint256` type in `Token` contract. ```solidity=977 return _amount.mul(_tax).div(10**2); ``` - `SafeMath.mul` is called in `calculateTaxFee` function of `Token` contract. *Note: Only a sample of 2 `SafeMath` library usage in this contract (out of 3) are shown above.*
| Address | Chain | Source code |
|---|---|---|
| 0xf338…290c0xf33893de6eb6ae9a67442e066ae9abd228f5290c | Chain: Ethereum | Source code: Verified source |
1,045 projects reviewed · 1,376 reports · latest May 2025
See CertiK’s auditsSomething wrong on this page? A missing report, a wrong date, a finding that was fixed since. Tell us and we check it against its source.
Tell us