bugfix: prices in wrong interval
This commit is contained in:
parent
1d5f4a845c
commit
861ce15a39
1 changed files with 7 additions and 1 deletions
|
|
@ -365,8 +365,14 @@ pub fn historic_price(
|
|||
if let Some(r) = current_interval.to_result() {
|
||||
result.push(r);
|
||||
}
|
||||
current_interval = current_interval.next();
|
||||
loop {
|
||||
current_interval = current_interval.next();
|
||||
if timestamp < current_interval.end() {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
current_interval.add_pool(sats, tokens);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue