SYNCING ORACLE ROUNDS
OverviewIndexes & PartnersDeposit & ComposerDocs

Virar Index: Technical Paper

Dual-momentum pair indexes on tokenized equities, with risk-parity sizing and oracle-gated execution on Base

Version 1.0 · November 2026 · Base mainnet


Abstract

Virar Index is a family of onchain indexes built from Coinbase tokenized equities on Base. Each index is a basket of pairs: every slot holds a stock against a rival asset (ETH, BTC or USDC) and allocates between the two by multi-horizon time-series momentum on their price ratio. In the Flagship index, each slot selects its own rival daily by dual momentum, with cash as the default when both crypto assets trend down. Slot sizes follow an Equal Risk Contribution (ERC) allocation under exposure caps, and the whole index is scaled to a volatility target. All indexes share one vault, so opposing trades across indexes net before reaching the market. Execution is routed through DEX aggregators under a Chainlink-referenced minimum output and a basis gate. On 2023 to 2026 out-of-sample data the Flagship delivered a higher Sharpe ratio than an equal-weight buy-and-hold of its stocks with less than half of its maximum drawdown. This paper specifies the signal, the portfolio construction, the execution model, the vault accounting and the onchain invariants.


Contents

  1. Introduction
  2. Notation
  3. Price data
  4. Signal construction
  5. Partner selection (dual momentum)
  6. Portfolio construction
  7. Rebalancing policy
  8. Execution
  9. Vault accounting
  10. Trading-window modes
  11. Onchain invariants
  12. Backtest methodology and results
  13. Risk analysis
  14. References
  • Appendix A: Parameters
  • Appendix B: Glossary

1. Introduction

Rule-based onchain portfolios are not new. Set Protocol's Robo Sets (2019 to 2023) held one crypto asset or cash according to a moving-average crossover. Three properties limited them: a single binary signal that whipsawed in sideways markets, equal or fixed sizing that ignored risk, and one contract per product, which split liquidity and duplicated trading costs.

Tokenized equities on Base, priced by Chainlink tokenized-equity feeds, allow a different construction. Virar measures each stock not in dollars alone but against the asset its holder would otherwise own, and lets the stronger side hold the slot. The design draws on three bodies of work:

  • Time-series momentum (Moskowitz, Ooi and Pedersen, 2012): an asset's own past return over 1 to 12 months predicts its near-term return, across asset classes.
  • Dual momentum (Antonacci, 2014): combine absolute momentum (is the asset trending?) with relative momentum (is it beating the alternative?), with cash as the fallback.
  • Equal Risk Contribution (Maillard, Roncalli and Teïletche, 2010): size positions so each contributes equally to portfolio risk.

Execution follows the market-microstructure framework of Harris (2003): adverse selection, transitory versus fundamental price moves, and implementation shortfall.


2. Notation

SymbolMeaning
kkIndex (strategy) identifier
i=1,…,Ni = 1, \dots, NSlot within an index
sis_iStock of slot ii
πi(t)\pi_i(t)Partner of slot ii at time tt, πi∈{ETH,BTC,USD}\pi_i \in \{\text{ETH}, \text{BTC}, \text{USD}\}
Pa(t)P_a(t)USD price of asset aa from its Chainlink feed
Ri(t)R_i(t)Ratio of slot ii
h∈Hh \in HVote horizon in trading days
Si(t)S_i(t)Slot score
αi(t)\alpha_i(t)Stock share of slot ii, in [0,1][0, 1]
wi(t)w_i(t)Slot weight in the index before volatility scaling
Wi(t)W_i(t)Current value of slot ii as a fraction of NAV
κ(t)\kappa(t)Volatility scaling factor, in [0,1][0, 1]
xa(t)x_a(t)Final target weight of asset aa in the index
Σ(t)\Sigma(t)Covariance matrix of slot returns
σ∗\sigma^*Volatility target
NAVk\text{NAV}_kNet asset value of index kk
QkQ_kShares outstanding of index kk

One basis point (bps) is 10−410^{-4}.


3. Price data

3.1 Sources

AssetOnchain price (NAV, min-out, basis gate)Signal input (backtest and daily posts)
Tokenized stocksChainlink tokenized-equity feed (total return)Tiingo daily adjusted closes
ETH, BTCChainlink ETH/USD, BTC/USDCoinbase Exchange daily candles (UTC close)
USDCFixed at 1 USDFixed at 1 USD

The signal engine runs offchain on daily closes; Chainlink prices are used onchain for valuation and trade checks.

3.2 Total-return convention

The Chainlink tokenized-equity feed already reflects the token's multiplier, which adjusts for splits and dividends. Onchain, the price used is therefore

Ps(t)=feeds(t)P_s(t) = \text{feed}_s(t)

and the multiplier is never applied a second time. Applying it twice would double-count every corporate action. The signal engine uses Tiingo adjusted closes, which carry the same split and dividend adjustment.

3.3 Sessions and staleness

Equity feeds update 24/5 and freeze from Friday 20:00 to Sunday 20:00 New York time. Signals are computed on the set T\mathcal{T} of daily closes on US trading days (the Tiingo dates). ETH and BTC use the Coinbase UTC close of the same date, carried forward if missing. All horizons hh count elements of T\mathcal{T}, not calendar days.

A feed round is stale if

tnow−tround>Δmax⁡t_{\text{now}} - t_{\text{round}} > \Delta_{\max}

where Δmax⁡\Delta_{\max} is the feed's heartbeat as set in the registry (86,400 s for the equity feeds, 1,200 s for ETH/USD and BTC/USD). An equity feed is live only if, in addition, the 24/5 window is open now and its latest round was written inside the window. Instant vault actions, queue settlement, signal posts and rebalances all require live feeds.

3.4 Verifiability

Each signal post carries a hash

dataHash=keccak256(index key ∥ variant ∥ dynamicPartners ∥ last date ∥ digest ∥ sources)\text{dataHash} = \text{keccak256}(\text{index key} \,\|\, \text{variant} \,\|\, \text{dynamicPartners} \,\|\, \text{last date} \,\|\, \text{digest} \,\|\, \text{sources})

where digest=keccak256(dates ∥ prices)\text{digest} = \text{keccak256}(\text{dates} \,\|\, \text{prices}) covers the full daily price history the engine used, so any observer can rebuild the inputs, rerun the engine and confirm the posted targets.


4. Signal construction

4.1 The ratio

For slot ii with partner πi\pi_i:

Ri(t)=Psi(t)Pπi(t)R_i(t) = \frac{P_{s_i}(t)}{P_{\pi_i}(t)}

For πi=USD\pi_i = \text{USD}, Ri(t)=Psi(t)R_i(t) = P_{s_i}(t). The ratio rises when the stock outperforms its partner, independent of the dollar direction of either.

4.2 Multi-horizon vote

For each horizon h∈Hh \in H:

vi,h(t)=sign⁡ ⁣(ln⁡Ri(t)−ln⁡Ri(t−h))∈{−1,+1}v_{i,h}(t) = \operatorname{sign}\!\Big(\ln R_i(t) - \ln R_i(t-h)\Big) \in \{-1, +1\}

with sign⁡(0)=+1\operatorname{sign}(0) = +1, so a vote is never zero. The slot score is the sum of the votes:

Si(t)=∑h∈Hvi,h(t),∣H∣=3  ⇒  Si∈{−3,−1,+1,+3}S_i(t) = \sum_{h \in H} v_{i,h}(t), \qquad |H| = 3 \;\Rightarrow\; S_i \in \{-3, -1, +1, +3\}

Using three horizons instead of one reduces the variance of the trend estimate: a single horizon flips on any short-lived move, while the sum flips fully only when all horizons agree.

4.3 Score to allocation

The stock share of the slot is a step map of the score, close to the linear map (Si+3)/6(S_i + 3)/6 with the middle steps rounded to two decimals:

αi=f(Si),f(+3)=1,f(+1)=0.67,f(−1)=0.33,f(−3)=0\alpha_i = f(S_i), \qquad f(+3) = 1, \quad f(+1) = 0.67, \quad f(-1) = 0.33, \quad f(-3) = 0

SiS_iαi\alpha_iSlot holds
+31100% stock
+10.6767% stock, 33% partner
−10.3333% stock, 67% partner
−30100% partner (fully flipped)

These partial flips bound the loss from a sharp trend reversal: when the trend turns, the slot is never caught fully on the wrong side before at least one horizon has registered the change.

The slot's return over one period is

ri(t)=αi rsi(t)+(1−αi) rπi(t)r_i(t) = \alpha_i \, r_{s_i}(t) + (1 - \alpha_i)\, r_{\pi_i}(t)

4.4 Settings

Two parameter sets were pre-registered and are deployed:

ParameterSteadyHigh Octane
Horizons HH (trading days){21, 63, 252}{63, 126, 252}
Confirmation ncn_c (days)105
Cooldown ndn_d (days)55
Volatility target σ∗\sigma^*20%40%
Re-weight interval (sessions)2121
Drift band δ\delta (points)1010
PartnersDynamic (Flagship) or fixedFixed
Partner confirmation npn_p (sessions)10 (Flagship)n/a

4.5 Confirmation (hysteresis)

Let S^i(t)\hat S_i(t) be the raw score and Si(t)S_i(t) the active score that drives allocation. A change is accepted only when the raw score has differed from the active score and held the same value for ncn_c consecutive sessions, and the flip also passes the cooldown (§4.6) and the cost gate (§7):

Si(t)={S^i(t)if S^i(t−j)=S^i(t)    ∀j∈{0,…,nc−1}Si(t−1)otherwiseS_i(t) = \begin{cases} \hat S_i(t) & \text{if } \hat S_i(t-j) = \hat S_i(t) \;\; \forall j \in \{0, \dots, n_c - 1\} \\ S_i(t-1) & \text{otherwise} \end{cases}

The term comes from physics: a hysteretic system's output depends on its history as well as its input, like a thermostat that switches on at 19°C and off at 21°C instead of chattering around 20°C. The confirmation window is the gap between those two thresholds.

4.6 Cooldown

After the active score or the partner of slot ii changes at time t0t_0, no further score change is accepted before t0+ndt_0 + n_d sessions. A confirmed score that is held back by the cooldown or the cost gate is retried each session while it persists.


5. Partner selection (dual momentum)

This section applies to indexes with dynamicPartners = true (the Flagship).

5.1 Absolute momentum of the candidates

Each crypto candidate c∈{ETH,BTC}c \in \{\text{ETH}, \text{BTC}\} is scored on its own USD price with the same horizons:

Ac(t)=∑h∈Hsign⁡ ⁣(ln⁡Pc(t)−ln⁡Pc(t−h))∈{−3,−1,+1,+3}A_c(t) = \sum_{h \in H} \operatorname{sign}\!\Big(\ln P_c(t) - \ln P_c(t-h)\Big) \in \{-3, -1, +1, +3\}

Cash is assigned a constant score:

AUSD(t)=0A_{\text{USD}}(t) = 0

5.2 Preferred partner

π∗(t)=arg⁡max⁡c ∈ {ETH,BTC,USD}Ac(t)\pi^*(t) = \arg\max_{c \,\in\, \{\text{ETH}, \text{BTC}, \text{USD}\}} A_c(t)

Because AETHA_{\text{ETH}} and ABTCA_{\text{BTC}} are always odd, they never equal 0. Hence

π∗(t)=USD  ⟺  AETH(t)<0  ∧  ABTC(t)<0\pi^*(t) = \text{USD} \iff A_{\text{ETH}}(t) < 0 \;\wedge\; A_{\text{BTC}}(t) < 0

Cash becomes the rival exactly when both crypto assets trend down, and never otherwise.

Tie-break. Candidates are ranked by AcA_c. Among tied candidates (in practice ETH and BTC, since USD never ties), slot ii keeps its current partner if it is one of them; otherwise, and on the first day, it takes the candidate with the higher 63-session return Pc(t)/Pc(t−63)−1P_c(t)/P_c(t-63) - 1.

5.3 Partner hysteresis

Let cc be the top-ranked candidate for slot ii. The slot switches from πi\pi_i to cc only if the same cc has been top-ranked and has led the current partner by at least one vote for np=10n_p = 10 consecutive sessions:

c≠πi  ∧  Ac(t−j)−Aπi(t−j)≥1∀j∈{0,…,np−1}c \neq \pi_i \;\wedge\; A_c(t-j) - A_{\pi_i}(t-j) \geq 1 \quad \forall j \in \{0, \dots, n_p - 1\}

On the first day partners are set without waiting. A slot that switches partner takes the new pair's score and stock share f(Si)f(S_i) at once, without the score confirmation of §4.5, and its cooldown restarts.

5.4 Exposure caps and reassignment

The caps on crypto partner exposure are

EETH≤0.40,EBTC≤0.30E_{\text{ETH}} \leq 0.40, \qquad E_{\text{BTC}} \leq 0.30

They are enforced in two stages.

Reassignment (during partner choice). The exposure to candidate cc is estimated from current slot values:

E^c=∑i : πi=cWi(1−αi(c))\hat E_c = \sum_{i \,:\, \pi_i = c} W_i \big(1 - \alpha_i(c)\big)

where αi(c)\alpha_i(c) is the slot's current stock share if cc is already its partner, and otherwise f(Si)f(S_i) with SiS_i computed against cc (on the first day Wi=1/NW_i = 1/N). While E^c\hat E_c exceeds its cap, cc is marked full for the day and the slot partnered with cc that has the lowest SiS_i against cc moves to its highest-ranked candidate that is neither cc nor already full (USD if none is left). This repeats until no cap binds. Different slots can therefore face different partners at the same time.

Clipping (on every target). After volatility scaling (§6.5), if the partner legs of cc still sum to more than the cap, every leg partnered with cc is scaled down by the same factor and the excess goes to USDC. The keeper applies the same clipping, against the caps stored onchain, before posting.

5.5 Relative momentum

Partner choice runs first each session. With partners fixed for the day, the slot score SiS_i of §4 is computed on Ri=Psi/PπiR_i = P_{s_i} / P_{\pi_i}. Together, §5.1 to §5.4 (absolute momentum, choice of rival) and §4 (relative momentum, stock versus rival) form the dual-momentum rule.


6. Portfolio construction

6.1 Slot return covariance

Daily simple returns of the assets (the eight stocks, ETH and BTC), r(t)r(t), feed an exponentially weighted mean and covariance. With center of mass com=60\text{com} = 60 days:

λ=com1+com=6061\lambda = \frac{\text{com}}{1 + \text{com}} = \frac{60}{61}

μ(t)=λ μ(t−1)+(1−λ) r(t)\mu(t) = \lambda\, \mu(t-1) + (1 - \lambda)\, r(t)

Σa(t)=λ Σa(t−1)+(1−λ) (r(t)−μ(t))(r(t)−μ(t))⊤\Sigma^{a}(t) = \lambda\, \Sigma^{a}(t-1) + (1 - \lambda)\, \big(r(t) - \mu(t)\big)\big(r(t) - \mu(t)\big)^{\top}

The estimate is seeded on the history before the first signal date, and the one used at tt is Σa(t−1)\Sigma^{a}(t-1), so no same-day information enters the weights. Slot covariance follows from each slot's current blend: with Bi,si=αiB_{i,s_i} = \alpha_i, Bi,πi=1−αiB_{i,\pi_i} = 1 - \alpha_i (a USD leg has zero variance) and all other entries 0,

Σ=261  B ΣaB⊤\Sigma = 261\; B\, \Sigma^{a} B^{\top}

where 261 is the number of weekdays per year. Diagonal entries are floored at 0.0120.01^2 (1% annual volatility) so that a slot held fully in USDC stays solvable. Annualized slot volatility is σi=Σii\sigma_i = \sqrt{\Sigma_{ii}}.

6.2 Equal Risk Contribution

Portfolio volatility is σp(w)=w⊤Σw\sigma_p(w) = \sqrt{w^{\top} \Sigma w}. By Euler's theorem for homogeneous functions it decomposes into per-slot contributions:

σp=∑i=1NRCi,RCi=wi ∂σp∂wi=wi (Σw)iw⊤Σw\sigma_p = \sum_{i=1}^{N} RC_i, \qquad RC_i = w_i \,\frac{\partial \sigma_p}{\partial w_i} = \frac{w_i\, (\Sigma w)_i}{\sqrt{w^{\top} \Sigma w}}

ERC requires every slot to contribute equally:

RCi=RCj∀i,j⟺RCi=σpNRC_i = RC_j \quad \forall i, j \qquad \Longleftrightarrow \qquad RC_i = \frac{\sigma_p}{N}

with ∑iwi=1\sum_i w_i = 1 and wi≥0w_i \geq 0.

Solution. The ERC weights are found through the convex program

y∗=arg⁡min⁡y>0  12 y⊤Σ y−1N∑i=1Nln⁡yi,wi=yi∗∑jyj∗y^* = \arg\min_{y > 0} \; \tfrac{1}{2}\, y^{\top} \Sigma\, y - \frac{1}{N} \sum_{i=1}^{N} \ln y_i, \qquad w_i = \frac{y_i^*}{\sum_j y_j^*}

whose first-order condition yi(Σy)i=1/Ny_i (\Sigma y)_i = 1/N is exactly the equal-contribution condition. The program is strictly convex, so the solution is unique.

The engine solves it by cyclical coordinate descent (Griveau-Billion, Richard and Roncalli, 2013). Starting from yi=1/σiy_i = 1/\sigma_i, each coordinate is set to the positive root of its first-order condition with the others held fixed:

yi←−ci+ci2+4 Σii/N2 Σii,ci=∑j≠iΣij yjy_i \leftarrow \frac{-c_i + \sqrt{c_i^2 + 4\, \Sigma_{ii} / N}}{2\, \Sigma_{ii}}, \qquad c_i = \sum_{j \neq i} \Sigma_{ij}\, y_j

Sweeps repeat until no coordinate moves by more than 10−1010^{-10}, up to 500 sweeps. A single-slot index takes w1=1w_1 = 1.

Properties (Maillard, Roncalli and Teïletche, 2010): the ERC portfolio's volatility lies between that of the minimum-variance portfolio and that of the equal-weight portfolio, and when all correlations are equal the solution reduces to inverse volatility:

wi=1/σi∑j1/σjw_i = \frac{1 / \sigma_i}{\sum_j 1 / \sigma_j}

This closed form is the fallback if the solver returns a non-finite or non-positive sum.

6.3 Slot caps

Weights are constrained to 0.05≤wi≤0.300.05 \leq w_i \leq 0.30. Weights outside the band are clipped to the bound and fixed, and the remaining weight is redistributed pro rata among the unfixed slots, iterating (up to 50 passes) until no further weight is clipped. When the band is infeasible (0.30 N<10.30\,N < 1 or 0.05 N>10.05\,N > 1, as for the single-slot Saylor Trade), no slot bounds are applied. Onchain, only the upper bound is enforced, as the per-slot cap stored in the registry (30%, and 100% for the single-slot indexes).

6.4 Asset-level targets

Before volatility scaling, the index's weight in each asset is

xs=∑i : si=swi αi,xc=∑i : πi=cwi (1−αi)x_{s} = \sum_{i \,:\, s_i = s} w_i\, \alpha_i, \qquad x_{c} = \sum_{i \,:\, \pi_i = c} w_i\, (1 - \alpha_i)

for every stock ss and every partner cc. The keeper posts, for each index, the engine's allocation right after its most recent trade (§7) as asset weights in the order [stock1,…,stockN,WETH,cbBTC,USDC][\text{stock}_1, \dots, \text{stock}_N, \text{WETH}, \text{cbBTC}, \text{USDC}], together with each slot's partner and partner-leg weight. Before posting it scales any slot above the onchain slot cap down to the cap and clips the ETH and BTC legs (§5.4), moving the excess to USDC; weights are rounded down to 10−1210^{-12} and USDC takes the remainder so the sum is exactly 1.

6.5 Volatility targeting

The forecast annualized volatility of the index, using the capped weights of §6.3 and the annualized Σ\Sigma of §6.1, is σ^p=w⊤Σ w\hat\sigma_p = \sqrt{w^{\top} \Sigma\, w}. The scaling factor is

κ=min⁡ ⁣(1,  σ∗σ^p)\kappa = \min\!\left(1, \; \frac{\sigma^*}{\hat \sigma_p}\right)

Final targets are

xafinal=κ xa(a≠USDC),xUSDCfinal=κ xUSDC+(1−κ)x_a^{\text{final}} = \kappa\, x_a \quad (a \neq \text{USDC}), \qquad x_{\text{USDC}}^{\text{final}} = \kappa\, x_{\text{USDC}} + (1 - \kappa)

Since κ≤1\kappa \leq 1, the index never uses leverage. In volatile markets the excess moves to USDC, which can earn lending yield (§9.6). The partner caps of §5.4 are then applied to the scaled legs.


7. Rebalancing policy

7.1 Signal engine (when targets change)

The engine, run on each daily close by the keeper and by the backtest, trades in three cases:

  1. Flip. When a slot's score change is confirmed (§4.5, §4.6), only that slot moves to its new stock share. It must pass the cost gate below, with m=∣Δαi∣ Wim = \lvert \Delta\alpha_i \rvert\, W_i the move as a fraction of NAV.
  2. Partner switch (§5.3). The slot moves to its new pair at once; switches are not cost-gated.
  3. Re-weight. Every 21 sessions, or when any slot weight has drifted from its post-cap target by more than the drift band δ=10\delta = 10 percentage points,

max⁡i∣Wicur−Witarget∣>δ,\max_i \left| W_i^{\text{cur}} - W_i^{\text{target}} \right| > \delta,

the full target of §6 is recomputed. A slot whose change fails the cost gate keeps its current holdings.

Cost gate. Let msm_s and mπm_\pi be the changes of the stock and partner legs as fractions of NAV, FF the fund size (the index cap in the live keeper), and ca(q)c_a(q) the cost rate of §8.5 at trade size qq in USD, with cUSD=0c_{\text{USD}} = 0. A slot change passes if

ms csi(msF)+mπ cπi(mπF)max⁡(ms,mπ)  ≤  0.4%\frac{m_s\, c_{s_i}(m_s F) + m_\pi\, c_{\pi_i}(m_\pi F)}{\max(m_s, m_\pi)} \;\leq\; 0.4\%

that is, if the expected cost is at most 0.4% of the slot change. For a flip ms=mπ=mm_s = m_\pi = m, and the condition reduces to csi(mF)+cπi(mF)≤0.4%c_{s_i}(mF) + c_{\pi_i}(mF) \leq 0.4\%.

The keeper posts the allocation right after the engine's latest trade. It posts again when that allocation changes, or after two days unchanged so the targets stay fresh onchain.

7.2 Onchain execution (moving books to targets)

During the trading window (§10) the keeper runs every 30 minutes. For every index with targets and live feeds, the rebalancer computes the net change per asset at current Chainlink prices (§8.4):

Δanet=∑k(xk,a NAVkPa−hk,a)\Delta_a^{\text{net}} = \sum_k \left( \frac{x_{k,a}\, \text{NAV}_k}{P_a} - h_{k,a} \right)

  • Minimum size: assets whose net is under $2 are skipped, and the contract accepts a residual up to $2 per asset.
  • Chunking: larger nets are split into swaps of at most 95% of the $10k per-swap limit.

Execution does not apply the drift band or the cost gate: whenever an asset's net reaches $2, including from price moves since the last post, the books are moved back to the posted weights.

7.3 Turnover

Turnover per rebalance is

τ=12∑a∣xafinal−xacur∣\tau = \tfrac{1}{2} \sum_a \left| x_a^{\text{final}} - x_a^{\text{cur}} \right|


8. Execution

8.1 Basis

The basis of asset aa is the deviation of the executable DEX price from the oracle price:

ba=Padex−PaPab_a = \frac{P_a^{\text{dex}} - P_a}{P_a}

Overnight, tokenized-equity pools on Base were measured trading 30 to 55 bps below the Chainlink price. In Harris's terms this is a transitory deviation: no informed trading moves the oracle while the US market is closed, so the DEX price drifts with order imbalance and reverts at the open.

Basis gate. Every swap has USDC on one side. Its fair output is the Chainlink-implied amount,

fairOut={qin Paselling qin of a for USDCqin/Pabuying a with qin USDC\text{fairOut} = \begin{cases} q_{\text{in}}\, P_a & \text{selling } q_{\text{in}} \text{ of } a \text{ for USDC} \\ q_{\text{in}} / P_a & \text{buying } a \text{ with } q_{\text{in}} \text{ USDC} \end{cases}

and the swap is allowed only if the aggregator's quoted output is within the band β=150\beta = 150 bps of it:

∣quotedOutfairOut−1∣≤β\left| \frac{\text{quotedOut}}{\text{fairOut}} - 1 \right| \leq \beta

The quote includes spread and impact as well as the basis, so the gate bounds all three together. It applies in both trading-window modes.

8.2 Minimum output

With qspent≤qinq_{\text{spent}} \leq q_{\text{in}} the amount the router actually took:

minOut=fairOut⋅(1−ε)⋅qspentqin,ε=1%\text{minOut} = \text{fairOut} \cdot (1 - \varepsilon) \cdot \frac{q_{\text{spent}}}{q_{\text{in}}}, \qquad \varepsilon = 1\%

The swap reverts if it returns less, or if the router took more than qinq_{\text{in}}. The bound is set from Chainlink, not from the quote, so a manipulated pool cannot widen it. Each swap is also limited to $10k at Chainlink prices.

8.3 Routing

Trades are routed through whitelisted aggregator routers (KyberSwap, with Velora as fallback). Every swap is between USDC and one other asset; there are no direct stock to WETH swaps. The aggregator splits each order across pools, including Aerodrome Slipstream and Uniswap deployments. Only routers on the onchain whitelist can receive vault funds. Anyone may call the rebalancer with routes; the checks above apply to every caller.

8.4 Netting across indexes

All indexes share one vault. If index kk needs a change Δk,a\Delta_{k,a} in asset aa (in USD), the vault trades only the net:

Δanet=∑kΔk,a\Delta_a^{\text{net}} = \sum_k \Delta_{k,a}

The volume saved by netting is

∑k∣Δk,a∣−∣Δanet∣  ≥  0\sum_k \left| \Delta_{k,a} \right| - \left| \Delta_a^{\text{net}} \right| \;\geq\; 0

which is strictly positive whenever two indexes trade the same asset in opposite directions.

Booking. After the swaps, the batch must have closed every asset's net to within $2. For each non-USDC asset, the quantity the batch now holds is split among the indexes in proportion to their target quantities. In USDC, the batch's execution result against the targets,

Π=Ubefore+USDC flow−tip−∑kUktarget,\Pi = U^{\text{before}} + \text{USDC flow} - \text{tip} - \sum_k U_k^{\text{target}},

is split in proportion to each index's gross change Gk=∑a∣Δk,a∣G_k = \sum_a \left| \Delta_{k,a} \right| valued at Chainlink prices (in proportion to NAV if no index changed; the last index takes the rounding remainder). Each index therefore bears execution cost in proportion to its own gross change, whether that change was netted internally or traded. The batch reverts if any index's USDC book would go negative, or if the vault's tokens no longer cover every book.

8.5 Cost model

For trade size qq, the aggregator quotes are compared with the oracle:

cbuy(q)=Pbuyexec(q)−PP,csell(q)=P−Psellexec(q)Pc_{\text{buy}}(q) = \frac{P^{\text{exec}}_{\text{buy}}(q) - P}{P}, \qquad c_{\text{sell}}(q) = \frac{P - P^{\text{exec}}_{\text{sell}}(q)}{P}

The basis shifts these two in opposite directions: a negative basis makes buying look cheap and selling look expensive. Averaging removes it:

c(q)=cbuy(q)+csell(q)2c(q) = \frac{c_{\text{buy}}(q) + c_{\text{sell}}(q)}{2}

which is the effective half-spread plus impact. The curve is measured at $1k, $5k, $10k and $30k, floored at 1 bp, interpolated linearly between sizes and extrapolated linearly beyond $30k. In the US-hours run of 30 November 2026, one-way costs across the eight stocks ranged from 1 to 14 bps at $1k and from 5 to 124 bps at $30k; WETH and cbBTC cost 1 to 3 bps at every size.

8.6 Capacity and caps

A full flip moves one whole slot, at the slot cap wmax⁡w_{\max}, between the stock and its partner. The capacity of index kk is the largest fund size FF, in $5k steps, at which every leg of such a flip costs at most 30 bps:

Ck=max⁡{F∈{5k,10k,…,Fmax⁡}  :  ca(wmax⁡F)≤30 bps    ∀a∈Ak}C_k = \max \Big\{ F \in \{5\text{k}, 10\text{k}, \dots, F_{\max}\} \;:\; c_a\big(w_{\max} F\big) \leq 30 \text{ bps} \;\; \forall a \in \mathcal{A}_k \Big\}

where Ak\mathcal{A}_k is the index's stocks and crypto partners (both ETH and BTC for dynamic partners), cac_a is the averaged cost of §8.5 from the US-hours run, Fmax⁡F_{\max} is the $100k maximum per index, and the global cap is $400k. The thinnest pool sets each index's cap; the deployed caps are $10k to $15k. Requiring both directions separately to stay under 30 bps would give $0 or $5k, because the basis pushes one direction past the limit even where the spread is small.

8.7 Implementation shortfall

Each swap emits its spent and received amounts together with fairOut (§8.1), so its shortfall against the oracle is

IS=1−receivedfairOut⋅qspent/qinIS = 1 - \frac{\text{received}}{\text{fairOut} \cdot q_{\text{spent}} / q_{\text{in}}}

in bps of the trade notional. Each batch also emits its USDC execution result Π\Pi (§8.4).


9. Vault accounting

9.1 Net asset value

NAVk=∑ahk,a Pa\text{NAV}_k = \sum_a h_{k,a}\, P_a

where hk,ah_{k,a} is index kk's booked holding of asset aa (the books count tokens parked in the yield adapter), priced by Chainlink with USDC at $1. The USDC book is signed; a negative NAV is reported as 0. The value of one share is

pk=NAVkQkp_k = \frac{\text{NAV}_k}{Q_k}

and pk=1p_k = 1 while Qk=0Q_k = 0.

9.2 Deposits

Each deposit or redemption first accrues the management fee (§9.4). The first deposit mints one share per dollar. A later instant deposit dd (USDC) mints

ΔQ=d (1−foff)⋅QkNAVk\Delta Q = d\, (1 - f_{\text{off}}) \cdot \frac{Q_k}{\text{NAV}_k}

while the full dd is booked, so the off-hours fee fofff_{\text{off}} (§9.3) stays with existing holders. Deposits are refused if NAVk+d\text{NAV}_k + d would exceed the index cap, or the total NAV of all indexes plus dd would exceed the global cap.

9.3 Redemptions

Redeeming ΔQ\Delta Q shares pays

payout=ΔQ⋅pk⋅(1−fexit−foff)\text{payout} = \Delta Q \cdot p_k \cdot (1 - f_{\text{exit}} - f_{\text{off}})

where fexit=10f_{\text{exit}} = 10 bps for instant redemptions (0 for queued) and foff=50f_{\text{off}} = 50 bps for instant actions outside US hours in 24/5 mode (0 otherwise). Each fee is capped onchain at 1%. Both fees stay in the index's book and accrue to remaining holders. The payout comes from the index's USDC book; an instant redemption larger than that book (or than the vault's idle USDC) reverts until a rebalance or the queue frees cash.

Why the fee exists. An instant redemption is paid at the oracle price, but the vault may later have to sell at the DEX price. The redeemer's gain at the expense of remaining holders is bounded by the basis of the assets sold. The fee is sized to cover the typical basis in each mode, so redemptions do not dilute the holders who stay.

9.4 Management fee

The fee accrues at annual rate ϕ=0.50%\phi = 0.50\% (the index's feeBps, capped at 2%) by minting shares to the treasury whenever the index is touched (deposit, redemption, settlement or a public accrue call). Over an interval Δt\Delta t, in years of 365 days, the treasury receives

f=ϕ Δt,ΔQfee=Qk⋅f1−ff = \phi\, \Delta t, \qquad \Delta Q_{\text{fee}} = Q_k \cdot \frac{f}{1 - f}

so that its new share of the index equals ff of NAV (ff is capped just below 1).

9.5 Queued requests (ERC-7540)

A deposit request transfers USDC to the vault and a redemption request escrows the shares; both are recorded with their time trt_r and queued per index in arrival order. Anyone can call settle while the index's feeds are live. Requests settle in order, at the NAV at the time of settlement, and only once every stock feed of the index has a round newer than trt_r. Because that round did not exist when the request was made, a requester cannot exploit a stale price. Settlement stops at the first request that is not ready.

  • Deposits settle with no fee; one that would breach a cap is refunded instead.
  • Redemptions settle with no exit or off-hours fee, and wait while the index's USDC book or the vault's idle USDC cannot cover them.

Settled redemption proceeds and refunds become claimable and are withdrawn with claim.

9.6 Yield

The yield adapter can supply idle USDC, WETH and cbBTC to Aave V3 on Base. Its operator (the keeper) or the owner parks and unparks; after each park, at least liquidBps (10%) of the token's idle plus parked amount must remain idle in the vault. For USDC, idle excludes pending deposits and claimable amounts. Aave balances grow with the reserve's liquidity index I(t)I(t):

balance(t)=scaled⋅I(t)\text{balance}(t) = \text{scaled} \cdot I(t)

so interest appears as backing above the books. harvest(token), callable by anyone, computes the excess X=backing−∑khk,tokenX = \text{backing} - \sum_k h_{k,\text{token}} (for USDC also net of pending deposits and claimable amounts) and credits it to every index with a positive book in that token, pro rata to that book:

hk,token+=X⋅hk,token∑jhj,tokenh_{k,\text{token}} \mathrel{+}= X \cdot \frac{h_{k,\text{token}}}{\sum_j h_{j,\text{token}}}

All yield goes to holders.


10. Trading-window modes

Let U(t)U(t) be true during the US regular session, Monday to Friday 09:30 to 16:00 New York time (daylight saving is computed onchain; exchange holidays are not modelled). Let Lk(t)L_k(t) be true when index kk's feeds are live (§3.3): every stock feed is inside the 24/5 window with a fresh in-window round, and the WETH and cbBTC feeds are fresh.

ModeRebalance allowed ifInstant deposit/redeem allowed ifOff-hours fee
US session (default)U(t)∧Lk(t)U(t) \wedge L_k(t)U(t)∧Lk(t)U(t) \wedge L_k(t)n/a
24/5Lk(t)L_k(t)Lk(t)L_k(t)fofff_{\text{off}} when ¬U(t)\neg U(t)

The basis gate and minimum output (§8.1, §8.2) apply to every swap in both modes. The rebalancer's trading window and the vault's instant window are set separately; both are deployed in US-session mode. Queued requests can be made at any time and settle only while Lk(t)L_k(t) holds, so when feeds are not live (weekends) only queued requests are accepted.


11. Onchain invariants

The contracts enforce the following. An action that violates any of them reverts.

#Invariant
I1Posted asset weights sum to exactly 101810^{18} (100%).
I2For every slot, stock weight plus partner-leg weight is at most the slot cap in the registry (30%; 100% for single-slot indexes). The 5% lower bound is applied offchain only.
I3The posted WETH weight is at most 40% and the cbBTC weight at most 30%.
I4The WETH and cbBTC partner legs sum exactly to the WETH and cbBTC asset weights; the USDC legs sum to at most the USDC weight.
I5Fixed-partner indexes cannot change partners.
I6Signal posts, rebalances, instant actions and queue settlement require live feeds: stock feeds inside the 24/5 window with a fresh in-window round, and fresh WETH and cbBTC feeds.
I7Only the keeper role can post targets.
I8Every swap goes through a whitelisted router, has USDC on one side, is at most $10k, quotes within the basis band (§8.1) and returns at least minOut (§8.2).
I9Rebalances run only in the allowed trading window (§10) and only on targets younger than the maximum age (4 days).
I10A rebalance batch reverts unless every asset's remaining net is within $2, no index's USDC book goes negative, and the vault's tokens (idle plus parked) cover every book.
I11Instant deposits never exceed the index cap or the global cap; queued deposits that would are refunded.
I12After each park, the yield adapter leaves at least liquidBps (10%, set by the owner) of each token idle in the vault.
I13Fees are bounded: exit and off-hours fees at most 1% each, management fee at most 2% per year.
I14Ownership changes are two-step (propose, then accept).

12. Backtest methodology and results

12.1 Data and protocol

  • Universe: the eight Flagship stocks, ETH and BTC; USDC at 1, earning 4% a year; no lending yield on ETH or BTC.
  • In-sample: January 2019 to December 2022, used for design.
  • Out-of-sample: January 2023 to November 2026, never used for tuning.
  • Pre-registration: the selection rule (highest average out-of-sample Sharpe across the four test indexes at a $50k fund, ties within 0.05 broken by lower turnover) was fixed before the out-of-sample run.
  • Fund sizes: $10k, $50k and $100k; results below are at $50k.
  • Costs: the aggregator cost curve c(q)c(q) of §8.5 from the US-hours run of 30 November 2026, applied to every trade at the simulated fund size over the whole history.
  • No look-ahead: signals on day tt's close use prices up to tt; weights use Σa(t−1)\Sigma^{a}(t-1); trades fill at day tt's close at the modelled cost, and the new holdings earn returns from tt to t+1t+1.

12.2 Metrics

With daily returns rtr_t over TT observations spanning YY calendar years (of 365.25 days), and ny=T/Yn_y = T / Y observations per year (about 252, one per US trading day):

CAGR=(VTV0)1/Y−1\text{CAGR} = \left( \frac{V_T}{V_0} \right)^{1/Y} - 1

Sharpe=rˉsd⁡(r)ny\text{Sharpe} = \frac{\bar r}{\operatorname{sd}(r)} \sqrt{n_y}

with no risk-free rate subtracted.

MDD=min⁡t(Vtmax⁡u≤tVu−1)\text{MDD} = \min_t \left( \frac{V_t}{\max_{u \leq t} V_u} - 1 \right)

Turnover=1years∑rebalancesτ,Cost drag=1years∑tradesc(q) qV\text{Turnover} = \frac{1}{\text{years}} \sum_{\text{rebalances}} \tau, \qquad \text{Cost drag} = \frac{1}{\text{years}} \sum_{\text{trades}} c(q)\, \frac{q}{V}

12.3 Results (out-of-sample, $50k fund, US-hours costs)

IndexCAGRSharpeMax DDCost drag/yr
Flagship Steady, dynamic partners26.8%1.37−16.9%0.28%
Flagship Steady, fixed partners18.0%1.01−25.1%0.22%
Defensive Steady18.4%1.40−12.9%0.23%
AI vs ETH Steady / High Octane16.9% / 28.1%0.87 / 1.00−24.9% / −34.3%0.26% / 0.36%
Saylor Trade Steady / High Octane23.9% / 36.6%1.18 / 1.09−24.3% / −39.8%0.18% / 0.49%
Equal-weight buy-and-hold, 8 stocks48.7%1.23−36.0%
Hold ETH8.7%0.44−67.6%
Hold BTC38.8%0.93−53.1%

Source: engine/backtest/results.json, generated 30 November 2026 from the US-hours cost curve. Dynamic partners also improved the in-sample Sharpe of Flagship Steady (1.16 to 1.49), so the gain is not specific to the recent period. Dynamic partners worsened Flagship High Octane (out-of-sample Sharpe 0.97 fixed, 0.67 dynamic), so High Octane ships with fixed partners.

Interpretation. Buy-and-hold of the stocks earned the highest return. The Flagship earned a better risk-adjusted return with less than half the drawdown. These are backtested results and do not guarantee future performance.


13. Risk analysis

RiskMechanismMitigation
Trend reversalMomentum lags turning points; losses concentrate at reversalsPartial flips (§4.3), three horizons, volatility target
WhipsawSideways markets trigger repeated flipsConfirmation, cooldown, cost gate, drift band
Oracle stalenessWeekend freeze; delayed roundsFreshness checks (I6), queue-only when stale, settlement at the next round
Basis arbitrageInstant exits at the oracle price while the vault sells at the DEX priceExit fee and off-hours fee (§9.3), basis gate (§8.1)
Pool manipulationThin pools moved to force bad fillsChainlink-based minOut (§8.2), router whitelist
LiquidityPools of $0.4M to $3MCapacity caps (§8.6), chunking, netting
IssuerThe token issuer can pause, blocklist or seize stock tokens; tokens are tracking certificates, not sharesDisclosure; non-US only; small caps at launch
Smart contractUnaudited codeCaps, two-step ownership, pause, targeted fork tests
ModelBacktests can overfitPre-registration, out-of-sample split, few free parameters

14. References

  1. Moskowitz, T. J., Ooi, Y. H., Pedersen, L. H. (2012). Time Series Momentum. Journal of Financial Economics, 104(2), 228 to 250.
  2. Maillard, S., Roncalli, T., Teïletche, J. (2010). The Properties of Equally Weighted Risk Contribution Portfolios. Journal of Portfolio Management, 36(4), 60 to 70.
  3. Antonacci, G. (2014). Dual Momentum Investing. McGraw-Hill.
  4. Harris, L. (2003). Trading and Exchanges: Market Microstructure for Practitioners. Oxford University Press.
  5. Spinu, F. (2013). An Algorithm for Computing Risk Parity Weights. SSRN.
  6. Griveau-Billion, T., Richard, J.-C., Roncalli, T. (2013). A Fast Algorithm for Computing High-Dimensional Risk Parity Portfolios. SSRN.
  7. ERC-4626: Tokenized Vaults. ERC-7540: Asynchronous ERC-4626 Tokenized Vaults. ERC-8021: Transaction Attribution.

Appendix A: Parameters

ParameterValue
Horizons, Steady21, 63, 252 trading days
Horizons, High Octane63, 126, 252 trading days
Confirmation, Steady / High Octane10 / 5 sessions
Cooldown5 sessions
Stock share by score (+3, +1, −1, −3)1, 0.67, 0.33, 0
Partner confirmation (Flagship)10 sessions
EWMA center of mass60 days (λ=60/61\lambda = 60/61)
Annualization261
Variance floor0.0120.01^2 per year
ERC solverCyclical coordinate descent, tolerance 10−1010^{-10}, at most 500 sweeps
Slot weight bounds5% to 30% (onchain: at most 30%, 100% for single-slot indexes)
ETH / BTC exposure caps40% / 30%
Volatility target, Steady / High Octane20% / 40%
Drift band10 percentage points of slot weight
Re-weightEvery 21 sessions
Cost gate0.4% of slot change
Minimum trade (dust)$2 per asset
Route slippage ε\varepsilon1%
Basis band β\beta150 bps
Max swap size$10k
Max target age4 days
Keeper tip0
Capacity cost limit30 bps per leg of a full flip, average of buy and sell
Cap per index / global$10k to $15k (max $100k) / $400k
Management fee ϕ\phi0.50% per year (max 2%)
Instant exit fee10 bps (max 1%)
Off-hours instant fee (24/5 mode)50 bps (max 1%)
Yield adapter liquid bufferat least 10% of each token

Appendix B: Glossary

See GLOSSARY.md.