global: snapshot

This commit is contained in:
nym21
2026-03-05 16:11:25 +01:00
parent 6f2a87be4f
commit eedb8d22c1
61 changed files with 2035 additions and 2757 deletions

View File

@@ -37,7 +37,7 @@ export function buildCohortData() {
LT_AMOUNT_NAMES,
AMOUNT_RANGE_NAMES,
SPENDABLE_TYPE_NAMES,
YEAR_NAMES,
CLASS_NAMES,
} = brk;
// Base cohort representing "all"
@@ -224,11 +224,11 @@ export function buildCohortData() {
};
});
// Year cohorts
const year = entries(utxoCohorts.year)
// Class cohorts
const class_ = entries(utxoCohorts.class)
.reverse()
.map(([key, tree], i, arr) => {
const names = YEAR_NAMES[key];
const names = CLASS_NAMES[key];
return {
name: names.short,
title: names.long,
@@ -253,6 +253,6 @@ export function buildCohortData() {
addressesAmountRanges,
typeAddressable,
typeOther,
year,
class: class_,
};
}

View File

@@ -538,16 +538,6 @@ export function createMarketSection() {
...priceLines({ unit: Unit.index, numbers: [61.8, 38.2] }),
],
},
volatilityChart("Sharpe Ratio", "Sharpe Ratio", Unit.ratio, {
_1w: volatility.sharpe1w,
_1m: volatility.sharpe1m,
_1y: volatility.sharpe1y,
}),
volatilityChart("Sortino Ratio", "Sortino Ratio", Unit.ratio, {
_1w: volatility.sortino1w,
_1m: volatility.sortino1m,
_1y: volatility.sortino1y,
}),
],
},

View File

@@ -51,7 +51,7 @@ export function createPartialOptions() {
addressesAmountRanges,
typeAddressable,
typeOther,
year,
class: class_,
} = buildCohortData();
return [
@@ -263,10 +263,10 @@ export function createPartialOptions() {
createGroupedCohortFolderBasicWithoutMarketCap({
name: "Compare",
title: "Years",
list: year,
list: class_,
all: cohortAll,
}),
...year.map(createCohortFolderBasicWithoutMarketCap),
...class_.map(createCohortFolderBasicWithoutMarketCap),
],
},
],