fix unsettled pnl publisher script bug
This commit is contained in:
@@ -218,14 +218,10 @@ const buildUserMarketLists = (
|
|||||||
)
|
)
|
||||||
return [];
|
return [];
|
||||||
|
|
||||||
const perpPositionWithLpSettle = redisUser.user.getPerpPosition(
|
|
||||||
perpPosition.marketIndex
|
|
||||||
)[0];
|
|
||||||
|
|
||||||
const marketPnl = calculateClaimablePnl(
|
const marketPnl = calculateClaimablePnl(
|
||||||
perpMarketAccount,
|
perpMarketAccount,
|
||||||
usdcSpotMarket,
|
usdcSpotMarket,
|
||||||
perpPositionWithLpSettle,
|
perpPosition,
|
||||||
oraclePriceData
|
oraclePriceData
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user