added getCompleteMarginACcountsForOwner
This commit is contained in:
parent
222262e43a
commit
8cba70abcd
|
@ -132,6 +132,10 @@ export class MarginAccount {
|
||||||
return nativeToUi(this.getNativeBorrow(mangoGroup, tokenIndex), mangoGroup.mintDecimals[tokenIndex])
|
return nativeToUi(this.getNativeBorrow(mangoGroup, tokenIndex), mangoGroup.mintDecimals[tokenIndex])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getUiSrmBalance() {
|
||||||
|
return nativeToUi(this.srmBalance, SRM_DECIMALS)
|
||||||
|
}
|
||||||
|
|
||||||
async loadOpenOrders(
|
async loadOpenOrders(
|
||||||
connection: Connection,
|
connection: Connection,
|
||||||
dexProgramId: PublicKey
|
dexProgramId: PublicKey
|
||||||
|
|
Loading…
Reference in New Issue