@bulletxyz/bullet-sdk 0.24.0-rc.1 → 0.24.0-rc.2
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/browser/index.js
CHANGED
|
@@ -9816,10 +9816,10 @@ function calculatePositionsAdditionalMetadata(userAccount, MarginCalculationStat
|
|
|
9816
9816
|
);
|
|
9817
9817
|
return WasmResponseSchemas.PositionAdditionalMetadataSchema.parse(result);
|
|
9818
9818
|
}
|
|
9819
|
-
function calculateBorrowLendMarketAdditionalMetadata(
|
|
9820
|
-
const
|
|
9819
|
+
function calculateBorrowLendMarketAdditionalMetadata(borrowLendMarkets, asset) {
|
|
9820
|
+
const borrowLendMarketsObject = serialize(borrowLendMarkets);
|
|
9821
9821
|
const result = BulletWasm.calculate_borrow_lend_additional_metadata(
|
|
9822
|
-
|
|
9822
|
+
borrowLendMarketsObject?.get(asset)
|
|
9823
9823
|
);
|
|
9824
9824
|
return WasmResponseSchemas.BorrowLendMarketAdditionalMetadataSchema.parse(
|
|
9825
9825
|
result
|