global: snapshot

This commit is contained in:
nym21
2026-03-07 00:49:14 +01:00
parent 011e49e1cc
commit a29ae29487
10 changed files with 234 additions and 290 deletions

View File

@@ -72,7 +72,6 @@ pub struct RealizedFull<M: StorageMode = Rw> {
pub realized_price_ratio_std_dev: ComputedFromHeightRatioStdDevBands<M>,
pub investor_price_ratio_percentiles: ComputedFromHeightRatioPercentiles<M>,
pub investor_price_ratio_std_dev: ComputedFromHeightRatioStdDevBands<M>,
}
impl RealizedFull {
@@ -168,12 +167,6 @@ impl RealizedFull {
investor_price_version,
cfg.indexes,
)?,
investor_price_ratio_std_dev: ComputedFromHeightRatioStdDevBands::forced_import(
cfg.db,
&investor_price_name,
investor_price_version,
cfg.indexes,
)?,
})
}
@@ -426,7 +419,7 @@ impl RealizedFull {
&self.core.minimal.realized_price.cents.height,
)?;
// Investor price: percentiles + stddev bands
// Investor price: percentiles
let investor_price = &self.investor_price.cents.height;
self.investor_price_ratio_percentiles.compute(
blocks,
@@ -435,13 +428,6 @@ impl RealizedFull {
&self.investor_price_ratio.ratio.height,
investor_price,
)?;
self.investor_price_ratio_std_dev.compute(
blocks,
starting_indexes,
exit,
&self.investor_price_ratio.ratio.height,
investor_price,
)?;
Ok(())
}