@bulletxyz/bullet-sdk 0.24.0-rc.0 → 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/node/index.js
CHANGED
|
@@ -2436,8 +2436,8 @@ var NETWORKS = {
|
|
|
2436
2436
|
ws: "ws://127.0.0.1:3000/ws"
|
|
2437
2437
|
},
|
|
2438
2438
|
Staging: {
|
|
2439
|
-
rest: "https://rollup
|
|
2440
|
-
ws: "wss://
|
|
2439
|
+
rest: "https://rollup.stg.bullet.xyz",
|
|
2440
|
+
ws: "wss://ws.stg.bullet.xyz"
|
|
2441
2441
|
},
|
|
2442
2442
|
Testnet: {
|
|
2443
2443
|
rest: "https://rollup-testnet.zeta.markets",
|
|
@@ -9897,10 +9897,10 @@ function calculatePositionsAdditionalMetadata(userAccount, MarginCalculationStat
|
|
|
9897
9897
|
);
|
|
9898
9898
|
return WasmResponseSchemas.PositionAdditionalMetadataSchema.parse(result);
|
|
9899
9899
|
}
|
|
9900
|
-
function calculateBorrowLendMarketAdditionalMetadata(
|
|
9901
|
-
const
|
|
9900
|
+
function calculateBorrowLendMarketAdditionalMetadata(borrowLendMarkets, asset) {
|
|
9901
|
+
const borrowLendMarketsObject = serialize(borrowLendMarkets);
|
|
9902
9902
|
const result = BulletWasm.calculate_borrow_lend_additional_metadata(
|
|
9903
|
-
|
|
9903
|
+
borrowLendMarketsObject?.get(asset)
|
|
9904
9904
|
);
|
|
9905
9905
|
return WasmResponseSchemas.BorrowLendMarketAdditionalMetadataSchema.parse(
|
|
9906
9906
|
result
|