@bulletxyz/bullet-sdk 0.25.4-rc.3 → 0.25.4-rc.5
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 +34 -0
- package/dist/browser/index.js.map +2 -2
- package/dist/node/index.js +34 -0
- package/dist/node/index.js.map +2 -2
- package/dist/types/client.d.ts +2 -1
- package/dist/types/rollupTypes.d.ts +16 -0
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -9613,6 +9613,40 @@ var Client = class _Client {
|
|
|
9613
9613
|
}
|
|
9614
9614
|
});
|
|
9615
9615
|
}
|
|
9616
|
+
async updateBorrowLendMarket(asset, optimalUtilisationRate, minBorrowRate, maxBorrowRate, optimalBorrowRate, assetWeight, initialLiabilityWeight, maintenanceLiabilityWeight, depositLimit, borrowLimit, liquidationRewardRatio, liabilityLiquidationLimitRatio) {
|
|
9617
|
+
return await this.submitTransaction({
|
|
9618
|
+
exchange: {
|
|
9619
|
+
update_borrow_lend_market: {
|
|
9620
|
+
args: {
|
|
9621
|
+
asset_id: asset,
|
|
9622
|
+
optimal_utilisation_rate: optimalUtilisationRate ? BulletWasm.convert_rust_decimal_to_json(
|
|
9623
|
+
optimalUtilisationRate.toFixed()
|
|
9624
|
+
) : null,
|
|
9625
|
+
min_borrow_rate: minBorrowRate ? BulletWasm.convert_rust_decimal_to_json(minBorrowRate.toFixed()) : null,
|
|
9626
|
+
max_borrow_rate: maxBorrowRate ? BulletWasm.convert_rust_decimal_to_json(maxBorrowRate.toFixed()) : null,
|
|
9627
|
+
optimal_borrow_rate: optimalBorrowRate ? BulletWasm.convert_rust_decimal_to_json(
|
|
9628
|
+
optimalBorrowRate.toFixed()
|
|
9629
|
+
) : null,
|
|
9630
|
+
asset_weight: assetWeight ? BulletWasm.convert_rust_decimal_to_json(assetWeight.toFixed()) : null,
|
|
9631
|
+
initial_liability_weight: initialLiabilityWeight ? BulletWasm.convert_rust_decimal_to_json(
|
|
9632
|
+
initialLiabilityWeight.toFixed()
|
|
9633
|
+
) : null,
|
|
9634
|
+
maintenance_liability_weight: maintenanceLiabilityWeight ? BulletWasm.convert_rust_decimal_to_json(
|
|
9635
|
+
maintenanceLiabilityWeight.toFixed()
|
|
9636
|
+
) : null,
|
|
9637
|
+
deposit_limit: depositLimit ? BulletWasm.convert_rust_decimal_to_json(depositLimit.toFixed()) : null,
|
|
9638
|
+
borrow_limit: borrowLimit ? BulletWasm.convert_rust_decimal_to_json(borrowLimit.toFixed()) : null,
|
|
9639
|
+
liquidation_reward_ratio: liquidationRewardRatio ? BulletWasm.convert_rust_decimal_to_json(
|
|
9640
|
+
liquidationRewardRatio.toFixed()
|
|
9641
|
+
) : null,
|
|
9642
|
+
liability_liquidation_limit_ratio: liabilityLiquidationLimitRatio ? BulletWasm.convert_rust_decimal_to_json(
|
|
9643
|
+
liabilityLiquidationLimitRatio.toFixed()
|
|
9644
|
+
) : null
|
|
9645
|
+
}
|
|
9646
|
+
}
|
|
9647
|
+
}
|
|
9648
|
+
});
|
|
9649
|
+
}
|
|
9616
9650
|
};
|
|
9617
9651
|
|
|
9618
9652
|
// src/zod-types/wasm.ts
|