03 / Docs

Spec v1 · Elysium 99901

03 / Buyback vault

Only new highs pay out.

BuybackVault takes nothing from a desk that is merely recovering. Profit is swept only when equity sets a new high-water mark, and the swept amount is split by fixed basis points that the owner cannot change.

3.1High-water mark

The high-water mark (HWM) is the highest equity level that has already been accounted for. It starts at the initial bankroll. When reported equity E exceeds it, the difference is profit; anything at or below it is recovery and is never swept.

Sweep logicpseudo
on reportEquity(E):
    if E > HWM:
        profit   = E - HWM
        burn     = profit * 7000 / 10000      // swap → token → 0x…dEaD
        compound = profit * 2000 / 10000      // stays in / returns to bankroll
        ops      = profit - burn - compound   // 1000 bps, remainder absorbs rounding
        HWM      = HWM + compound             // new mark = equity that remains after the sweep
        emit ProfitSwept(profit, burn, compound, ops)
        emit HighWaterMarkRaised(HWM)
    else:
        // drawdown or flat: nothing swept, HWM unchanged

Two properties follow. A dollar of profit is swept at most once, because the HWM moves up as soon as it is counted. And a drawdown must be fully recovered before the vault receives anything again, so the desk is never paid for volatility.

3.2Worked example

Bankroll starts at $100,000. Equity is reported at the end of each week.

WeekEquityHWM beforeSweptBurn 70%Compound 20%Ops 10%HWM afterBankroll after
W1$104,000$100,000$4,000$2,800$800$400$100,800$100,800
W2$97,500$100,800————$100,800$97,500
W3$100,200$100,800————$100,800$100,200
W4$108,300$100,800$7,500$5,250$1,500$750$102,300$102,300
  • W1: $4,000 above the mark. $3,200 leaves the bankroll (burn + ops); $800 stays. New HWM $100,800.
  • W2–W3: drawdown and partial recovery. $0 swept. The desk must earn back $3,300 before it pays again.
  • W4: equity clears $100,800 by $7,500. $6,000 leaves, $1,500 compounds. Total burned so far: $8,050 of token buys.

3.370 / 20 / 10

LegbpsDestinationMechanism
Burn70000x000000000000000000000000000000000000dEaDexecuteBuybackBurn(amountIn, minOut) swaps HYPE for $QUIET with a slippage floor and transfers the output to the dead address.
Compound2000Desk bankrollNot transferred out; the reported HWM is raised by this amount, so it is re-risked as margin.
Ops10000x106342ec570e207afda9fda63125d7a9071127f2Transferred to the company wallet in the same transaction as the sweep.

The basis points are constants in the contract (BURN_BPS = 7000, COMPOUND_BPS = 2000, OPS_BPS = 1000) and mirrored in @desk/shared as SPLIT_BPS. They have no setter.

3.4Non-withdrawable invariant

  • buybackReserve() only increases on sweep or fee income, and only decreases inside executeBuybackBurn.
  • The swap recipient is hard-coded to the burn address; the caller chooses only amountIn and minOut.
  • minOut protects against sandwiching. Large reserves are burned in tranches rather than in a single swap.
  • Tokens at the dead address have no known private key. Total burned is readable as the $QUIET balance of that address.

3.5$QUIET fee hook

From day one, a fixed share of $QUIET trading fees can be routed to the vault. Fee income is not desk profit, so it skips the HWM check and is added directly to the buyback reserve — 100% of it is burned. This lets the buyback run before the desk has posted its first new high.

Fee routing (sketch)solidity
// Token side: a fixed share of every swap fee is forwarded to the vault.
function _routeFee(uint256 feeAmount) internal {
    uint256 toVault = feeAmount * vaultFeeBps / 10_000;   // set at launch, immutable
    _transfer(address(this), BUYBACK_VAULT, toVault);
}

// Vault side: fee income is NOT trading profit, so it bypasses the HWM
// and goes straight to the buyback reserve.
receive() external payable { buybackReserve += msg.value; }

Commit before trade.
Prove after close.

Every entry is keccak256-sealed on Elysium (chain 99901) before an order touches Hyperliquid. Profit above the high-water mark splits 70/20/10: burn, compound, ops.

Company ops wallet · 10% of sweeps

Risk: max 5x leverage · stop required on every order · 4% daily drawdown kills the desk until next session.

Quietdesk · not investment adviceBTC · ETH · HYPE · SOL perps