21: Decode 'sizeUsd'

This commit is contained in:
2026-06-29 17:04:05 +02:00
parent 3e61f35c98
commit 932b2589e4
@@ -47,7 +47,14 @@ class AnchorIdlJupiterPerpsPositionDecoder {
.valueOf(rawCollateralUsd)
.movePointLeft(6);
ΩUSDCAmountΩ sizeUsd = BigDecimal.ZERO;
long rawSizeUsd = ByteBuffer
.wrap(data, SIZE_USD_OFFSET, U64_LENGTH)
.order(ByteOrder.LITTLE_ENDIAN)
.getLong();
ΩUSDCAmountΩ sizeUsd = BigDecimal
.valueOf(rawSizeUsd)
.movePointLeft(6);
JupiterPerpsPosition pos = new JupiterPerpsPosition(
positionAccount,