Hedgey Finance

Resonance Security94 addresses on 13 chains

Resonance Security reviewed Hedgey (Hedgey Finance) on 20 Jun 2024: 6 findings, 0 critical; 1 marked fixed, 5 acknowledged.

No open critical findings
Open the reportOpen Hedgey’s security record
Report stored on IPFS. Content hash QmVGEP1FWsVQ9QMsVce8EmL7yEYVb3rPNGKZbRSQjpcqoZ

Trustblock does not review code.

Findings11

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

SeverityOpenAcknowledgedFixed
Critical000
High000
Medium021
Low030

Marked Info by the firm. Not counted as findings.

InfoMissing Zero Value Validation Of planIdAcknowledged

The functions planBalanceOf() and planEnd() do not validate the variable planId against the Zero Value, allowing for incorrect information to be presented by the protocol. Even though a planId of 0 would most likely be invalid, the protocol can still confirm it exists even when it does not. Also it allows for divisions by 0 to occur.

InfoRedundant Code Throughout The ProtocolAcknowledged

It was observed that throughout the protocol there are multiple instances of redundant code on several accounts:Duplicated functions, e.g planBalanceOf() and planEnd();Similar functions with slight differences do not reuse code, e.g. createUnlockedCampaign() and createLockedCampaign();Similar contracts with slight differences do not use inheritance, e.g. TokenLockupPlans, VotingTokenLockupPlans, TokenVestingPlans and VotingTokenVestingPlans;These design patterns increase code complexity and do not maximize transaction gas and storage efficiency on the blockchain.

InfoRedundant Validation Of tokenAcknowledged

The function batchLockingPlans() performs the same Zero Address validation on the variable token already provided by other functions such as transferTokens(), safeIncreaseAllowance(), and createPlan().

InfoRedundant Validation Of tokenLockupAcknowledged

The function _claimUnlockedTokens() performs the same validation twice on the same variable campaign.tokenLockup as the functions who call it. The first time always occurs within if conditions, and the second time occurs on _claimUnlockedTokens().

InfoUnnecessary Usage Of Variable validAcknowledged

The function validateEnd() defines an output bool variable valid that identifies whether the execution of this function was successful. The usage of this variable is unnecessary since it is always set to true or the entire transaction reverts through the require statements.

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.

Part of Hedgey’s security record

Hedgey
Audits5 audits by 2 firmsLast audit Nov 2024, by Resonance Security.
Critical findingsNo open critical findingsAcross 5 reports.
IncidentIncident 18 Apr 2024Source: De.Fi incident database.
Open Hedgey’s security record

Security firm

Resonance Security

27 projects reviewed · 57 reports · latest Dec 2025

See Resonance Security’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