Merge branch 'master' into natsoni/more-fiat-currencies

This commit is contained in:
natsoni
2024-03-09 11:53:07 +01:00
committed by GitHub
29 changed files with 509 additions and 231 deletions

View File

@@ -56,6 +56,9 @@ class AccelerationRepository {
}
public async $getAccelerationInfo(poolSlug: string | null = null, height: number | null = null, interval: string | null = null): Promise<PublicAcceleration[]> {
if (!interval || !['24h', '3d', '1w', '1m'].includes(interval)) {
interval = '1m';
}
interval = Common.getSqlInterval(interval);
if (!config.MEMPOOL_SERVICES.ACCELERATIONS || (interval == null && poolSlug == null && height == null)) {