Restrict public acceleration APIs to mainnet
This commit is contained in:
parent
37aee77eb4
commit
b32cce1440
@ -484,7 +484,7 @@ export class BlockComponent implements OnInit, OnDestroy {
|
|||||||
});
|
});
|
||||||
|
|
||||||
this.oobSubscription = block$.pipe(
|
this.oobSubscription = block$.pipe(
|
||||||
filter(() => this.stateService.env.PUBLIC_ACCELERATIONS === true),
|
filter(() => this.stateService.env.PUBLIC_ACCELERATIONS === true && this.stateService.network === ''),
|
||||||
switchMap((block) => this.apiService.getAccelerationsByHeight$(block.height)
|
switchMap((block) => this.apiService.getAccelerationsByHeight$(block.height)
|
||||||
.pipe(
|
.pipe(
|
||||||
map(accelerations => {
|
map(accelerations => {
|
||||||
|
@ -121,7 +121,7 @@ export class PoolComponent implements OnInit {
|
|||||||
);
|
);
|
||||||
|
|
||||||
this.oobFees$ = this.route.params.pipe(map((params) => params.slug)).pipe(
|
this.oobFees$ = this.route.params.pipe(map((params) => params.slug)).pipe(
|
||||||
filter(() => this.stateService.env.PUBLIC_ACCELERATIONS === true),
|
filter(() => this.stateService.env.PUBLIC_ACCELERATIONS === true && this.stateService.network === ''),
|
||||||
switchMap(slug => {
|
switchMap(slug => {
|
||||||
return combineLatest([
|
return combineLatest([
|
||||||
this.apiService.getAccelerationTotals$(this.slug, '1w'),
|
this.apiService.getAccelerationTotals$(this.slug, '1w'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user