move to new ixs
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
parent
e39531e87c
commit
2d2a326a53
|
@ -18,6 +18,7 @@ import {
|
|||
PerpMarketIndex,
|
||||
PerpOrderSide,
|
||||
PerpOrderType,
|
||||
PerpSelfTradeBehavior,
|
||||
} from '../../src/accounts/perp';
|
||||
import { MangoClient } from '../../src/client';
|
||||
import { MANGO_V4_ID } from '../../src/constants';
|
||||
|
@ -506,7 +507,7 @@ async function makeMarketUpdateInstructions(
|
|||
|
||||
moveOrders = openOrders.length < 2;
|
||||
|
||||
const placeBidOPegIx = await client.perpPlaceOrderPeggedIx(
|
||||
const placeBidOPegIx = await client.perpPlaceOrderPeggedV2Ix(
|
||||
group,
|
||||
mangoAccount,
|
||||
perpMarketIndex,
|
||||
|
@ -519,12 +520,13 @@ async function makeMarketUpdateInstructions(
|
|||
undefined,
|
||||
Date.now(),
|
||||
PerpOrderType.limit,
|
||||
PerpSelfTradeBehavior.cancelProvide,
|
||||
false,
|
||||
expiryTimestamp,
|
||||
20,
|
||||
);
|
||||
|
||||
const placeAskOPegIx = await client.perpPlaceOrderPeggedIx(
|
||||
const placeAskOPegIx = await client.perpPlaceOrderPeggedV2Ix(
|
||||
group,
|
||||
mangoAccount,
|
||||
perpMarketIndex,
|
||||
|
@ -537,6 +539,7 @@ async function makeMarketUpdateInstructions(
|
|||
undefined,
|
||||
Date.now(),
|
||||
PerpOrderType.limit,
|
||||
PerpSelfTradeBehavior.cancelProvide,
|
||||
false,
|
||||
expiryTimestamp,
|
||||
20,
|
||||
|
@ -624,7 +627,7 @@ async function makeMarketUpdateInstructions(
|
|||
10,
|
||||
);
|
||||
|
||||
const placeBidIx = await client.perpPlaceOrderIx(
|
||||
const placeBidIx = await client.perpPlaceOrderV2Ix(
|
||||
group,
|
||||
mangoAccount,
|
||||
perpMarketIndex,
|
||||
|
@ -634,12 +637,13 @@ async function makeMarketUpdateInstructions(
|
|||
undefined,
|
||||
Date.now(),
|
||||
PerpOrderType.postOnlySlide,
|
||||
PerpSelfTradeBehavior.cancelProvide,
|
||||
false,
|
||||
expiryTimestamp,
|
||||
20,
|
||||
);
|
||||
|
||||
const placeAskIx = await client.perpPlaceOrderIx(
|
||||
const placeAskIx = await client.perpPlaceOrderV2Ix(
|
||||
group,
|
||||
mangoAccount,
|
||||
perpMarketIndex,
|
||||
|
@ -649,6 +653,7 @@ async function makeMarketUpdateInstructions(
|
|||
undefined,
|
||||
Date.now(),
|
||||
PerpOrderType.postOnlySlide,
|
||||
PerpSelfTradeBehavior.cancelProvide,
|
||||
false,
|
||||
expiryTimestamp,
|
||||
20,
|
||||
|
|
Loading…
Reference in New Issue