21: Decode 'sizeUsd'
This commit is contained in:
+8
-1
@@ -47,7 +47,14 @@ class AnchorIdlJupiterPerpsPositionDecoder {
|
|||||||
.valueOf(rawCollateralUsd)
|
.valueOf(rawCollateralUsd)
|
||||||
.movePointLeft(6);
|
.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(
|
JupiterPerpsPosition pos = new JupiterPerpsPosition(
|
||||||
positionAccount,
|
positionAccount,
|
||||||
|
|||||||
Reference in New Issue
Block a user