19: Add 'collateralUsd' to JupiterPerpsPosition

This commit is contained in:
2026-06-29 13:09:40 +02:00
parent 214bb2ceeb
commit 092ea1e320
@@ -13,11 +13,13 @@ import java.math.BigDecimal;
* @param entryPrice the entry price of the position, denominated in USDC * @param entryPrice the entry price of the position, denominated in USDC
* @param direction whether the position is long or short * @param direction whether the position is long or short
* @param tradedTokenMint the mint address of the token being traded * @param tradedTokenMint the mint address of the token being traded
* @param collateralUsd the amount of USD representing the collateral for this position
*/ */
public record JupiterPerpsPosition( public record JupiterPerpsPosition(
ΩJupiterPerpsPositionAccountΩ positionAccount, ΩJupiterPerpsPositionAccountΩ positionAccount,
ΩUSDCPriceΩ entryPrice, ΩUSDCPriceΩ entryPrice,
JupiterPerpsPositionDirection direction, JupiterPerpsPositionDirection direction,
ΩSPLMintAddressΩ tradedTokenMint ΩSPLMintAddressΩ tradedTokenMint,
ΩUSDCAmountΩ collateralUsd
) { ) {
} }