From 8cba70abcd4f43b89944fef14c25741c8607b0e4 Mon Sep 17 00:00:00 2001 From: dd Date: Wed, 17 Feb 2021 14:22:28 -0500 Subject: [PATCH] added getCompleteMarginACcountsForOwner --- src/client.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/client.ts b/src/client.ts index 672e8c0..31f47d0 100644 --- a/src/client.ts +++ b/src/client.ts @@ -132,6 +132,10 @@ export class MarginAccount { return nativeToUi(this.getNativeBorrow(mangoGroup, tokenIndex), mangoGroup.mintDecimals[tokenIndex]) } + getUiSrmBalance() { + return nativeToUi(this.srmBalance, SRM_DECIMALS) + } + async loadOpenOrders( connection: Connection, dexProgramId: PublicKey