make untrusted till we have figured out perp settling (#379)

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
microwavedcola1 2023-01-13 10:08:40 +01:00 committed by GitHub
parent 5227daa0b8
commit ecc22f85d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 40 additions and 0 deletions

View File

@ -509,6 +509,45 @@ async function makePerpMarketReduceOnly() {
);
}
async function makePerpMarketUntrusted() {
const result = await buildAdminClient();
const client = result[0];
const admin = result[1];
const creator = result[2];
const group = await client.getGroupForCreator(creator.publicKey, GROUP_NUM);
const perpMarket = group.getPerpMarketByName('BTC-PERP');
await client.perpEditMarket(
group,
perpMarket.perpMarketIndex,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
false,
null,
null,
null,
null,
null,
null,
null,
null,
null,
);
}
async function createAndPopulateAlt() {
const result = await buildAdminClient();
const client = result[0];
@ -669,6 +708,7 @@ async function main() {
try {
// await registerPerpMarkets();
// await makePerpMarketReduceOnly();
// await makePerpMarketUntrusted();
} catch (error) {
console.log(error);
}