debug user small changes
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
parent
5c1304466b
commit
2b2d777130
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue