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

FeeParameterCapCharged onGoes to
EntryentryFeeBps2%Deposits, at settlementStays in the vault
ExitexitFeeBps2%Epoch redemptions, at settlementStays in the vault
Instant exitinstantFeeBps2%Instant redemptionsStays in the vault
PerformanceperformanceFeeBps30%Gain in value per share above the high-water mark, at settlementfee recipient, as new shares
Caps are constants in BasisVault: MAX_FEE_BPS = 200 and MAX_PERFORMANCE_FEE_BPS = 3,000. setParams reverts above them.

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.

ParameterValueMeaning
performanceFeeBps1,000 (10%)Of the gain in value per share above the high-water mark
entryFeeBps0No fee to deposit
exitFeeBps0No fee to redeem through an epoch
instantFeeBps30 (0.30%)On instant redemptions, kept by the vault
instantCapBps1,000 (10%)Instant redemptions per epoch, as a share of the vault's value
minCashBps300 (3%)Cash the operator must leave on HyperEVM when it moves USDC to HyperCore
minEpochDuration1 hourYoungest epoch the operator may settle
maxEpochDuration1 dayPast this the epoch is overdue and anyone may settle it
From productionParams() in the deploy script (contracts/script/DeployBasisVault.s.sol).

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.

shares minted = deposit × (1 − entry) × supply / navHigh USDC released = shares × navLow / supply × (1 − exit) instant paid = shares × navLow / supply × (1 − instant)

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:

  1. 1
    MeasureValue per share = navLow ÷ supply. If it is not above the high-water mark, nothing happens.
  2. 2
    Size the feefee = (value per share − mark) × supply × performanceFee. This is a USDC amount.
  3. 3
    Mint 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.
  4. 4
    Raise the markThe mark moves to the value per share after the mint. The event PerformanceFee(assets, shares) records both amounts.
pps = navLow / supply fee = (pps − mark) × supply × perf feeShares = fee × supply / (navLow − fee) new mark = navLow / (supply + feeShares)

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: before is navLow ÷ supply, after is the value per share once this epoch's deposits and redemptions are in.
  • On an instant redemption: before and after are 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.

value per share 104,000 / 100,000 = $1.0400 gain over mark (1.0400 − 1.0300) × 100,000 = $1,000 fee 1,000 × 10% = $100 fee shares 100 × 100,000 / (104,000 − 100) = 96.25 new supply 100,096.25 new mark 104,000 / 100,096.25 = $1.0390

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.