global: snapshot

This commit is contained in:
nym21
2026-02-28 00:22:55 +01:00
parent 85c7933ad6
commit a2bd7ca299
38 changed files with 279 additions and 166 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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