Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
Fix: exporter dual start (#85)
Browse files Browse the repository at this point in the history
* fix: remove dual exporter run call
Co-authored-by: Sebastien Verreault <[email protected]>
  • Loading branch information
sebastienverreault authored Apr 8, 2022
1 parent 75a46ce commit 3a5a904
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dealer/src/servers/exporter/exporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,9 @@ export async function exporter() {
// load transaction to be up-to-date
await dealer.fetchAndLoadTransactions()

// load funding rates to be up-to-date
await dealer.fetchAndLoadTransactions()

let averageOpenPrice = 0
let swapPosInCt = 0
const liabilityInUsd = await dealer.getLiabilityInUsd()
Expand Down Expand Up @@ -584,5 +587,3 @@ export async function exporter() {
logger.info(`Server listening to ${port}, metrics exposed on /metrics endpoint`)
server.listen(port)
}

exporter().catch((err) => logger.error(err))

0 comments on commit 3a5a904

Please sign in to comment.