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(),