Skip to content

Commit

Permalink
fix: fix initial balance calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
MrWad3r committed Jan 22, 2025
1 parent 1f73599 commit 6c2e234
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/token_wallet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,11 @@ impl TokenWallet {
let prices = config.raw_config().storage_prices()?;
let mut most_recent_bit_price = 0;
let mut most_recent_mc_bit_price = 0;
let mut most_recent_time = 0;
let mut most_recent_time: i32 = -1;

prices.map.iterate(|price| {
if most_recent_time < price.utime_since {
most_recent_time = price.utime_since;
if most_recent_time < price.utime_since as i32 {
most_recent_time = price.utime_since as i32;
most_recent_bit_price = price.bit_price_ps;
most_recent_mc_bit_price = price.mc_bit_price_ps;
}
Expand Down

0 comments on commit 6c2e234

Please sign in to comment.