CertiK reviewed dHEDGE (dHEDGE - Ⅳ) on 1 Dec 2022: 17 findings, 0 critical; 12 marked fixed, 3 acknowledged, 2 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 | 1 |
| Medium | 0 | 1 | 0 |
| Low | 2 | 0 | 11 |
In the contract `DhedgeStakingV2Storage` the role `_owner` has authority over the functions shown in the diagram below. Any compromise to the `_owner` account may allow the hacker to take advantage of this authority and change `maxVDurationTimeSeconds`, `dhtCap`, `rewardStreamingTime`, `tokenUriGenerator` and several attributes of RewardParams struct such as: `stakeDurationDelaySeconds`, `maxDurationBoostSeconds`, `maxPerformanceBoostNumerator`, `stakingRatio` and `emissionsRate`. Furthermore he can gain the ability to configure new pools. 
Since `DhedgeStakingV2Storage` and `DhedgeStakingV2` are upgradeable contracts, the owner can upgrade the contract without the community's commitment. If an attacker compromises the account, he can change the implementation of the contract and drain tokens from the contract.
Since the implementation of `IPoolLogic.tokenPrice()` is unknown, it is not possible to rely on the value returned by that function. There is the possibility of price manipulations by attackers and thus all the operations involving this function call may be affected. For example: - An attacker manipulates the token price by lowering it considerably. - In `unstakePoolTokens()` the manipulated value is assigned to `tokenPriceFinish`. For example, consider a value lower than `stake.stakeStartTokenPrice`. - `stake.reward` is assigned the amount computed by `calculateDhtRewardAmount()`, which under these assumptions can always be forced to zero. This occurs if inside `calculateDhtRewardAmount()` the computed value of `performanceMultiplier` is zero, which happens when `tokenPriceFinish` is less than or equal to `tokenPriceStart`.
The report names a repository or files. Open the report to see its scope.
Repository and files the report names (6)
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