From 6efc35cce05e009b36b61a77b1fbc6cfeef6a8d6 Mon Sep 17 00:00:00 2001 From: ALPAC-4 Date: Fri, 12 Nov 2021 12:02:48 +0900 Subject: [PATCH] fix: balance query fix --- src/facade/terra-anchor-earn.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/facade/terra-anchor-earn.ts b/src/facade/terra-anchor-earn.ts index 9b9954f..d3e0639 100644 --- a/src/facade/terra-anchor-earn.ts +++ b/src/facade/terra-anchor-earn.ts @@ -504,7 +504,7 @@ export class TerraAnchorEarn implements AnchorEarnOperations { return { currency: mapCurrencyToUST(currency), - account_balance: getNaturalDecimals(accountBalance[0].amount.toString()), + account_balance: getNaturalDecimals(accountBalance[0]?.amount.toString()), deposit_balance: getNaturalDecimals( new Int( new Dec(depositBalance[0].balance).mul(exchangeRate).toString(),