Fees and high-water mark
A basis vault has four fees. Three of them, on entry, on exit and on instant exit, stay in the vault for the holders who remain. The fourth is a performance fee on new highs in value per share, paid to the fee recipient as new shares.
The four fees
| Fee | Parameter | Cap | Charged on | Goes to |
|---|---|---|---|---|
| Entry | entryFeeBps | 2% | Deposits, at settlement | Stays in the vault |
| Exit | exitFeeBps | 2% | Epoch redemptions, at settlement | Stays in the vault |
| Instant exit | instantFeeBps | 2% | Instant redemptions | Stays in the vault |
| Performance | performanceFeeBps | 30% | Gain in value per share above the high-water mark, at settlement | fee recipient, as new shares |
Each vault sets its own values within those caps; the owner changes them with setParams, which emits ParamsSet. getParams() returns the values in force.
Values at deployment
Every vault from BasisVaultFactory starts with the same parameters. The owner can change them later within the caps above, and the vault page always shows the values the contract holds.
| Parameter | Value | Meaning |
|---|---|---|
performanceFeeBps | 1,000 (10%) | Of the gain in value per share above the high-water mark |
entryFeeBps | 0 | No fee to deposit |
exitFeeBps | 0 | No fee to redeem through an epoch |
instantFeeBps | 30 (0.30%) | On instant redemptions, kept by the vault |
instantCapBps | 1,000 (10%) | Instant redemptions per epoch, as a share of the vault's value |
minCashBps | 300 (3%) | Cash the operator must leave on HyperEVM when it moves USDC to HyperCore |
minEpochDuration | 1 hour | Youngest epoch the operator may settle |
maxEpochDuration | 1 day | Past this the epoch is overdue and anyone may settle it |
Entry, exit and instant fees
Building and unwinding the position costs trading fees and spread. The entry and exit fees make the people joining or leaving pay that cost instead of the holders who stay. The fee is not sent anywhere: it is simply not converted into shares (on entry) or not paid out (on exit), so it remains in the vault and raises the value of every remaining share.
The instant-exit fee is the price of skipping the epoch: the vault pays from cash it keeps on hand and will have to rebuild later. See Deposits, redemptions, epochs.
The high-water mark
The performance fee is charged only on gains above the vault's previous peak. highWaterMark stores the highest value per share on which the fee has been paid, scaled by 1024. After a loss nothing is charged until the previous peak is passed again; the fee is never charged twice on the same gain.
Value per share for the mark is always measured at navLow, the low end of the vault's value range, so a spot price pushed upward for a moment can never trigger a fee. At the first settlement the mark is set to the value per share right after it.
How the performance fee is charged
At each settlement, before any deposit or redemption is priced, _chargePerformance runs:
- 1MeasureValue per share = navLow ÷ supply. If it is not above the high-water mark, nothing happens.
- 2Size the feefee = (value per share − mark) × supply × performanceFee. This is a USDC amount.
- 3Mint shares worth the feeInstead of taking USDC out of the position, the vault mints new shares to feeRecipient, sized so that after the mint they are worth exactly the fee.
- 4Raise the markThe mark moves to the value per share after the mint. The event
PerformanceFee(assets, shares)records both amounts.
Because the fee is paid in shares, the vault does not have to unwind any of its position to pay it, and the fee recipient holds shares like anyone else: it can redeem them through the same epochs.
Fees that are not performance
Entry, exit and instant fees raise value per share too, and so does pricing deposits at the high end and redemptions at the low end. None of that is profit from the trade, so none of it should be charged as performance. _liftMark(before, after) takes care of it: whenever one of these operations raises value per share, the high-water mark rises by exactly the same amount.
- At settlement, after the performance fee:
beforeis navLow ÷ supply,afteris the value per share once this epoch's deposits and redemptions are in. - On an instant redemption:
beforeandafterare value per share either side of the burn and payment, so the instant fee lifts the mark. - Instant redemptions never charge the performance fee themselves; it is only computed at settlements.
Fees are fixed per epoch
When an epoch opens, the vault snapshots the entry, exit and performance fees in force into epochFees. During that epoch, each of these fees is the lower of the snapshot and the current value:
- A raise
- Applies from the next epoch. Requests already queued keep the fee they saw when they queued.
- A cut
- Applies at once, to the epoch in progress.
The instant-exit fee is not part of the snapshot: an instant redemption uses the value in force at that moment, and the caller fixes what it accepts with minAssets.
Worked example
A vault with 100,000 shares and a high-water mark of $1.0300 per share. Funding has accrued since the last settlement, and the vault is now worth $104,000 at the low end. The performance fee is 10% in this example.
The fee recipient now holds 96.25 shares worth $100. Every other holder keeps 90% of the gain: their value per share went from $1.0300 to $1.0390. This epoch's deposits and redemptions are then priced against the supply of 100,096.25. If the next epoch ends below $1.0390 per share, no fee is due until the vault is back above it.