@bulletxyz/bullet-sdk 0.24.0-rc.1 → 0.24.0-rc.3
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
|
@@ -9376,7 +9376,7 @@ var Client = class _Client {
|
|
|
9376
9376
|
side: placeOrderArgs.side,
|
|
9377
9377
|
order_type: placeOrderArgs.orderType,
|
|
9378
9378
|
reduce_only: placeOrderArgs.reduceOnly,
|
|
9379
|
-
tpsl_orders_ids:
|
|
9379
|
+
tpsl_orders_ids: null
|
|
9380
9380
|
},
|
|
9381
9381
|
tpsls: tpslOrders.map(
|
|
9382
9382
|
({
|
|
@@ -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
|