added getCompleteMarginACcountsForOwner

This commit is contained in:
dd 2021-02-17 14:22:28 -05:00
parent 222262e43a
commit 8cba70abcd
1 changed files with 4 additions and 0 deletions

View File

@ -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