Stock-Flow Simulation of 17 Tokenised RWA Funds on Solana: Redemption Queues, Kamino Looping Unwinds, and Monte Carlo Risk Pricing
Complete accrual-basis stock-flow specification, FIFO redemption queue equations, Solana on-chain collateral looping calibration, and 900-path-per-fund Monte Carlo tear sheets across 17 tokenised RWA funds.
Tokenised real-world-asset (RWA) funds wrap off-chain debt, receivables, reinsurance, and Treasury bills into SPL or ERC-20 tokens that trade 24/7 and serve as collateral on decentralised lending protocols. Yet standard DeFi analytics dashboards evaluate these tokens using static spot APYs, ignoring three coupled dynamical systems: (1) accrual-basis asset settlement lags (\(\lambda\)) and liquidation haircuts ($eta$), (2) FIFO redemption queues, gates (\(g\)), and payment-date vs. request-date NAV pricing, and (3) endogenous unwinds by leveraged holders looping collateral on Kamino Lend and Loopscale.
01 // Accrual-Basis Stock-Flow Model & Conservation Identities
Implemented in the open-source TokenisedProductEconomy engine of TokenLab (v0.2.0), time is discrete monthly (\(t = 1,dots,T\) with \(T = 36\), \(m = 12\)). At each step \(t\), gross portfolio value \(V_t\) comprises invested earning assets \(A_t\), uninvested cash \(C_t\), and pending settlement receivables \(R_t\) from initiated asset liquidations still in transit over lag \(\lambda\):
NAVt = NAVt−1 + It + Δtval − Φt − Lt − Dt + St − Xt + Wt [Checked every step to ≤ 10−6]
Where \(F_t\) is drawn external liquidity facility principal, \(P_t\) is accrued unpaid fees and portfolio expenses, \(Q_t^{\mathrm{fix}}\) is unpaid fixed redemption claims (active under request_date_nav pricing only), \(N_t\) is active shares, and \(E_t\) is shares escrowed in the FIFO queue under payment_date_nav pricing. With expected queue clearance wait \(w_t\), secondary buyer required return \(r^{\mathrm{req}}\), holding yield \(y_t\), exit fee \(\phi\), and illiquidity premium \(\pi\), the executable secondary price \(p_t^{\mathrm{sec}}\) and 4-pillar investor score are:
Syield = 100 · clip[0,1]((RTWR + yreward − rf)/sy) | Sexit = 50 e−w̄/sw + 50 e−δmax/sδ | Sstab = 100 e−DDmax/sD | Sres = 100(1 − e−ℓmin/sℓ)
from TokenLab.simulationcomponents.productclasses import (
AssetPortfolioController,
ExternalLiquidityFacility,
InvestorCohort,
IssuerEconomicsController,
RedemptionQueueManager,
StatedAssetValuation,
TokenisedProductEconomy,
)
# Example: Calibrating ONyc (Reinsurance, 13.62% gross yield, 3-mo lag, 56% Kamino looped)
portfolio = AssetPortfolioController(
initial_aum=25_000_000.0,
target_cash_buffer_pct=0.05,
gross_yield_annual=0.1362,
settlement_lag_periods=3, # 3-month reinsurance liquidation lag
liquidation_haircut_bps=85.0,
periods_per_year=12,
valuation_method=StatedAssetValuation(),
)
queue = RedemptionQueueManager(
gate_max_pct_nav_per_period=None,
payment_sla_periods=3,
pricing_mode="payment_date_nav",
)
# Looped cohort (56% of AUM on Kamino) unwinding 60% in Month 12 and 20% in Month 13
looped_cohort = InvestorCohort(
cohort_id="looped_defi",
name="Kamino/Loopscale Looped Holders (56% AUM)",
initial_capital=25_000_000.0 * 0.56,
num_holders=25,
base_subscription_rate_period=0.010,
base_redemption_rate_period=0.015,
target_net_yield_annual=0.095,
return_shortfall_sensitivity=2.20,
nav_drawdown_sensitivity=3.50,
queue_delay_sensitivity=1.10,
shock_redemption_schedule={12: 0.60, 13: 0.20},
)
02 // Full 17-Fund × 9-Scenario Investor Score Matrix
Figure 1 and Table 1 present the complete scenario matrix across all 17 funds calibrated on 2026-10-28 (sorted by across-scenario Monte Carlo median P50):
| Fund | Calm base | Low inflows | Rate cut + def. | 30% inst. run | Settle. freeze | Facility cut | Comb. crisis | Severe run | Loop unwind | Across (P50) |
|---|---|---|---|---|---|---|---|---|---|---|
| USCC (crypto carry) | 89 | 89 | 62 | 89 | 89 | 89 | 58 | 89 | 89 | 84.2 |
| nOPAL (card receivables) | 88 | 88 | 70 | 86 | 74 | 87 | 54 | 74 | 88 | 80.5 |
| AUTO (auto loans) | 88 | 88 | 67 | 88 | 78 | 88 | 48 | 84 | 83 | 78.7 |
| ONyc (reinsurance) | 90 | 87 | 73 | 76 | 82 | 81 | 64 | 78 | 70 | 78.4 |
| oTFY (trade finance) | 87 | 86 | 69 | 84 | 72 | 85 | 53 | 73 | 84 | 76.6 |
| sUSDai (GPU loans) | 84 | 84 | 63 | 81 | 72 | 82 | 47 | 74 | 84 | 75.7 |
| PST (payments credit) | 79 | 79 | 70 | 77 | 62 | 78 | 50 | 63 | 79 | 71.4 |
| BUIDL (T-bills) | 70 | 70 | 70 | 70 | 70 | 70 | 70 | 70 | 70 | 70.0 |
| USTB (T-bills) | 70 | 70 | 70 | 70 | 70 | 70 | 70 | 70 | 70 | 70.0 |
| USDY (T-bills) | 70 | 70 | 70 | 70 | 70 | 70 | 70 | 70 | 70 | 70.0 |
| wYLDS (T-bill note) | 70 | 70 | 70 | 70 | 70 | 70 | 70 | 70 | 70 | 70.0 |
| CETES (MXN T-bills) | 81 | 80 | 53 | 80 | 80 | 80 | 56 | 80 | 81 | 63.1 |
| reUSD (reinsurance senior) | 74 | 71 | 71 | 51 | 54 | 53 | 48 | 54 | 73 | 61.2 |
| PRIME (HELOCs) | 69 | 68 | 51 | 67 | 52 | 68 | 34 | 53 | 68 | 59.7 |
| HLSCOPE (private credit) | 71 | 70 | 58 | 55 | 49 | 59 | 26 | 43 | 71 | 57.5 |
| syrupUSDC (secured lending) | 58 | 55 | 36 | 55 | 45 | 55 | 23 | 46 | 57 | 46.7 |
| ACRED (private credit) | 81 | 56 | 50 | 51 | 53 | 52 | 37 | 51 | 81 | 45.0 |
03 // Monte Carlo Uncertainty Bands & 20,000-Draw Rank Probabilities
To eliminate composite-indicator weighting bias (OECD, 2008; Saisana et al., 2005), Table 2 reports P10/P50/P90 across-scenario and worst-scenario scores over 100 Monte Carlo paths per scenario alongside rank-1 probabilities under (a) published weights (30/30/20/20), (b) local Dirichlet perturbations (scales \(\times [\tfrac12, 2]\)), and (c) uniform Dirichlet weights and broad scales (\(\times [\tfrac14, 4]\)) across 20,000 draws:
| Fund | Across-Scenario (P10 / P50 / P90) | Worst Scenario (P10 / P50 / P90) | P(Rank 1) Published | P(Rank 1) Weights & Scales ± | P(Rank 1) Any |
|---|---|---|---|---|---|
| USCC (crypto carry) | 71.4 / 84.2 / 93.4 | 55.2 / 58.0 / 71.7 | 70% | 62% | 42% |
| nOPAL (card receivables) | 76.4 / 80.5 / 82.6 | 40.2 / 51.9 / 59.5 | 27% | 26% | 8% |
| AUTO (auto loans) | 73.6 / 78.7 / 81.8 | 32.8 / 42.8 / 52.2 | 0% | 0% | 0% |
| ONyc (reinsurance) | 74.7 / 78.4 / 80.8 | 51.5 / 59.9 / 65.4 | 3% | 5% | 7% |
| oTFY (trade finance) | 71.5 / 76.6 / 80.8 | 37.5 / 48.1 / 57.4 | 0% | 0% | 0% |
| sUSDai (GPU loans) | 72.0 / 75.7 / 77.8 | 32.1 / 42.9 / 51.6 | 0% | 0% | 1% |
| PST (payments credit) | 64.9 / 71.4 / 77.5 | 36.2 / 46.4 / 55.4 | 0% | 0% | 1% |
| USTB (T-bills) | 70.0 / 70.0 / 70.6 | 70.0 / 70.0 / 70.0 | 0% | 3% | 22% |
| BUIDL (T-bills) | 70.0 / 70.0 / 70.5 | 70.0 / 70.0 / 70.0 | 0% | 1% | 7% |
| USDY (T-bills) | 70.0 / 70.0 / 70.4 | 70.0 / 70.0 / 70.0 | 0% | 1% | 6% |
| wYLDS (T-bill note) | 70.0 / 70.0 / 70.0 | 69.9 / 70.0 / 70.0 | 0% | 1% | 4% |
| CETES (MXN T-bills) | 55.2 / 63.1 / 72.6 | 50.0 / 50.1 / 50.2 | 0% | 1% | 3% |
| reUSD (reinsurance senior) | 55.1 / 61.2 / 67.7 | 35.6 / 41.4 / 50.0 | 0% | 0% | 0% |
| PRIME (HELOCs) | 54.5 / 59.7 / 66.4 | 26.5 / 33.1 / 40.7 | 0% | 0% | 0% |
| HLSCOPE (private credit) | 51.6 / 57.5 / 63.7 | 16.3 / 23.9 / 32.5 | 0% | 0% | 0% |
| syrupUSDC (secured lending) | 41.9 / 46.7 / 52.9 | 19.7 / 21.6 / 27.7 | 0% | 0% | 0% |
| ACRED (private credit) | 38.1 / 45.0 / 50.5 | 21.2 / 29.2 / 37.7 | 0% | 0% | 0% |
04 // Kamino & Loopscale On-Chain Looping Unwind Mechanics
When leveraged holders unwind 60% of their Kamino-looped position in Month 12 and 20% in Month 13, the interaction between looped share and underlying settlement lag \(\lambda\) governs the queue build-up:
- ONyc (reinsurance):
56%of `$301.0M` AUM looped on Kamino, $lambda = 3$ months → baseline score89.6falls to70.1(-19.5 points; max wait3mo, avg wait0.79mo, peak exit discount2.64%, forced-exit return6.27%vs9.27%TWR). - AUTO (auto loans):
95%of `$103.0M` AUM looped on Kamino, $lambda = 1$ month → baseline score88.1falls to82.6(-5.5 points; max wait1mo, avg wait0.43mo, peak exit discount0.57%, forced-exit return8.10%vs8.90%TWR). - oTFY (trade finance):
24%looped, \(\lambda = 1\) month, \(g = 33.0\%/\text{mo}\) → score drops from86.8to84.4(-2.4points; exit discount0.32%). - reUSD (3% looped, \(\lambda=3\) mo), PRIME (15% looped, \(\lambda=1\) mo), syrupUSDC (6% looped, \(\lambda=1\) mo): minor drops of
-1.1(73.7 → 72.6),-0.8(69.0 → 68.2), and-0.6(57.9 → 57.3) points respectively.
05 // Direct Risk Compensation Pricing (\(q = 25\%, \lambda = 0.3\))
Table 3 and Figure 6 report each fund’s probability-weighted excess return over T-bills (Paid, already net of scenario credit write-downs), expected scenario credit loss, annualised forced-exit cost, excess-return volatility, worst-10% excess return, required spread \(s^{\mathrm{req}} = q \cdot \text{Exit cost} + \lambda \cdot \text{Volatility}\), and net margin (Paid − Required):
| Fund | Spread Paid | Scenario Credit Loss | Forced-Exit Cost | Excess Volatility | Worst 10% Excess | Required Spread | Net Margin (Paid − Req.) |
|---|---|---|---|---|---|---|---|
| sUSDai (GPU loans) | 5.44% | 0.35% | 0.17% | 1.65% | 2.30% | 0.54% | +4.90% |
| nOPAL (card receivables) | 5.23% | 0.30% | 0.13% | 1.51% | 2.47% | 0.49% | +4.75% |
| ONyc (reinsurance) | 4.87% | 0.26% | 0.29% | 1.15% | 2.82% | 0.42% | +4.45% |
| AUTO (auto loans) | 4.70% | 0.30% | 0.15% | 1.52% | 1.92% | 0.49% | +4.21% |
| oTFY (trade finance) | 4.10% | 0.23% | 0.15% | 1.29% | 1.84% | 0.43% | +3.68% |
| PST (payments credit) | 3.17% | 0.12% | 0.15% | 1.31% | 0.93% | 0.43% | +2.74% |
| USCC (crypto carry) | 3.49% | 0.21% | 0.00% | 2.94% | -1.29% | 0.88% | +2.60% |
| ACRED (private credit) | 3.45% | 0.17% | 4.83% | 1.34% | 1.15% | 1.61% | +1.84% |
| reUSD (reinsurance senior) | 1.70% | 0.04% | 0.35% | 1.18% | -0.31% | 0.44% | +1.25% |
| PRIME (HELOCs) | 1.40% | 0.21% | 0.17% | 1.33% | -0.88% | 0.44% | +0.96% |
| HLSCOPE (private credit) | 1.32% | 0.16% | 0.43% | 1.25% | -0.82% | 0.48% | +0.84% |
| syrupUSDC (secured lending) | 0.78% | 0.30% | 0.14% | 1.44% | -1.75% | 0.47% | +0.31% (6/9 grid) |
| USTB (T-bills) | -0.25% | 0.00% | 0.00% | 0.31% | -0.79% | 0.09% | -0.35% (fee) |
| BUIDL (T-bills) | -0.28% | 0.00% | 0.00% | 0.31% | -0.82% | 0.09% | -0.38% (fee) |
| USDY (T-bills) | -0.31% | 0.00% | 0.00% | 0.31% | -0.85% | 0.09% | -0.40% (fee) |
| wYLDS (T-bill note) | -0.53% | 0.00% | 0.00% | 0.31% | -1.07% | 0.09% | -0.62% (fee) |
| CETES (MXN T-bills) | 0.73% | 0.50% | 0.00% | 7.61% | -11.83% | 2.28% | -1.55% (FX vol) |
Methodological Caveat: Expected credit losses in Table 3 reflect probability-weighted stress-scenario write-downs only (e.g., 0.30%/yr for AUTO and nOPAL, 0.35%/yr for sUSDai) and likely understate through-the-cycle historical charge-offs for consumer, card, and GPU credit. All outputs are model results under stated assumptions, not credit ratings or investment advice.
06 // One-at-a-Time Parameter Sensitivity & Reverse-Stress Breaking Points
Every parameter lacking a dated primary source in calibration_provenance.csv is swept across a wide grid in the 30% institutional run (Table 4 and Figure 7), while Figure 8 computes the reverse-stress breaking point (the smallest Month-12 institutional withdrawal tender that breaches the 3-month payment objective):
| Fund | Flagged Assumed Params | Most Influential Assumption (Values Swept) | 30% Run Score Range | Max Wait Range (mo) |
|---|---|---|---|---|
| USCC (crypto carry) | 13/21 | Underlying settlement lag (0 mo, 1 mo) | 74.6 – 88.7 | 0 – 1 |
| nOPAL (card receivables) | 14/21 | Underlying settlement lag (0 mo, 1 mo, 2 mo) | 73.9 – 100.0 | 0 – 2 |
| AUTO (auto loans) | 14/21 | Underlying settlement lag (0 mo, 1 mo, 2 mo) | 84.2 – 100.0 | 0 – 1 |
| ONyc (reinsurance) | 14/23 | Cash buffer (non-earning) (0.00%, 10.00%, 20.00%) | 65.3 – 87.1 | 0 – 3 |
| oTFY (trade finance) | 14/22 | Underlying settlement lag (0 mo, 1 mo, 2 mo) | 72.3 – 98.3 | 0 – 2 |
| sUSDai (GPU loans) | 15/21 | Underlying settlement lag (0 mo, 1 mo, 2 mo) | 72.6 – 100.0 | 0 – 2 |
| PST (payments credit) | 14/21 | Underlying settlement lag (0 mo, 1 mo, 2 mo) | 63.3 – 91.2 | 0 – 2 |
| BUIDL (T-bills) | 7/22 | Distributions paid in kind (0.0%, 50.0%, 100.0%) | 70.0 – 70.0 | 0 – 0 |
| USTB (T-bills) | 9/21 | Gross asset yield (2.88%, 3.88%, 4.88%) | 70.0 – 75.2 | 0 – 0 |
| USDY (T-bills) | 10/21 | Gross asset yield (3.18%, 4.18%, 5.18%) | 70.0 – 74.9 | 0 – 0 |
| wYLDS (T-bill note) | 12/22 | Gross asset yield (1.96%, 3.96%, 5.96%) | 70.0 – 79.8 | 0 – 0 |
| CETES (MXN T-bills) | 13/21 | Underlying settlement lag (0 mo, 1 mo) | 56.8 – 80.4 | 0 – 1 |
| reUSD (reinsurance senior) | 14/22 | Gross asset yield (5.96%, 6.96%, 7.96%) | 45.1 – 57.0 | 3 – 3 |
| PRIME (HELOCs) | 13/21 | Underlying settlement lag (0 mo, 1 mo, 2 mo) | 52.7 – 80.6 | 0 – 2 |
| HLSCOPE (private credit) | 13/21 | Underlying settlement lag (1 mo, 2 mo, 3 mo, 4 mo) | 43.6 – 58.6 | 4 – 6 |
| syrupUSDC (secured lending) | 6/21 | Fee as share of gross income (10.0%, 15.0%, 20.0%) | 52.7 – 56.6 | 1 – 1 |
| ACRED (private credit) | 15/21 | Gross asset yield (6.50%, 8.50%, 10.50%) | 37.2 – 60.5 | 17 – 17 |
07 // Technical FAQ: Stock-Flow Equations, Looping & Monte Carlo Risk
1. How does the TokenLab TokenisedProductEconomy engine enforce accrual-basis stock-flow conservation?
At every monthly time step t = 1..36 (m = 12 periods/year), gross assets are V_t = A_t + C_t + R_t (invested assets, cash, and pending settlement receivables from asset sales after permanent haircut η and settlement lag λ). Liabilities are drawn liquidity facility principal F_t, accrued unpaid fees/expenses P_t, and fixed redemption claims Q^fix_t (under request-date pricing). The engine verifies the exact NAV roll-forward NAV_t = NAV_{{t-1}} + I_t + Δ^val_t - Φ_t - L_t - D_t + S_t - X_t + W_t alongside cash, payable, facility, and token-supply identities (N_t active shares + E_t escrowed queue shares) to within 10^-6 across all 15,300 simulated trajectories.
2. How is the no-arbitrage secondary-market executable price p^sec_t derived from the FIFO redemption queue?
With primary redemption price p_t(1 - φ), expected queue clearance wait w_t (queue value divided by per-period reachable liquidity capped by the gate g, and at least λ periods when near-term cash cannot cover the queue), secondary buyer required return r^req, holding yield y_t earned while queued, and illiquidity premium π, the executable secondary price is p^sec_t = p_t(1 - φ)(1 - min{{d_max, 1 - exp(-(r^req - y_t) w_t / m) + π(1 - exp(-w_t))}}). The discount is zero when w_t = 0 and continuous in w_t, ensuring secondary buyers cannot earn riskless arbitrage above r^req + π.
3. How are the four investor score pillars parameterised and why are they orthogonal to sponsor fees?
The investor score is a weighted mean of 4 continuous pillars: Yield S^yield = 100 · clip_[0,1]((R^TWR + y^reward - r_f)/s_y) (30% weight, r_f = 3.96%, s_y = 5%), Exit Liquidity S^exit = 50·exp(-w_bar/s_w) + 50·exp(-δ^max/s_δ) (30% weight, s_w = 2 months, s_δ = 4%), Capital Stability S^stab = 100·exp(-DD^max/s_D) (20% weight, s_D = 5%), and Liquidity Resilience S^res = 100·(1 - exp(-ℓ^min/s_ℓ)) (20% weight, s_ℓ = 10%). Because sponsor fee revenue enters only by reducing investor returns or cash, increasing any fee paid to the sponsor is mathematically non-increasing in the investor score.
4. How was the on-chain Kamino and Loopscale looping unwind scenario calibrated?
On 2026-10-28, we decoded every reserve of the Kamino Lend program and every loan of the Loopscale program on Solana mainnet. For each RWA token, the share of total AUM posted as Kamino collateral (e.g., 95% for AUTO, 56% for ONyc, 24% for oTFY, 15% for PRIME, 8% for nOPAL, 7% for PST, 6% for syrupUSDC, 3% for reUSD) defines a dedicated looped-holder cohort with elevated sensitivity to yield shortfalls, drawdowns, and queues. In the Looping Unwind scenario, this cohort tenders 60% of its position in Month 12 and 20% in Month 13 under otherwise calm baseline parameters.
5. What is the direct risk-compensation formula and why must consumer/credit-card margins be interpreted cautiously?
On every Monte Carlo path, we compute the excess return over that scenario’s T-bill rate (already net of scenario credit write-downs), the annualised forced-exit cost (selling once at the path’s worst secondary discount over the 3-year horizon), and excess-return volatility. The required spread is s^req = q · (forced-exit cost) + λ · volatility. At q = 25% and λ = 0.3, 12 of 13 risky funds have a positive margin (Paid - Required > 0), while CETES fails (-1.55%/yr due to 7.61% FX vol). However, expected credit losses in the simulation come solely from scenario write-downs (e.g., 0.30%/yr for AUTO and nOPAL) and likely understate historical baseline defaults.
Bespoke Mathematical Tokenomics Design & Simulation
cadCAD differential equations and token velocity modeling to design antifragile, sustainable cryptoeconomies.