@bulletxyz/bullet-sdk 0.25.4-rc.1 → 0.25.4-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.
@@ -9559,10 +9559,12 @@ var Client = class _Client {
9559
9559
  return await this.submitTransaction({
9560
9560
  exchange: {
9561
9561
  init_asset_metadata: {
9562
- asset_id: asset,
9563
- asset_name: assetName,
9564
- token_id: tokenId,
9565
- decimals
9562
+ args: {
9563
+ asset_id: asset,
9564
+ asset_name: assetName,
9565
+ token_id: tokenId,
9566
+ decimals
9567
+ }
9566
9568
  }
9567
9569
  }
9568
9570
  });
@@ -9571,18 +9573,42 @@ var Client = class _Client {
9571
9573
  return await this.submitTransaction({
9572
9574
  exchange: {
9573
9575
  init_borrow_lend_market: {
9574
- asset_id: asset,
9575
- optimal_utilisation_rate: optimalUtilisationRate,
9576
- min_borrow_rate: minBorrowRate,
9577
- max_borrow_rate: maxBorrowRate,
9578
- optimal_borrow_rate: optimalBorrowRate,
9579
- asset_weight: assetWeight,
9580
- initial_liability_weight: initialLiabilityWeight,
9581
- maintenance_liability_weight: maintenanceLiabilityWeight,
9582
- deposit_limit: depositLimit,
9583
- borrow_limit: borrowLimit,
9584
- liquidation_reward_ratio: liquidationRewardRatio,
9585
- liability_liquidation_limit_ratio: liabilityLiquidationLimitRatio
9576
+ args: {
9577
+ asset_id: asset,
9578
+ optimal_utilisation_rate: BulletWasm.convert_rust_decimal_to_json(
9579
+ optimalUtilisationRate.toFixed()
9580
+ ),
9581
+ min_borrow_rate: BulletWasm.convert_rust_decimal_to_json(
9582
+ minBorrowRate.toFixed()
9583
+ ),
9584
+ max_borrow_rate: BulletWasm.convert_rust_decimal_to_json(
9585
+ maxBorrowRate.toFixed()
9586
+ ),
9587
+ optimal_borrow_rate: BulletWasm.convert_rust_decimal_to_json(
9588
+ optimalBorrowRate.toFixed()
9589
+ ),
9590
+ asset_weight: BulletWasm.convert_rust_decimal_to_json(
9591
+ assetWeight.toFixed()
9592
+ ),
9593
+ initial_liability_weight: BulletWasm.convert_rust_decimal_to_json(
9594
+ initialLiabilityWeight.toFixed()
9595
+ ),
9596
+ maintenance_liability_weight: BulletWasm.convert_rust_decimal_to_json(
9597
+ maintenanceLiabilityWeight.toFixed()
9598
+ ),
9599
+ deposit_limit: BulletWasm.convert_rust_decimal_to_json(
9600
+ depositLimit.toFixed()
9601
+ ),
9602
+ borrow_limit: BulletWasm.convert_rust_decimal_to_json(
9603
+ borrowLimit.toFixed()
9604
+ ),
9605
+ liquidation_reward_ratio: BulletWasm.convert_rust_decimal_to_json(
9606
+ liquidationRewardRatio.toFixed()
9607
+ ),
9608
+ liability_liquidation_limit_ratio: BulletWasm.convert_rust_decimal_to_json(
9609
+ liabilityLiquidationLimitRatio.toFixed()
9610
+ )
9611
+ }
9586
9612
  }
9587
9613
  }
9588
9614
  });