diff --git a/explorer/src/components/instruction/mango/PlacePerpOrderDetailsCard.tsx b/explorer/src/components/instruction/mango/PlacePerpOrderDetailsCard.tsx index 5ff84451ff..4625fb2157 100644 --- a/explorer/src/components/instruction/mango/PlacePerpOrderDetailsCard.tsx +++ b/explorer/src/components/instruction/mango/PlacePerpOrderDetailsCard.tsx @@ -113,6 +113,10 @@ export function PlacePerpOrderDetailsCard(props: { {orderLotDetails?.size} )} + + Reduce only + {info.reduceOnly} + ); } diff --git a/explorer/src/components/instruction/mango/types.ts b/explorer/src/components/instruction/mango/types.ts index de186276fa..cc489f61a4 100644 --- a/explorer/src/components/instruction/mango/types.ts +++ b/explorer/src/components/instruction/mango/types.ts @@ -192,7 +192,9 @@ export type PlacePerpOrder = { clientOrderId: String; side: String; orderType: String; + reduceOnly: String; }; + export const decodePlacePerpOrder = ( ix: TransactionInstruction ): PlacePerpOrder => { @@ -203,6 +205,7 @@ export const decodePlacePerpOrder = ( clientOrderId: decoded.PlacePerpOrder.clientOrderId.toString(), side: decoded.PlacePerpOrder.side.toString(), orderType: decoded.PlacePerpOrder.orderType.toString(), + reduceOnly: decoded.PlacePerpOrder.reduceOnly.toString(), }; return placePerpOrder;