From 681470104677e7ea42882ea83d76429e0e9cf916 Mon Sep 17 00:00:00 2001 From: microwavedcola1 Date: Fri, 19 Aug 2022 21:18:16 +0200 Subject: [PATCH] add maint debugging Signed-off-by: microwavedcola1 --- ts/client/src/debug-scripts/mb-debug-user.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ts/client/src/debug-scripts/mb-debug-user.ts b/ts/client/src/debug-scripts/mb-debug-user.ts index e7b8b3eb6..2f58c0136 100644 --- a/ts/client/src/debug-scripts/mb-debug-user.ts +++ b/ts/client/src/debug-scripts/mb-debug-user.ts @@ -33,6 +33,18 @@ async function debugUser(client, group, mangoAccount) { 'mangoAccount.getHealthRatio(HealthType.init) ' + mangoAccount.getHealthRatio(HealthType.init).toNumber(), ); + console.log( + 'mangoAccount.getHealthRatioUi(HealthType.init) ' + + mangoAccount.getHealthRatioUi(HealthType.init), + ); + console.log( + 'mangoAccount.getHealthRatio(HealthType.maint) ' + + mangoAccount.getHealthRatio(HealthType.maint).toNumber(), + ); + console.log( + 'mangoAccount.getHealthRatioUi(HealthType.maint) ' + + mangoAccount.getHealthRatioUi(HealthType.maint), + ); console.log( 'mangoAccount.getCollateralValue() ' + toUiDecimalsForQuote(mangoAccount.getCollateralValue().toNumber()),