Add data + fix positions
This commit is contained in:
@@ -117,7 +117,7 @@ export type DecreasePositionAmounts = {
|
||||
receiveTokenAmount: bigint;
|
||||
receiveUsd: bigint;
|
||||
|
||||
triggerOrderType?: OrderType.LimitDecrease | OrderType.StopLossDecrease;
|
||||
triggerOrderType?: OrderType.LimitDecrease | OrderType.StopLossDecrease | OrderType.MarketDecrease;
|
||||
triggerThresholdType?: TriggerThresholdType;
|
||||
decreaseSwapType: DecreasePositionSwapType;
|
||||
};
|
||||
|
||||
@@ -464,7 +464,7 @@ export const closeGmxPositionImpl = async (
|
||||
indexPrice: 0n,
|
||||
collateralPrice: 0n,
|
||||
acceptablePrice: position.markPrice,
|
||||
triggerOrderType: OrderType.LimitDecrease,
|
||||
triggerOrderType: OrderType.MarketDecrease,
|
||||
triggerPrice: position.markPrice,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user