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