add a public accessor for indexedTotalBorrows on Bank class

This commit is contained in:
tjs 2022-05-25 20:28:14 -04:00
parent c536a04df4
commit 5f0ccc89a6
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@ export class Bank {
public depositIndex: I80F48;
public borrowIndex: I80F48;
public indexedTotalDeposits: I80F48;
public indexedTotalBorrows: I80F48;
static from(
publicKey: PublicKey,
@ -103,6 +104,7 @@ export class Bank {
this.depositIndex = I80F48.from(depositIndex);
this.borrowIndex = I80F48.from(borrowIndex);
this.indexedTotalDeposits = I80F48.from(indexedTotalDeposits);
this.indexedTotalBorrows = I80F48.from(indexedTotalBorrows);
}
toString(): string {