From d9904d486f8c72e23d1395ec27952beadeb3dde6 Mon Sep 17 00:00:00 2001 From: 0xgnek <0xgnek@gmail.com> Date: Mon, 16 Oct 2023 13:19:41 +0000 Subject: [PATCH] fix open interest --- dexs/contango/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dexs/contango/index.ts b/dexs/contango/index.ts index bfd31a9d9f..ed4a7f371e 100644 --- a/dexs/contango/index.ts +++ b/dexs/contango/index.ts @@ -50,7 +50,7 @@ const fetchVolume = async (timestamp: number) => { const yesterday = response.yesterday.find((e: IAssetTotals) => e.id === asset.id); const totalVolume = Number(asset.totalVolume) - Number(yesterday?.totalVolume || 0); const totalFees = Number(asset.totalFees) - Number(yesterday?.totalFees || 0); - const openInterest = Math.abs(Number(asset.openInterest) - Number(yesterday?.openInterest || 0)); + const openInterest = Math.abs(Number(asset.openInterest)); return { id: asset.id, openInterest: openInterest ? `${openInterest}` : 0,