Temporarily disable health region use on mm script

This commit is contained in:
Christian Kamm 2023-03-18 11:05:27 +01:00
parent a00c65155a
commit 91ee9b3e08
1 changed files with 8 additions and 6 deletions

View File

@ -468,9 +468,10 @@ async function makeMarketUpdateInstructions(
),
];
instructions.push(
await client.healthRegionBeginIx(group, mangoAccount, [], [perpMarket]),
);
// Temporary: Health regions are currently disabled on mainnet for security reasons
//instructions.push(
// await client.healthRegionBeginIx(group, mangoAccount, [], [perpMarket]),
//);
const expiryTimestamp =
params.tif !== undefined ? Date.now() / 1000 + params.tif : 0;
@ -698,9 +699,10 @@ async function makeMarketUpdateInstructions(
}
}
instructions.push(
await client.healthRegionEndIx(group, mangoAccount, [], [perpMarket]),
);
// Temporary: Health regions are currently disabled on mainnet for security reasons
//instructions.push(
// await client.healthRegionEndIx(group, mangoAccount, [], [perpMarket]),
//);
// If instruction is only the sequence enforcement and health region ixs, then just send empty
if (instructions.length === 3) {