Merge pull request #451 from blockworks-foundation/feature/fix-close-account

exclude perp oracle pk from helthaccount during close account inst
This commit is contained in:
Adrian Brzeziński 2023-02-13 16:58:15 +01:00 committed by GitHub
commit 5534b9e46b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -941,7 +941,7 @@ export class MangoClient {
mangoAccount,
perpMarketIndex,
);
healthAccountsToExclude.push(perpMarket.publicKey);
healthAccountsToExclude.push(perpMarket.publicKey, perpMarket.oracle);
instructions.push(deactivatingPositionIx);
}