From 53dff660f74d6674f98937160e5db71304925f6c Mon Sep 17 00:00:00 2001 From: 2NNatural Date: Wed, 19 Aug 2026 16:40:19 -0700 Subject: [PATCH] Adjust default configuration --- components/day-v3/url-state.test.ts | 12 ++++++------ lib/day-sample-sources/jbbb/v3-defaults.ts | 6 +++--- scripts/day-v3/v2-output-regression.test.ts | 13 ++++++------- 3 files changed, 15 insertions(+), 16 deletions(-) diff --git a/components/day-v3/url-state.test.ts b/components/day-v3/url-state.test.ts index 76c4a91..ee5be11 100644 --- a/components/day-v3/url-state.test.ts +++ b/components/day-v3/url-state.test.ts @@ -107,7 +107,7 @@ assert.equal( listedSource.state.protectedDrawdownPct, 15, ); -assert.equal(listedSource.state.recoveryDays, 90); +assert.equal(listedSource.state.recoveryDays, 23); assert.equal(listedSource.state.immediateExitSharePct, 0); assert.equal(listedSource.state.minimumProceedsPer100, 95); assert.equal(listedSource.state.quoteAssetLabel, "sr-srRoyUSDC"); @@ -118,8 +118,8 @@ assert.equal(listedSource.state.marketMakerCostOfCapitalPct, 12); assert.equal(listedSource.state.redemptionDays, 7); assert.deepEqual(listedSource.state.overrides, { jrYieldShareAtZeroPct: 7.5, - jrYieldShareAtTargetPct: 14.8801, - jrYieldShareAtFullPct: 45, + jrYieldShareAtTargetPct: 14.4, + jrYieldShareAtFullPct: 67, slpYieldShareAtZeroPct: 0, slpYieldShareAtTargetPct: 0, slpYieldShareAtFullPct: 0, @@ -148,12 +148,12 @@ const listedSourceQuery = buildDayV3Query({ for (const expected of [ "m=jbbb", "protect=15", - "recover=90", + "recover=23", "exit=0", "receive=0", "jr0=7.5", - "jr90=14.8801", - "jr100=45", + "jr90=14.4", + "jr100=67", "slp0=0", "slp90=0", "slp100=0", diff --git a/lib/day-sample-sources/jbbb/v3-defaults.ts b/lib/day-sample-sources/jbbb/v3-defaults.ts index 22ddb49..43c9dfe 100644 --- a/lib/day-sample-sources/jbbb/v3-defaults.ts +++ b/lib/day-sample-sources/jbbb/v3-defaults.ts @@ -9,7 +9,7 @@ import type { DayV3Overrides } from "@/lib/day-v3/types"; */ export const JBBB_V3_DEFAULTS = { protectedDrawdownPct: 15, - recoveryDays: 90, + recoveryDays: 23, immediateExitSharePct: 0, minimumProceedsPer100: 95, quoteAssetLabel: "sr-srRoyUSDC", @@ -26,8 +26,8 @@ export const JBBB_V3_DEFAULTS = { }, overrides: { jrYieldShareAtZeroPct: 7.5, - jrYieldShareAtTargetPct: 14.8801, - jrYieldShareAtFullPct: 45, + jrYieldShareAtTargetPct: 14.4, + jrYieldShareAtFullPct: 67, slpYieldShareAtZeroPct: 0, slpYieldShareAtTargetPct: 0, slpYieldShareAtFullPct: 0, diff --git a/scripts/day-v3/v2-output-regression.test.ts b/scripts/day-v3/v2-output-regression.test.ts index 4d1df66..770dd4a 100644 --- a/scripts/day-v3/v2-output-regression.test.ts +++ b/scripts/day-v3/v2-output-regression.test.ts @@ -75,8 +75,8 @@ assert.deepEqual(actual, { }); // The JBBB Explorer default keeps its published forward SEC yield independent -// from the raw historical path. Its explicitly selected no-SLP design targets -// 30 bps over the 4.77% JAAA reference under the live 5% premium-fee policy. +// from the raw historical path. This records the explicitly selected no-SLP +// design under the live 5% premium-fee policy. const jbbbCoverage = recommendDayV3Coverage(defaults, { protectedDrawdownPct: JBBB_V3_DEFAULTS.protectedDrawdownPct, }); @@ -98,14 +98,13 @@ const jbbbDefaultScenario = runDayTargetScenario({ liqYDM: noSlp, }); assert.ok( - Math.abs(jbbbDefaultScenario.seniorApy - 0.0507) < 1e-7, - `JBBB Senior must remain at the 5.07% target (got ${jbbbDefaultScenario.seniorApy})`, + Math.abs(jbbbDefaultScenario.seniorApy - 0.05098398920715996) < 1e-12, + `JBBB Senior default drifted (got ${jbbbDefaultScenario.seniorApy})`, ); assert.equal(jbbbDefaultScenario.liquidityApy, 0); assert.ok( - jbbbDefaultScenario.juniorApy > 0.102 && - jbbbDefaultScenario.juniorApy < 0.103, - `JBBB Junior should be about 10.2% under the verified 5.97% input (got ${jbbbDefaultScenario.juniorApy})`, + Math.abs(jbbbDefaultScenario.juniorApy - 0.10106262326699689) < 1e-12, + `JBBB Junior default drifted (got ${jbbbDefaultScenario.juniorApy})`, ); console.log("Day V2 key-output regression: PASS (fee-inclusive shared-engine baseline)");