mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-25 23:29:58 -07:00
global: snapshot
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
)?;
|
||||
|
||||
|
||||
@@ -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(())
|
||||
|
||||
@@ -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,
|
||||
)?;
|
||||
|
||||
|
||||
@@ -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,
|
||||
)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user