From 9e6aff5abe4326d3c611ce93d06fcbb0da4a6fa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danilo=20Arau=CC=81jo=20Silva?= Date: Thu, 5 Oct 2023 19:26:32 +0200 Subject: [PATCH] Solving lint errors. --- src/connectors/kujira/kujira.convertors.ts | 26 ++++++++++++---------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/connectors/kujira/kujira.convertors.ts b/src/connectors/kujira/kujira.convertors.ts index b7615a1c8a..5c7355d14a 100644 --- a/src/connectors/kujira/kujira.convertors.ts +++ b/src/connectors/kujira/kujira.convertors.ts @@ -510,26 +510,26 @@ export const convertKujiraBalancesToBalances = async ( let token: any = undefined; let amount: any = undefined; if ( - [OrderStatus.OPEN, OrderStatus.PARTIALLY_FILLED].includes( - getNotNullOrThrowError(order.status) - ) + [OrderStatus.OPEN, OrderStatus.PARTIALLY_FILLED].includes( + getNotNullOrThrowError(order.status) + ) ) { token = - order.side == OrderSide.BUY - ? order.market.quoteToken - : order.market.baseToken; + order.side == OrderSide.BUY + ? order.market.quoteToken + : order.market.baseToken; amount = BigNumber(order.connectorOrder.offer_amount).div( - BigNumber(10).pow(token?.decimals) + BigNumber(10).pow(token?.decimals) ); } else if (order.status == OrderStatus.FILLED) { token = - order.side == OrderSide.BUY - ? order.market.baseToken - : order.market.quoteToken; + order.side == OrderSide.BUY + ? order.market.baseToken + : order.market.quoteToken; amount = BigNumber(order.connectorOrder.filled_amount).div( - BigNumber(10).pow(token?.decimals) + BigNumber(10).pow(token?.decimals) ); } @@ -569,7 +569,9 @@ export const convertKujiraBalancesToBalances = async ( tokenBalance.inUSD.lockedInOrders.plus(amount?.multipliedBy(quotation)); } else if (order.status == OrderStatus.FILLED) { tokenBalance.unsettled = tokenBalance.unsettled.plus(amount); - tokenBalance.inUSD.unsettled = tokenBalance.inUSD.unsettled.plus(amount?.multipliedBy(quotation)); + tokenBalance.inUSD.unsettled = tokenBalance.inUSD.unsettled.plus( + amount?.multipliedBy(quotation) + ); } }