CertiK reviewed SHANTI on 7 Mar 2023: 4 findings, 0 critical; 1 acknowledged, 3 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 | 1 | 0 |
| Medium | 0 | 0 | 0 |
| Low | 3 | 0 | 0 |
In the current implementation, the function `transferFrom()` does not follow the Checks-Effects-Interactation standard, as the transfer is completed before the allowances are checked. While this does not create any security issues in this implementation, it does not follow the standard and thus is only informational.
The contract is serving as the underlying entity to interact with a third party ServicePayer. The scope of the audit treats third party entities as black boxes and assume their functional correctness. However, in the real world, third parties can be compromised and this may lead to lost or stolen assets. ```solidity=577 constructor(address payable receiver, string memory serviceName) payable { ``` - The function `ServicePayer.constructor` interacts with third party contract with `IPayable` interface via `receiver`.
The following function can use unchecked blocks to save gas on each call: - `decreaseAllowance()`: `_approve` can be put inside of an unchecked block to save gas due to the require statement preventing overflow and underflow. - `_transfer()`: the change in values in `_balances[sender]` and `_balances[recipient]` can be put inside of an unchecked block due to it not being able to overflow or underflow as `_totalSupply` cannot pass the max value of uint256. - `_mint()`: the change in value inside of `_balances[account]` can be put inside of an unchecked block due to it not being able to overflow or underflow as `_totalSupply` cannot pass the max value of uint256. - `_burn()`: the amount burned inside of `_balances[account]` and `_totalSupply` can be put inside of an unchecked block due to the require statement preventing overflow and underflow.
| Address | Chain | Source code |
|---|---|---|
| 0xd77f…34570xd77fef555f2595f60c0b2289e770781a71053457 | Chain: BNB Chain | Source code: Verified source |
1,044 projects reviewed · 1,375 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