fix position initiator + pnl for trade

This commit is contained in:
2025-04-27 22:49:49 +07:00
parent 0b1710cd69
commit 68618a8628
5 changed files with 43 additions and 31 deletions

View File

@@ -451,7 +451,7 @@ export const closeGmxPositionImpl = async (
indexPrice: 0n,
collateralPrice: 0n,
acceptablePrice: position.markPrice,
triggerOrderType: OrderType.LimitDecrease,
triggerOrderType: OrderType.MarketDecrease,
triggerPrice: position.markPrice,
}