mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-24 06:39:58 -07:00
global: snapshot
This commit is contained in:
@@ -23,7 +23,7 @@ impl Vecs {
|
||||
|
||||
self.hodl_bank.compute_cumulative_transformed_binary(
|
||||
starting_indexes.height,
|
||||
&prices.price.usd,
|
||||
&prices.price.usd.height,
|
||||
&self.vocdd_365d_median,
|
||||
|price, median| StoredF64::from(f64::from(price) - f64::from(median)),
|
||||
exit,
|
||||
@@ -31,7 +31,7 @@ impl Vecs {
|
||||
|
||||
self.reserve_risk.height.compute_divide(
|
||||
starting_indexes.height,
|
||||
&prices.price.usd,
|
||||
&prices.price.usd.height,
|
||||
&self.hodl_bank,
|
||||
exit,
|
||||
)?;
|
||||
|
||||
@@ -45,7 +45,7 @@ impl Vecs {
|
||||
.compute(starting_indexes.height, &window_starts, exit, |vec| {
|
||||
vec.compute_multiply(
|
||||
starting_indexes.height,
|
||||
&prices.price.usd,
|
||||
&prices.price.usd.height,
|
||||
&coinblocks_destroyed.height,
|
||||
exit,
|
||||
)?;
|
||||
@@ -56,7 +56,7 @@ impl Vecs {
|
||||
.compute(starting_indexes.height, &window_starts, exit, |vec| {
|
||||
vec.compute_multiply(
|
||||
starting_indexes.height,
|
||||
&prices.price.usd,
|
||||
&prices.price.usd.height,
|
||||
&activity.coinblocks_created.height,
|
||||
exit,
|
||||
)?;
|
||||
@@ -67,7 +67,7 @@ impl Vecs {
|
||||
.compute(starting_indexes.height, &window_starts, exit, |vec| {
|
||||
vec.compute_multiply(
|
||||
starting_indexes.height,
|
||||
&prices.price.usd,
|
||||
&prices.price.usd.height,
|
||||
&activity.coinblocks_stored.height,
|
||||
exit,
|
||||
)?;
|
||||
@@ -81,7 +81,7 @@ impl Vecs {
|
||||
.compute(starting_indexes.height, &window_starts, exit, |vec| {
|
||||
vec.compute_transform3(
|
||||
starting_indexes.height,
|
||||
&prices.price.usd,
|
||||
&prices.price.usd.height,
|
||||
&coindays_destroyed.height,
|
||||
circulating_supply,
|
||||
|(i, price, cdd, supply, _): (_, Dollars, StoredF64, Bitcoin, _)| {
|
||||
|
||||
Reference in New Issue
Block a user