@0dotxyz/p0-ts-sdk 2.11.0 → 2.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -86185,9 +86185,16 @@ async function simulateAccountHealthCacheWithFallback(params) {
86185
86185
  marginfiAccount,
86186
86186
  bankIntegrationMap
86187
86187
  });
86188
- simulatedAccount.healthCache.assetValueEquity = bigNumberToWrappedI80F48(assetValueEquity);
86189
- simulatedAccount.healthCache.liabilityValueEquity = bigNumberToWrappedI80F48(liabilityValueEquity);
86190
- marginfiAccount = parseMarginfiAccountRaw(params.marginfiAccount.address, simulatedAccount);
86188
+ const simulated = parseMarginfiAccountRaw(params.marginfiAccount.address, simulatedAccount);
86189
+ marginfiAccount = {
86190
+ ...simulated,
86191
+ healthCache: {
86192
+ ...simulated.healthCache,
86193
+ assetValueEquity,
86194
+ liabilityValueEquity,
86195
+ simulationStatus: 1 /* ONCHAIN */
86196
+ }
86197
+ };
86191
86198
  } catch (e) {
86192
86199
  console.log("e", e);
86193
86200
  const { assets: assetValueMaint, liabilities: liabilityValueMaint } = computeHealthComponentsFromBalances({