21: Add sizeUsd to JupiterPerpsPosition

This commit is contained in:
2026-06-29 17:00:51 +02:00
parent 3a739bde57
commit 3e61f35c98
@@ -47,11 +47,14 @@ class AnchorIdlJupiterPerpsPositionDecoder {
.valueOf(rawCollateralUsd) .valueOf(rawCollateralUsd)
.movePointLeft(6); .movePointLeft(6);
ΩUSDCAmountΩ sizeUsd = BigDecimal.ZERO;
JupiterPerpsPosition pos = new JupiterPerpsPosition( JupiterPerpsPosition pos = new JupiterPerpsPosition(
positionAccount, positionAccount,
entryPrice, entryPrice,
direction, direction,
tradedTokenMint, tradedTokenMint,
sizeUsd,
collateralUsd collateralUsd
); );