Merge branch 'master' into nymkappa/bugfix/unknown-pool-yellow

This commit is contained in:
wiz 2023-02-23 12:25:33 +09:00 committed by GitHub
commit ea74a737ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,6 +93,10 @@ export class PriceService {
* @param blockTimestamp
*/
getPriceForTimestamp(blockTimestamp: number): Price | null {
if (!blockTimestamp) {
return undefined;
}
const priceTimestamps = Object.keys(this.historicalPrice.prices);
priceTimestamps.push(Number.MAX_SAFE_INTEGER.toString());
priceTimestamps.sort().reverse();