update script
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
parent
64b0dd5fdb
commit
0b3a69631c
|
@ -80,7 +80,7 @@ const defaultInterestRate = {
|
||||||
|
|
||||||
async function buildAdminClient(): Promise<[MangoClient, Keypair, Keypair]> {
|
async function buildAdminClient(): Promise<[MangoClient, Keypair, Keypair]> {
|
||||||
const admin = Keypair.fromSecretKey(
|
const admin = Keypair.fromSecretKey(
|
||||||
Buffer.from(JSON.parse(fs.readFileSync(MB_PAYER2_KEYPAIR!, 'utf-8'))),
|
Buffer.from(JSON.parse(fs.readFileSync(MB_PAYER3_KEYPAIR!, 'utf-8'))),
|
||||||
);
|
);
|
||||||
|
|
||||||
const options = AnchorProvider.defaultOptions();
|
const options = AnchorProvider.defaultOptions();
|
||||||
|
@ -444,7 +444,7 @@ async function registerPerpMarkets() {
|
||||||
group,
|
group,
|
||||||
new PublicKey(MAINNET_ORACLES.get('MNGO')!),
|
new PublicKey(MAINNET_ORACLES.get('MNGO')!),
|
||||||
1,
|
1,
|
||||||
'MNGO-PERP',
|
'MNGO-PERP-OLD',
|
||||||
defaultOracleConfig,
|
defaultOracleConfig,
|
||||||
6,
|
6,
|
||||||
100, // 0.0001$ is the min tick
|
100, // 0.0001$ is the min tick
|
||||||
|
@ -479,7 +479,7 @@ async function makePerpMarketReduceOnly() {
|
||||||
const creator = result[2];
|
const creator = result[2];
|
||||||
|
|
||||||
const group = await client.getGroupForCreator(creator.publicKey, GROUP_NUM);
|
const group = await client.getGroupForCreator(creator.publicKey, GROUP_NUM);
|
||||||
const perpMarket = group.getPerpMarketByName('MNGO-PERP');
|
const perpMarket = group.getPerpMarketByName('MNGO-PERP-OLD');
|
||||||
await client.perpEditMarket(
|
await client.perpEditMarket(
|
||||||
group,
|
group,
|
||||||
perpMarket.perpMarketIndex,
|
perpMarket.perpMarketIndex,
|
||||||
|
|
Loading…
Reference in New Issue