global: snapshot

This commit is contained in:
nym21
2026-03-02 23:57:22 +01:00
parent ccb2db2309
commit 0628f08e6b
21 changed files with 245 additions and 351 deletions
@@ -15,7 +15,7 @@ use crate::{
CentsPlus, CentsUnsignedToDollars, ComputedFromHeightCumulative, ComputedFromHeight,
ComputedFromHeightRatio, NegCentsUnsignedToDollars, ValueFromHeightCumulative, LazyFromHeight,
PercentageCentsF32, PercentageCentsSignedCentsF32, PercentageCentsSignedDollarsF32, Price, RatioCents64,
StoredF32Identity, ValueFromHeight,
Identity, ValueFromHeight,
},
prices,
};
@@ -344,7 +344,7 @@ impl RealizedBase {
cfg.indexes,
)?;
let mvrv = LazyFromHeight::from_computed::<StoredF32Identity>(
let mvrv = LazyFromHeight::from_computed::<Identity<StoredF32>>(
&cfg.name("mvrv"),
cfg.version,
realized_price_extra.ratio.height.read_only_boxed_clone(),
@@ -4,9 +4,8 @@ use brk_types::{Dollars, Height, Sats, StoredF32, StoredF64, Version};
use vecdb::{Exit, ReadableCloneableVec, ReadableVec, Rw, StorageMode};
use crate::internal::{
ComputedFromHeight, LazyFromHeight,
ComputedFromHeight, Identity, LazyFromHeight,
NegPercentageDollarsF32, PercentageDollarsF32, PercentageSatsF64,
StoredF32Identity,
};
use crate::distribution::metrics::{ImportConfig, RealizedBase, UnrealizedBase};
@@ -41,7 +40,7 @@ impl RelativeBase {
cfg.db, &cfg.name("net_unrealized_pnl_rel_to_market_cap"), cfg.version + v2, cfg.indexes,
)?;
let nupl = LazyFromHeight::from_computed::<StoredF32Identity>(
let nupl = LazyFromHeight::from_computed::<Identity<StoredF32>>(
&cfg.name("nupl"),
cfg.version + v2,
net_unrealized_pnl_rel_to_market_cap.height.read_only_boxed_clone(),