debug user small changes

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
microwavedcola1 2022-12-14 21:05:05 +01:00
parent 5c1304466b
commit 2b2d777130
1 changed files with 15 additions and 4 deletions

View File

@ -178,9 +178,11 @@ async function debugUser(
.toFixed(3)
.padStart(10)})`,
);
if (maxQuoteUi > 0) {
expect(simMaxQuote).gt(2);
expect(simMaxQuote).lt(3);
}
}
for (const perpMarket of Array.from(
group.perpMarketsMapByMarketIndex.values(),
)) {
@ -254,10 +256,19 @@ async function main(): Promise<void> {
// ]);
for (const mangoAccount of mangoAccounts) {
if (
// eslint-disable-next-line no-constant-condition
true
// Enable below to debug specific mango accounts
// mangoAccount.publicKey.equals(
// new PublicKey('BXUPaeAWRCPvPdpndXJeykD8VYZJwrCBjZdWNZAu8Ca'),
// )
) {
console.log(`MangoAccount ${mangoAccount.publicKey}`);
await debugUser(client, group, mangoAccount);
}
}
}
process.exit();
}