log format
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
parent
db93aeaa32
commit
e00f189687
|
@ -143,35 +143,37 @@ export class Bank {
|
||||||
toString(): string {
|
toString(): string {
|
||||||
return (
|
return (
|
||||||
'Bank ' +
|
'Bank ' +
|
||||||
'\n token index -' +
|
'\n token index - ' +
|
||||||
this.tokenIndex +
|
this.tokenIndex +
|
||||||
'\n deposit index -' +
|
'\n token name - ' +
|
||||||
|
this.name +
|
||||||
|
'\n deposit index - ' +
|
||||||
this.depositIndex.toNumber() +
|
this.depositIndex.toNumber() +
|
||||||
'\n borrow index -' +
|
'\n borrow index - ' +
|
||||||
this.borrowIndex.toNumber() +
|
this.borrowIndex.toNumber() +
|
||||||
'\n cachedIndexedTotalDeposits -' +
|
'\n cachedIndexedTotalDeposits - ' +
|
||||||
this.cachedIndexedTotalDeposits.toNumber() +
|
this.cachedIndexedTotalDeposits.toNumber() +
|
||||||
'\n cachedIndexedTotalBorrows -' +
|
'\n cachedIndexedTotalBorrows - ' +
|
||||||
this.cachedIndexedTotalBorrows.toNumber() +
|
this.cachedIndexedTotalBorrows.toNumber() +
|
||||||
'\n maxRate -' +
|
'\n maxRate - ' +
|
||||||
this.maxRate.toNumber() +
|
this.maxRate.toNumber() +
|
||||||
'\n util0 -' +
|
'\n util0 - ' +
|
||||||
this.util0.toNumber() +
|
this.util0.toNumber() +
|
||||||
'\n rate0 -' +
|
'\n rate0 - ' +
|
||||||
this.rate0.toNumber() +
|
this.rate0.toNumber() +
|
||||||
'\n util1 -' +
|
'\n util1 - ' +
|
||||||
this.util1.toNumber() +
|
this.util1.toNumber() +
|
||||||
'\n rate1 -' +
|
'\n rate1 - ' +
|
||||||
this.rate1.toNumber() +
|
this.rate1.toNumber() +
|
||||||
'\n maintAssetWeight -' +
|
'\n maintAssetWeight - ' +
|
||||||
this.maintAssetWeight.toNumber() +
|
this.maintAssetWeight.toNumber() +
|
||||||
'\n initAssetWeight -' +
|
'\n initAssetWeight - ' +
|
||||||
this.initAssetWeight.toNumber() +
|
this.initAssetWeight.toNumber() +
|
||||||
'\n maintLiabWeight -' +
|
'\n maintLiabWeight - ' +
|
||||||
this.maintLiabWeight.toNumber() +
|
this.maintLiabWeight.toNumber() +
|
||||||
'\n initLiabWeight -' +
|
'\n initLiabWeight - ' +
|
||||||
this.initLiabWeight.toNumber() +
|
this.initLiabWeight.toNumber() +
|
||||||
'\n liquidationFee -' +
|
'\n liquidationFee - ' +
|
||||||
this.liquidationFee.toNumber()
|
this.liquidationFee.toNumber()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -154,9 +154,7 @@ async function main() {
|
||||||
|
|
||||||
// log tokens/banks
|
// log tokens/banks
|
||||||
for (const bank of await group.banksMap.values()) {
|
for (const bank of await group.banksMap.values()) {
|
||||||
console.log(
|
console.log(`${bank.toString()}`);
|
||||||
`...registered Bank ${bank.name} ${bank.tokenIndex} ${bank.publicKey}, mint ${bank.mint}, oracle ${bank.oracle}`,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
process.exit();
|
process.exit();
|
||||||
|
|
Loading…
Reference in New Issue