mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-17 00:31:34 +03:00
fix: fix frontage config
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user