Add out of band fees to pools page

This commit is contained in:
Mononaut
2024-03-15 07:41:07 +00:00
parent 120ffdb0f4
commit a44219a3c3
4 changed files with 88 additions and 2 deletions

View File

@@ -442,4 +442,18 @@ export class ApiService {
this.apiBaseUrl + this.apiBasePath + '/api/v1/accelerations/interval' + (interval !== undefined ? `/${interval}` : '')
);
}
getAccelerationTotals$(pool?: string, interval?: string): Observable<{ cost: number, count: number }> {
const queryParams = new URLSearchParams();
if (pool) {
queryParams.append('pool', pool);
}
if (interval) {
queryParams.append('interval', interval);
}
const queryString = queryParams.toString();
return this.httpClient.get<{ cost: number, count: number }>(
this.apiBaseUrl + this.apiBasePath + '/api/v1/accelerations/total' + (queryString?.length ? '?' + queryString : '')
);
}
}