Security review · September 2026
StakedHypeEscrow for Valantis
Guardian's review of StakedHypeEscrow for Valantis, published September 2026. The report records 1 finding, including 1 informational.
See how Guardian runs an AMM and DEX smart contract audit.
- Published
- Review window
- September 21 to 22, 2026
- Language
- Solidity
- Chains
- Ethereum, Hyperliquid
- Sector
- DEXs and AMMs
- 0 Critical
- 0 High
- 0 Medium
- 0 Low
- 1 Informational
Scope
-
ValantisLabs/sthype-contracts
8eee622070c497da2875
1 file in scope · 386 nSLOC
| File | nSLOC | Lines |
|---|---|---|
src/StakedHypeEscrow.sol | 386 | 639 |
Findings 1
-
I-01 Informational quoteEntry NatSpec calls units raw shares Documentation Resolved
Description
The
quoteEntryNatSpec says the first beneficiary's “raw shares” must represent at least one nominal stHYPE wei. The first-deposit check actually passes the returnedownershipUnitstosharesToBalance(StakedHypeEscrow.sol:300-304). These are different accounting types, although their numeric values coincide for the beneficiary on first issuance because the initial pool price is one raw share per unit. The current check therefore works as intended; the comment should name the value it checks so readers do not apply the same wording to later deposits, where the price can differ.Recommendation
Change the
quoteEntry@devsentence to say that the first deposit checks whether the returned beneficiaryownershipUnitsconvert to a positive nominal stHYPE balance. No runtime change is needed.Remediation Link to I-01
No findings match.
More from Valantis
Put your code through the same review.
This review started with a conversation about scope. Tell us what you are building and we will plan yours with you.