fix: fix frontage config

This commit is contained in:
Mikhail Gladchenko
2024-03-29 14:07:23 +00:00
parent 14035cfcc3
commit d024d475a7
5 changed files with 18 additions and 125 deletions

View File

@@ -2,7 +2,6 @@ import { JsonRpcProvider } from 'ethers';
import { Aggregator } from '../services/Aggregator';
import { BlockchainService } from '../services/BlockchainService';
import { PriceFeed } from '../services/PriceFeed';
import { Frontage } from '../services/Frontage';
import type {
KnownEnv,
SupportedChainId,
@@ -36,8 +35,6 @@ export default class Unit {
public readonly priceFeed: PriceFeed;
public readonly frontage: Frontage;
public readonly exchange: Exchange;
public readonly config: VerboseUnitConfig;
@@ -90,10 +87,7 @@ export default class Unit {
},
indexer: {
api: networkConfig.api + networkConfig.services.indexer?.http,
},
frontage: {
http: networkConfig.api + networkConfig.services.frontage.http,
},
}
},
};
} else {
@@ -130,9 +124,6 @@ export default class Unit {
this.config.services.priceFeed.api,
this.config.basicAuth
);
this.frontage = new Frontage(
this.config.services.frontage.http
);
this.exchange = new Exchange(this);
this.pmm = new Pmm(this);
}