dHEDGE - Ⅳ

CertiKFiles named in the report

CertiK reviewed dHEDGE (dHEDGE - Ⅳ) on 1 Dec 2022: 17 findings, 0 critical; 12 marked fixed, 3 acknowledged, 2 open.

No open critical findings
Open the reportOpen dHEDGE’s security record

Report hosted on skynet.certik.com.

Trustblock does not review code.

Findings17

Statuses are the security firm’s own, from its report.

SeverityOpenAcknowledgedFixed
Critical000
High021
Medium010
Low2011
HighCentralization Risks in DhedgeStakingV2Storage.soAcknowledged

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. ![](https://accelerator-tasks-prod.acc.corp.certik.com/4ec0a1d3188b470984c50b8e8557b534/diagrams/centralization_DhedgeStakingV2Storage-DhedgeStakingV2Storage-_owner.svg)

HighCentralized Control of Contract UpgradeAcknowledged

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.

MediumPotential Token Price ManipulationAcknowledged

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`.

Contracts in scope

No deployed address is recorded for this audit.

The report names a repository or files. Open the report to see its scope.

Repository and files the report names (6)

  • contracts/stakingv2/Base64.sol
  • contracts/stakingv2/DhedgeStakingV2.sol
  • contracts/stakingv2/DhedgeStakingV2VDHTCalculator.sol
  • contracts/stakingv2/DhedgeStakingV2RewardsCalculator.sol
  • contracts/stakingv2/DhedgeStakingV2Storage.sol
  • contracts/stakingv2/interfaces/IDhedgeStakingV2.sol

Part of dHEDGE’s security record

dHEDGE
Audits1 audit by 1 firmLast audit Dec 2022, by CertiK.
Critical findingsNo open critical findingsIn 1 report.
Open dHEDGE’s security record

Security firm

CertiK

1,044 projects reviewed · 1,375 reports · latest May 2025

See CertiK’s audits

Something 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