HeyElsa Staking

HeyElsa Staking Smart Contract Audit Report

Share
Share
BaseBase
Onchain Agents / AIDeFi Staking
BaseBase
Onchain Agents / AIDeFi Staking

QuillAudits audited the HeyElsa Staking smart contracts on Base between Jan 17, 2026 and Jan 20, 2026. The audit found 9 issues: 1 high, 4 medium, 4 informational, of which 7 resolved and 2 acknowledged.

kyc
KYC VerificationQuillAudits Verified
icon
kyc
Verified ContractsContract Verification Status
icon
kyc
Vigilant SquadQuillAudits Multilayered Audit
icon

Project Description

This contract allows holders of the HeyElsa token to stake tokens for rewards in multiple tiers with differing rewards. There is a slashing penalty for users who withdraw their stakes before the expiry period.

Timeline

S1
Jan 17, 2026
IA
Jan 19, 2026
S2
Jan 20, 2026

Scope of Audit

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

Methodology: the QuillAudits smart contract audit process.

icon
speedometer
0
50%
60%
70%
90%
100%
98.0%
QUILLAUDITS SCORE
Remediation Score100
Operational Resilience73
Governance & Centralization70
Tests, Coverage & Doc84

Critical

High

Medium

Low

Informational

open00000
acknowledged00002
partially resolved00000
resolved01402
HeyElsa Staking

HeyElsa Staking

High Severity Issues

Frontrunnable Stake Index Reordering Can Cause Unintended Early-Unstake Penalties

Resolved
arrow-right
Description

The staking system relies on user-supplied array indices to identify specific stake positions during withdrawal via unstake(uint256 stakeIndex). However, the cleanupInactiveStakes(address) function can be called by any external user and performs in-place array compaction by shifting active stakes forward and removing inactive ones.
Because cleanupInactiveStakes() mutates the order of userStakes[account], an attacker can front-run a user’s unstake() transaction and trigger a reordering of stake indices. As a result, the index originally intended by the user may now reference a different active stake with different maturity conditions causing an unintended early-unstake penalty and loss of principal.

Contract

contracts/ElsaStaking.sol

Recommendation

Limit calls to the stake owner (msg.sender == account).

Medium Severity Issues

Informational Issues

Appendix

Disclaimer

HeyElsa Staking

HeyElsa Staking

High Severity Issues
Medium Severity Issues
Informational 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