Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 7250824238 | |||
| aa9d924112 |
+4
-2
@@ -13,7 +13,8 @@ class AnchorIdlJupiterPerpsPositionDecoder {
|
||||
|
||||
JupiterPerpsPosition decode(
|
||||
ΩJupiterPerpsPositionAccountΩ positionAccount,
|
||||
SolanaAccountInfo accountInfo
|
||||
SolanaAccountInfo accountInfo,
|
||||
ΩSPLMintAddressΩ tradedTokenMint
|
||||
) {
|
||||
byte[] data = Base64.getDecoder().decode(accountInfo.dataBase64());
|
||||
|
||||
@@ -38,7 +39,8 @@ class AnchorIdlJupiterPerpsPositionDecoder {
|
||||
JupiterPerpsPosition pos = new JupiterPerpsPosition(
|
||||
positionAccount,
|
||||
entryPrice,
|
||||
direction
|
||||
direction,
|
||||
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