@bulletxyz/bullet-sdk 0.26.2-rc.3 → 0.26.2-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.
@@ -9807,11 +9807,52 @@ var Client = class _Client {
9807
9807
  }
9808
9808
  });
9809
9809
  }
9810
- async initBorrowLendMarket(asset, optimalUtilisationRate, minBorrowRate, maxBorrowRate, optimalBorrowRate, assetWeight, initialLiabilityWeight, maintenanceLiabilityWeight, depositLimit, borrowLimit, liquidationRewardRatio, liabilityLiquidationLimitRatio) {
9810
+ async initPerpMarket(marketId, baseAssetId, name, minTickSize, minLotSize, maxOrdersPerSide, minInterestRateClamp, maxInterestRateClamp, minFundingRateClamp, maxFundingRateClamp, impactMargin, interestRate, initLeverageTableArgs, takerFeesTenthBps, makerFeesTenthBps) {
9811
+ return await this.submitTransaction({
9812
+ exchange: {
9813
+ init_perp_market: {
9814
+ args: {
9815
+ market_id: marketId,
9816
+ base_asset_id: baseAssetId,
9817
+ name,
9818
+ min_tick_size: BulletWasm.convert_rust_decimal_to_json(
9819
+ minTickSize.toFixed()
9820
+ ),
9821
+ min_lot_size: BulletWasm.convert_rust_decimal_to_json(
9822
+ minLotSize.toFixed()
9823
+ ),
9824
+ max_orders_per_side: maxOrdersPerSide,
9825
+ min_interest_rate_clamp: BulletWasm.convert_rust_decimal_to_json(
9826
+ minInterestRateClamp.toFixed()
9827
+ ),
9828
+ max_interest_rate_clamp: BulletWasm.convert_rust_decimal_to_json(
9829
+ maxInterestRateClamp.toFixed()
9830
+ ),
9831
+ min_funding_rate_clamp: BulletWasm.convert_rust_decimal_to_json(
9832
+ minFundingRateClamp.toFixed()
9833
+ ),
9834
+ max_funding_rate_clamp: BulletWasm.convert_rust_decimal_to_json(
9835
+ maxFundingRateClamp.toFixed()
9836
+ ),
9837
+ impact_margin: BulletWasm.convert_rust_decimal_to_json(
9838
+ impactMargin.toFixed()
9839
+ ),
9840
+ interest_rate: BulletWasm.convert_rust_decimal_to_json(
9841
+ interestRate.toFixed()
9842
+ ),
9843
+ init_leverage_table_args: initLeverageTableArgs,
9844
+ taker_fees_tenth_bps: takerFeesTenthBps,
9845
+ maker_fees_tenth_bps: makerFeesTenthBps
9846
+ }
9847
+ }
9848
+ }
9849
+ });
9850
+ }
9851
+ async initBorrowLendPool(asset, optimalUtilisationRate, minBorrowRate, maxBorrowRate, optimalBorrowRate, assetWeight, initialLiabilityWeight, maintenanceLiabilityWeight, depositLimit, borrowLimit, liquidationRewardRatio, liabilityLiquidationLimitRatio, interestFeeTenthBps) {
9811
9852
  const assetId = this.exchange.getAssetId(asset);
9812
9853
  return await this.submitTransaction({
9813
9854
  exchange: {
9814
- init_borrow_lend_market: {
9855
+ init_borrow_lend_pool: {
9815
9856
  args: {
9816
9857
  asset_id: assetId,
9817
9858
  optimal_utilisation_rate: BulletWasm.convert_rust_decimal_to_json(
@@ -9846,7 +9887,8 @@ var Client = class _Client {
9846
9887
  ),
9847
9888
  liability_liquidation_limit_ratio: BulletWasm.convert_rust_decimal_to_json(
9848
9889
  liabilityLiquidationLimitRatio.toFixed()
9849
- )
9890
+ ),
9891
+ interest_fee_tenth_bps: interestFeeTenthBps
9850
9892
  }
9851
9893
  }
9852
9894
  }