17: Add mint address field in JupiterPerpsPosition
This commit is contained in:
+3
-2
@@ -13,7 +13,8 @@ class AnchorIdlJupiterPerpsPositionDecoder {
|
||||
|
||||
JupiterPerpsPosition decode(
|
||||
ΩJupiterPerpsPositionAccountΩ positionAccount,
|
||||
SolanaAccountInfo accountInfo
|
||||
SolanaAccountInfo accountInfo,
|
||||
ΩSPLMintAddressΩ tradedTokenMint
|
||||
) {
|
||||
byte[] data = Base64.getDecoder().decode(accountInfo.dataBase64());
|
||||
|
||||
@@ -39,7 +40,7 @@ class AnchorIdlJupiterPerpsPositionDecoder {
|
||||
positionAccount,
|
||||
entryPrice,
|
||||
direction,
|
||||
""//tradedTokenMint
|
||||
tradedTokenMint
|
||||
);
|
||||
|
||||
return pos;
|
||||
|
||||
+3
-1
@@ -34,7 +34,9 @@ public class AnchorIdlJupiterPerpsServiceImpl implements JupiterPerpsService {
|
||||
);
|
||||
}
|
||||
|
||||
JupiterPerpsPosition pos = positionDecoder.decode(positionAccount, accountInfo);
|
||||
ΩSPLMintAddressΩ tradedTokenMint = "";
|
||||
|
||||
JupiterPerpsPosition pos = positionDecoder.decode(positionAccount, accountInfo, tradedTokenMint);
|
||||
return pos;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user