add a public accessor for indexedTotalBorrows on Bank class
This commit is contained in:
parent
c536a04df4
commit
5f0ccc89a6
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue