Q1 2026 Security & Compliance Report44 incidents, $482M in losses, insights from 11 industry leaders.
Read the report

Audit name:

[SCA] Haycen | Yield-Claim | Feb2026

Date:

Mar 4, 2026

Table of Content

Introduction
Audit Summary
System Overview
Potential Risks
Findings
Appendix 1. Definitions
Appendix 2. Scope
Appendix 3. Additional Valuables
Disclaimer

Want a comprehensive audit report like this?

Introduction

We express our gratitude to the Haycen team for the collaborative engagement that enabled the execution of this Smart Contract Security Assessment.

Haycen is a yield reward distribution system where tokens are deposited and allocated to recipients who can claim them at their leisure.

Document

NameSmart Contract Code Review and Security Analysis Report for Haycen
Audited BySeher Saylik
Approved ByKornel Światłowski
Websitehttps://www.haycen.com
Changelog03/03/2026 - Preliminary Report
04/03/2026 - Final Report
PlatformEthereum Mainnet, Avalanche C-Chain
LanguageSolidity
TagsCentralized, Yield distribution
Methodologyhttps://docs.hacken.io/methodologies/smart-contracts

Review Scope

Repositoryhttps://github.com/Haycen/yield-claim-smart-contract
Commit6e5135d8c6781d150c5407a65fcce36b2a31775a
Retest621c8df0d65a2a656c2ef5cbd2e993d9b777e322

Audit Summary

2Total Findings
1Resolved
1Accepted
0Mitigated

The system users should acknowledge all the risks summed up in the risks section of the report

{Finding_Table?columns=title,severity,status&setting.filter.type=Vulnerability}

Documentation quality

  • Functional requirements are provided, and NatSpec is sufficient.

  • Technical description is provided.

Code quality

  • The development environment is configured.

Test coverage

Code coverage of the project is 88.52% (branch coverage).

  • Deployment and basic user interactions are covered with tests.

System Overview

YieldClaim is a yield reward distribution system with the following contracts:

YieldClaim — Upgradeable (UUPS) contract that holds whitelisted ERC‑20 tokens, tracks per-recipient allocations, and lets recipients claim. Tokens are deposited by a designated depositor; a yield master increases or decreases allocations per recipient. Recipients claim allocated amounts at any time; a withdrawer can withdraw unallocated tokens.

Privileged roles

  • The owner of YieldClaim can upgrade the implementation (UUPS), pause and unpause, add/remove tokens, set the depositor, withdrawer, and yield master, and initiate or cancel a two-step ownership transfer; the owner is therefore able to change critical behavior and role addresses at will.

  • The depositor is the only address that can deposit whitelisted tokens into the contract.

  • The withdrawer is the only address that can withdraw unallocated tokens (for any token), and can thereby recover funds sent by mistake or left after a token is delisted.

  • The yield master is the only address that can increase or decrease allocations (single or batch); who receives how much yield is determined off-chain and applied on-chain by this role, so the yield master has full control over allocation amounts and recipients within available balance.

Potential Risks

Rebasing tokens must never be whitelisted for this system because their balances can change automatically without transfers, breaking the core invariant that recorded allocations remain covered by the contract’s actual balance and potentially causing claims to revert and funds to become stuck—an incompatibility the client explicitly acknowledged and documented.

The logic that decides who receives yield and how much is not implemented on-chain: the YieldClaim contract does not encode any rules, formulas, or constraints for allocations and only allows the YieldMaster role to call increaseAllocation / decreaseAllocation with arbitrary token, amount, and recipient. As a result, allocation and deallocation are fully centralized—whoever controls the YieldMaster can at any time assign or remove entitlements for any address and any amount (within contract balance limits), with no on-chain accountability, transparency, or checks beyond the contract’s balance and whitelist, so users must trust the operator not to misuse this power.

When a token is delisted, the protocol can still reduce or remove users’ allocations, while users cannot claim and no new allocations can be added. Entitlements can therefore be decreased or zeroed with no way for users to withdraw until the token is re-whitelisted.

The owner can pause the contract in a way that prevents users from claiming their allocated tokens for an indefinite period, effectively locking user funds.

The project is fully or partially centralized, introducing single points of failure and control. This centralization can lead to vulnerabilities in decision-making and operational processes, making the system more susceptible to targeted attacks or manipulation.

The digital contract architecture relies on administrative keys for critical operations. Centralized control over these keys presents a significant security risk, as compromise or misuse can lead to unauthorized actions or loss of funds.

The project's contracts are upgradable, allowing the administrator to update the contract logic at any time. While this provides flexibility in addressing issues and evolving the project, it also introduces risks if upgrade processes are not properly managed or secured, potentially allowing for unauthorized changes that could compromise the project's integrity and security.

The contract suite allows for immediate upgrades without a mandatory review or waiting period, increasing the risk of rapid deployment of malicious or flawed code, potentially compromising the system's integrity and user assets.

Findings

Code
Title
Status
Severity
F-2026-1516Users With Existing Allocations Cannot Claim After Token Is Delisted
accepted

Low
F-2026-1516Unchecked Arithmetic Could Be Used To Save gas
fixed

Observation
1-2 of 2 findings

Identify vulnerabilities in your smart contracts.

Appendix 1. Definitions

Severities

When auditing smart contracts, Hacken is using a risk-based approach that considers Likelihood, Impact, Exploitability and Complexity metrics to evaluate findings and score severities.

Reference on how risk scoring is done is available through the repository in our Github organization:

Severity

Description

Critical
Critical vulnerabilities are usually straightforward to exploit and can lead to the loss of user funds or contract state manipulation.

High
High vulnerabilities are usually harder to exploit, requiring specific conditions, or have a more limited scope, but can still lead to the loss of user funds or contract state manipulation.

Medium
Medium vulnerabilities are usually limited to state manipulations and, in most cases, cannot lead to asset loss. Contradictions and requirements violations. Major deviations from best practices are also in this category.

Low
Major deviations from best practices or major Gas inefficiency. These issues will not have a significant impact on code execution.
  • Severity

    Critical

    Description

    Critical vulnerabilities are usually straightforward to exploit and can lead to the loss of user funds or contract state manipulation.

    Severity

    High

    Description

    High vulnerabilities are usually harder to exploit, requiring specific conditions, or have a more limited scope, but can still lead to the loss of user funds or contract state manipulation.

    Severity

    Medium

    Description

    Medium vulnerabilities are usually limited to state manipulations and, in most cases, cannot lead to asset loss. Contradictions and requirements violations. Major deviations from best practices are also in this category.

    Severity

    Low

    Description

    Major deviations from best practices or major Gas inefficiency. These issues will not have a significant impact on code execution.

Potential Risks

The "Potential Risks" section identifies issues that are not direct security vulnerabilities but could still affect the project’s performance, reliability, or user trust. These risks arise from design choices, architectural decisions, or operational practices that, while not immediately exploitable, may lead to problems under certain conditions. Additionally, potential risks can impact the quality of the audit itself, as they may involve external factors or components beyond the scope of the audit, leading to incomplete assessments or oversight of key areas. This section aims to provide a broader perspective on factors that could affect the project's long-term security, functionality, and the comprehensiveness of the audit findings.

Appendix 2. Scope

The scope of the project includes the following smart contracts from the provided repository:

Scope Details

Repositoryhttps://github.com/Haycen/yield-claim-smart-contract
Commit6e5135d8c6781d150c5407a65fcce36b2a31775a
Final621c8df0d65a2a656c2ef5cbd2e993d9b777e322
WhitepaperN/A
Requirementshttps://github.com/Haycen/yield-claim-smart-contract/blob/master/documentation/AUDIT_BRIEF.md
Technical RequirementsN/A

Assets in Scope

contracts
YieldClaim.sol - contracts › YieldClaim.sol

Appendix 3. Additional Valuables

Additional Recommendations

The smart contracts in the scope of this audit could benefit from the introduction of automatic emergency actions for critical activities, such as unauthorized operations like ownership changes or proxy upgrades, as well as unexpected fund manipulations, including large withdrawals or minting events. Adding such mechanisms would enable the protocol to react automatically to unusual activity, ensuring that the contract remains secure and functions as intended.

To improve functionality, these emergency actions could be designed to trigger under specific conditions, such as:

  • Detecting changes to ownership or critical permissions.

  • Monitoring large or unexpected transactions and minting events.

  • Pausing operations when irregularities are identified.

These enhancements would provide an added layer of security, making the contract more robust and better equipped to handle unexpected situations while maintaining smooth operations.

Frameworks and Methodologies

This security assessment was conducted in alignment with recognised penetration testing standards, methodologies and guidelines, including the NIST SP 800-115 – Technical Guide to Information Security Testing and Assessment , and the Penetration Testing Execution Standard (PTES) , These assets provide a structured foundation for planning, executing, and documenting technical evaluations such as vulnerability assessments, exploitation activities, and security code reviews. Hacken’s internal penetration testing methodology extends these principles to Web2 and Web3 environments to ensure consistency, repeatability, and verifiable outcomes.

Disclaimer