Yieldra

Yieldra Smart Contract Audit Report

Share
Share
EVMEVM
DeFi Staking
EVMEVM
DeFi Staking

QuillAudits audited the Yieldra smart contracts on EVM between Oct 27, 2025 and Nov 11, 2025. The audit found 4 issues: 2 critical, 1 medium, 1 low, of which 1 resolved and 3 acknowledged.

Project Description

Note: The issues’ status marked as “Acknowleged” are design intended and not a bug as per the Yieldra’s team

The YieldraStaking Contract is an epoch-based staking system that allows users to lock a single stake per address to earn rewards from a funded reward pool, with each epoch lasting seven days. Rewards are distributed based on a fixed percentage (rewardPerEpochBPS) of the remaining pool, and staking power grows exponentially with the chosen duration, calculated as amount * (1 + r)^epochLength. A small deposit fee and early-unstake penalties are split between the protocol and treasury, incentivizing longer commitments. Users can claim rewards only for completed epochs, and all transfers use SafeERC20 with ReentrancyGuard protection. The owner manages reward funding, treasury updates, and can retire the system by refunding unallocated rewards.

Timeline

S1
Oct 27, 2025
IA
Nov 5, 2025
S2
Nov 11, 2025

Scope of Audit

The scope of this Audit was to analyze the Yieldra  Smart Contracts for quality, security, and correctness.

Methodology: the QuillAudits smart contract audit process.

speedometer
0
50%
60%
70%
90%
100%
96.4%
AUDIT SCORE
icon

Critical

High

Medium

Low

Informational

open00000
acknowledged10110
partially resolved00000
resolved10000

Critical Severity Issues

Epoch Snapshot Mutation During Unstake Causes Reward Over-Distribution

Acknowledged
arrow-right
Description

The unstake() and unstakeWithPenalty() functions incorrectly modify the eligiblePowerRay of an already-initialized epoch when users exit their positions. This violates a core protocol invariant that epoch snapshots must be immutable once set. By reducing the eligible power denominator after rewards have been allocated, the contract inadvertently inflates the reward share for remaining stakers, leading to systematic over-distribution of rewards.

Contract

contracts/YieldraStaking.sol

Recommendation

Preserve Epoch Snapshot Immutability and remove all code that modifies eligiblePowerRay after an epoch has been initialized.

Reward Over-Distribution Due to Power Calculation with Updated Stake

Resolved
arrow-right
Description

The increaseStake() function allows users to add more tokens to their existing stake and increases their staking power accordingly. However, a critical flaw in the reward calculation logic allows users to claim inflated rewards for past epochs using their updated (increased) power instead of their historical power at the time those epochs occurred.

Contract

contracts/YieldraStaking.sol

Recommendation

Modify increaseStake() to settle the current ongoing epoch before updating the user's power or Maintain a historical record of each user's power across epochs

Medium Severity Issues

Low Severity Issues

Appendix

Disclaimer

Yieldra

Yieldra

Critical Severity Issues
Medium Severity Issues
Low Severity Issues
Appendix
Disclaimer
View Report PDF

Get an Audit done today for your Smart Contract

Join 1500+ leaders who secured themselves from losing Billion Dollars

cta-banner
cta-banner-bgcta-banner-bg-mobile

Related audits

WE SECURE EVERYTHING YOU BUILD.

From day-zero risk mapping to exchange-ready audits, QuillAudits helps projects grow with confidence. Smart contracts, dApps, infrastructure, compliance: secured end to end.

QuillAudits Logo


ISO 27001Circle Alliance Program
Uniswap FoundationAethiropt-collectivePolygon SPNBNB Chain Kickstart

All Rights Reserved. © 2026. QuillAudits - LLC