computer: big refactor

This commit is contained in:
nym21
2025-12-03 19:33:08 +01:00
parent fcc74ba212
commit d27cc02e8c
34 changed files with 2343 additions and 7340 deletions

View File

@@ -27,6 +27,7 @@ mod traits;
mod utils;
use indexes::Indexes;
use utils::OptionExt;
// pub use pools::*;
pub use states::PriceToAmount;
@@ -162,7 +163,7 @@ impl Computer {
info!("Computing prices...");
let i = Instant::now();
self.price.as_mut().unwrap().compute(
self.price.um().compute(
&self.indexes,
&starting_indexes,
fetched,