A structured note is a vault with an end date. StructuredVault splits each deposit between an LPVault and a second sleeve, and after maturity it unwinds everything back to its asset. In Income mode the second sleeve is a long perp position run off chain, and the upside is capped; in Protected mode it is a reserve token bought through one Uniswap pool, which puts a floor under the downside. This chapter explains how a note is built, what it pays, how you leave it and where the floor stops protecting you.
- A note has a fixed term and one asset. The notes Elyra deploys are named in the deployment manifest and listed on Earn with their split, term and maturity.
- Leaving before maturity costs
50 bps, and the previews already show the amount after the fee. After maturity there is no fee, and anyone can callsettleonce to turn the whole note back into its asset. - The Protected floor is arithmetic on a reserve sleeve bought through a Uniswap pool, measured in the note's asset, not a promise from anyone.
- A Protected note's LP slice sits in a hedged vault and follows it: while that vault holds deposits, the note's deposits revert too. Exits never wait on it.
- An Income note's long has no on-chain path to Hyperliquid margin, so the app lists Income notes as "Coming soon" and they take no deposits.
Two modes, one split
sleeveBps is the share of every deposit that goes to the mode's own sleeve. The rest goes to the other one.
In Income, the sleeveBps share goes into the LP vault and the rest stays in the note as idle asset, which the contract treats as collateral for a long the hedger runs off chain. In Protected, the sleeveBps share is swapped to the reserve token through the asset/reserve pool and the rest goes into the LP vault.
A note can sit on a hedged vault and use its ordinary deposit and redeem, so the LP vault's price check applies to the note's money too, and its pause to the note's deposits: a pool off its mean makes the note's deposit or exit revert, and a hedged vault whose deposits wait makes the note's deposit revert. The hedged vault's exits never wait, so neither do the note's.
Income notes
An Income note's long is backed by the share kept idle in the note, but nothing moves that collateral to Hyperliquid: StructuredVault has no funder and no funding call. Running one needs a bounded path into a dedicated funder's Hyperliquid account, like fundHedge, and a hedger leg that trades the long and calls reportSleeve. Until then an Income note is created with a cap of 0: maxDeposit() reads zero and deposit and mint revert CapExceeded. A cap never changes, so opening an Income note means creating a new one through VaultFactory.
What a note is worth
totalAssets() is the idle asset, plus the note's LP shares at lpVault.convertToAssets, plus the second sleeve: the reserve token valued at the pool's TWAP for Protected, or for Income the sleeve equity at the lower of the reported and the believed figure (see Reporting the Income sleeve).
A deposit checks, in order, that the note has not matured (Matured), that deposits are not waiting (HedgePaused_) and, on a Protected note, that the reserve pool passes its price check, and then that the cap, if any, has room (CapExceeded). maxDeposit() returns zero after maturity and while deposits wait, type(uint256).max for a note with no cap, and the room under the cap otherwise. Withdrawals never check the pause.
The payoff at maturity
The chart draws both payoffs per unit deposited, against s, the underlying's price at maturity as a multiple of its price at deposit.
Both curves value the LP sleeve as √s, what a full-range position is worth after a price move of s.
income = sleeve × (√s + feeYield) + (1 − sleeve) × min(s, 1.5)
protected = sleeve + (1 − sleeve) × √s
In Income, the long stops gaining above 1.5x (PAYOFF_CAP_MULT_X18); that cap is the price of the fee income. In Protected, the first term does not depend on s at all, which is where the floor comes from.
The contract's payoffCurve(spotMultiplierX18) computes the same formulas as packages/core/src/payoff.ts with feeYield pinned to zero, because fees already sit in the LP sleeve's share price. The reserve sleeve is USDC, which pays no yield, so the Protected floor is the sleeve itself on any date. contracts/fixtures/payoff.json pins eight points of each curve for comparing the two.
For an 80 / 20 Income note and an 85 / 15 Protected note, the contract's curve gives:
| Price multiple | Income (80 / 20) | Protected (85 / 15) |
|---|---|---|
0.25x | 0.450 | 0.925 |
0.5x | 0.666 | 0.956 |
1x | 1.000 | 1.000 |
1.5x | 1.280 | 1.034 |
2x | 1.431 | 1.062 |
The Protected floor here is 0.85, the reserve sleeve itself.
Leaving the note
You can withdraw at any time. Before maturity, EARLY_EXIT_BPS (50, 0.5 %) goes to the FeeRouter, because an early exit unwinds part of a sleeve at that minute's prices and the fee keeps that cost off the holders who stay. The fee is built into the ERC-4626 views:
previewRedeem(shares)returns the gross value lessceil(gross × 50 / 10 000).previewWithdraw(assets)returns the shares forassets + ceil(assets × 50 / 9 950), sowithdraw(assets)really paysassetsand the fee comes on top.maxWithdraw(owner)ispreviewRedeemof the owner's whole balance.
After maturity the fee is zero and the views say so.
A partial exit pays from idle asset first, then redeems LP shares and, on a Protected note, sells the reserve token, each in proportion to the shortfall. The Income perp sleeve is off chain, so an exit larger than the rest of the note reverts Shortfall. If your shares are the whole supply, the note unwinds everything, takes the fee from the gross balance and pays you the rest; redeem() returns what was paid.
Settling at maturity
settle() unwinds everything once the date has passed: it redeems every LP share the note holds, sells all its reserve token under the price check and emits Settled(assetsOut). Anyone can call it, once (NotMatured before the date, AlreadySettled after the first call). The note's own pause does not block it, because it prices no shares. It can still revert, for instance while the LP vault's pool or the reserve pool is off its mean, and can be retried later. After settlement the note holds only its asset, and no exit depends on the reserve pool or the LP vault again.
The reserve pool
A Protected note buys, sells and values its reserve token through one Uniswap pool, so that pool is treated as an oracle. Every deposit, every withdrawal while the note holds the reserve token, and every settlement first runs TwapGuard.check on it: at least 10 min of history, and spot within 3 % of the mean. VaultFactory grows the pool's observation ring when the note is created.
The reserve sleeve is valued at the TWAP, net of the pool fee it costs to sell, so pushing spot buys nobody a cheaper entry. Each swap's floor is 100 bps (1 %) under the TWAP quote, because a floor taken from a spot the caller just set bounds nothing. Once the note holds no reserve token, in practice after settle, the check is skipped. An Income note has no reserve pool.
Reporting the Income sleeve
The hedger reports the Income sleeve with reportSleeve(unrealizedPnlUsd, equityUsd, asOf). equityUsd is the sleeve's excess equity, what the perp has earned on top of the collateral, because the collateral never left the note and counting it again would double it. The value is unsigned: a losing sleeve reports zero, and the loss shows up only when the collateral comes back short.
The report runs the hedged vault's code, HedgeFunding.reportSleeve, so the hedger key moves the share price only inside the same bounds. Only the hedger may call it (NotHedger); asOf must be after the last report and not in the future (StaleReport); and reports come at least 5 minutes apart in block time (ReportTooSoon). The note keeps two figures: the equity as reported, always stored, and the equity it believes.
collateral = the note's idle asset, in USD through assetUsdFeed
anchor = the believed equity at the first report of each hour
step = (anchor + collateral) × maxEquityJumpBps / 10 000
believed = reported, clamped to anchor ± step,
and to SLEEVE_CEILING_BPS (5 000) of collateral
The collateral in the band is what lets an excess equity of zero grow, and a drop to zero land: from the ceiling, in at most four hours. The ceiling is the upside the 1.5x payoff cap leaves the long. HedgePaused("jump") or HedgePaused("ceiling") marks the two figures parting, HedgeResumed() their meeting again, and HedgeBelieved(equityUsd, anchorUsd) records each believed figure.
Exits value the sleeve at the lower of the two figures, and at zero once the last report is older than maxHedgeAge or the feed does not answer, so a stale or inflated report cannot be cashed out. Deposits wait (paused(), HedgePaused_ on deposit and mint) while the two figures differ, while the report is stale and while the feed is silent for a sleeve worth more than zero. Withdrawals and redeems never wait. A note never reported on is not paused and counts no sleeve; one whose last report said zero still goes stale. The note has no funder and no owner, so there is no setHedger and no acceptReport: its hedger is fixed at creation. On a Protected note the call reverts BadSleeve, so the hedger key holds no pause over it.
The equity converts to the asset through assetUsdFeed, Elyra's price feed for the asset, or one for one when the feed is unset for a 6-decimal USD asset such as USDC; a bad or stale feed values the sleeve at zero.
What "protected" does not cover
The floor also leaves out the LP sleeve, which falls with √s. And the note is measured in its own asset, so it is protected in that asset's terms, not necessarily in dollars.
Reference
Settings
| Name | Allowed | Default | Effect |
|---|---|---|---|
asset | the LP vault asset | No default | Must equal lpVault.asset(). |
mode | Income or Protected | No default | Which second sleeve the note runs. |
sleeveBps | 1 - 9999 bps | No default | Share of each deposit for the mode’s own sleeve: the LP vault for Income, the reserve token for Protected. |
maturity | in the future unix s | No default | After it: no deposits, no fee, settle allowed. |
lpVault | LPVault or HedgedLPVault | No default | The LP sleeve. |
reserve token / pool | token / asset-reserve pool | No default | Protected only. |
assetUsdFeed | Elyra's feed or zero | No default | Converts reported sleeve equity; zero means 1:1 for a USD asset. |
hedger | address | No default | The only caller of reportSleeve. |
cap | asset units, or type(uint256).max | No default | Deposit cap. Cannot change. 0 for an Income note. |
maxHedgeAge | uint32 seconds | 1 h | Report age after which exits value the sleeve at zero and deposits wait. |
maxEquityJumpBps | uint16 bps | 1500 | The band each hour's believed equity moves in, in bps of the anchor plus the collateral. |
sleeveConfig() returns (maxAge, maxJumpBps, reportWindow, minReportInterval): the staleness bound, the band, the hour the anchor rolls over and the 5 minutes between reports. sleeveState() returns (unrealizedPnlUsd, equityUsd, asOf, isPaused, reportedEquityUsd, anchorUsd, anchorAt), with equityUsd the believed figure. SLEEVE_CEILING_BPS (5 000) is a constant.
Reverts and events
| Revert | Raised by | Meaning |
|---|---|---|
Matured | initialize, deposit, mint | A maturity not in the future, or a deposit on or after the date. |
HedgePaused_ | deposit, mint | Deposits wait: the reported and believed sleeve figures differ, the report is stale or the feed is silent. |
CapExceeded, ZeroShares | deposit, mint | Over the cap, or no shares to mint. |
Shortfall | withdraw, redeem | The on-chain sleeves cannot raise the amount. |
NotMatured, AlreadySettled | settle | Before the date, or a second call. |
NotHedger, StaleReport | reportSleeve | Wrong caller, or an asOf in the future or not after the last report. |
ReportTooSoon | reportSleeve | Less than 5 minutes of block time since the last report. |
BadSleeve | initialize, reportSleeve | A sleeveBps of 0 or 10 000 and up, or a report on a Protected note. |
NotAsset, AlreadyInitialized | initialize | The LP vault or reserve pool does not match the asset, or a second initialisation. |
TwapWindowTooShort, PriceDeviation | Protected entry, exit, settle | The reserve pool failed its price check. |
Events: CapUpdated(cap) once, SleeveReported(unrealizedPnlUsd, equityUsd, asOf) with the figure as reported, HedgeBelieved(equityUsd, anchorUsd) with the figure believed, HedgePaused(reason) and HedgeResumed() (the hedged vault's signatures, so the indexer tracks every vault's pause from one pair), Settled(assetsOut), and ERC-4626 Deposit and Withdraw, which reports the net paid. The factory's VaultCreated has kind 2 and the reserve pool as pool, zero for an Income note.
- StructuredVault_deposit, _withdraw, _raise, settle, reportSleeve, payoffCurve, _requireOpen
Elyra