Merge branch 'master' into nymkappa/bugfix/unknown-pool-yellow
This commit is contained in:
commit
ea74a737ff
@ -93,6 +93,10 @@ export class PriceService {
|
|||||||
* @param blockTimestamp
|
* @param blockTimestamp
|
||||||
*/
|
*/
|
||||||
getPriceForTimestamp(blockTimestamp: number): Price | null {
|
getPriceForTimestamp(blockTimestamp: number): Price | null {
|
||||||
|
if (!blockTimestamp) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
|
||||||
const priceTimestamps = Object.keys(this.historicalPrice.prices);
|
const priceTimestamps = Object.keys(this.historicalPrice.prices);
|
||||||
priceTimestamps.push(Number.MAX_SAFE_INTEGER.toString());
|
priceTimestamps.push(Number.MAX_SAFE_INTEGER.toString());
|
||||||
priceTimestamps.sort().reverse();
|
priceTimestamps.sort().reverse();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user