computer: snapshot

This commit is contained in:
nym21
2026-02-27 11:17:06 +01:00
parent c75421f46e
commit e7a5ab9450
45 changed files with 559 additions and 611 deletions

View File

@@ -40,7 +40,7 @@ impl ComputedFromHeightRatioExtended {
exit: &Exit,
metric_price: &impl ReadableVec<Height, Dollars>,
) -> Result<()> {
let close_price = &prices.usd.price;
let close_price = &prices.price.usd;
self.base
.compute_ratio(starting_indexes, close_price, metric_price, exit)?;
self.extended

View File

@@ -64,7 +64,7 @@ impl ValueFromHeightFull {
Ok(vec.compute_binary::<Sats, Dollars, SatsToDollars>(
max_from,
&self.sats.height,
&prices.usd.price,
&prices.price.usd,
exit,
)?)
})

View File

@@ -59,7 +59,7 @@ impl ValueFromHeightLast {
self.usd.compute_binary::<Sats, Dollars, SatsToDollars>(
max_from,
&self.sats.height,
&prices.usd.price,
&prices.price.usd,
exit,
)?;
Ok(())

View File

@@ -63,7 +63,7 @@ impl LazyComputedValueFromHeightCumulative {
self.usd.compute_binary::<Sats, Dollars, SatsToDollars>(
max_from,
&self.sats.height,
&prices.usd.price,
&prices.price.usd,
exit,
)?;
Ok(())

View File

@@ -63,7 +63,7 @@ impl ValueFromHeightSumCumulative {
Ok(vec.compute_binary::<Sats, Dollars, SatsToDollars>(
max_from,
&self.sats.height,
&prices.usd.price,
&prices.price.usd,
exit,
)?)
})