Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions components/day-v3/url-state.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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,
Expand Down Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions lib/day-sample-sources/jbbb/v3-defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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,
Expand Down
13 changes: 6 additions & 7 deletions scripts/day-v3/v2-output-regression.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand All @@ -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)");
Loading