@tradeport/sui-trading-sdk 0.4.46 → 0.4.48

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/index.js CHANGED
@@ -152,7 +152,7 @@ var TRADEPORT_THIRD_PARTY_FEE_DECIMAL_PERCENT = 5e-3;
152
152
  var TRADEPORT_LISTINGS_DEFAULT_COMMISSION_BPS = 300;
153
153
  var TRADEPORT_LISTING_STORE = "0x47cba0b6309a12ce39f9306e28b899ed4b3698bce4f4911fd0c58ff2329a2ff6";
154
154
  var TRADEPORT_BIDDING_STORE = "0x3d3b0c6e616fdc1a45b2b73d022bc085448e78bd729d28081c7a340abb33cba1";
155
- var TRADEPORT_LISTINGS_PACKAGE = "0xff2251ea99230ed1cbe3a347a209352711c6723fcdcd9286e16636e65bb55cab";
155
+ var TRADEPORT_LISTINGS_PACKAGE = "0x046de0d9c1d7aea8b27744308a0607515677cf9035e1c98d88cb27bbc84a77ae";
156
156
  var TRADEPORT_LISTINGS_STORE = "0xf96f9363ac5a64c058bf7140723226804d74c0dab2dd27516fb441a180cd763b";
157
157
  var TRADEPORT_KIOSK_LISTING_STORE = "0xbff3161b047fb8b727883838c09b08afa9e0dd0f5488bde9e99e80643da9b9e0";
158
158
  var TRADEPORT_KIOSK_TRANSFERS_STORE = "0xe0f61b6915d3fd4ec8bbe4618514e2152a82841605bfa00cde22ace434153a1b";
@@ -3483,7 +3483,7 @@ function calculateRoyaltyFee(transferPolicyRules, price) {
3483
3483
  if (!royaltyRule || !royaltyRule.amount_bp && !royaltyRule.min_amount) {
3484
3484
  return ZERO;
3485
3485
  }
3486
- const royaltyFee = royaltyRule.amount_bp ? new bigNumberConfig_default(royaltyRule.amount_bp).times(price).div(1e4) : ZERO;
3486
+ const royaltyFee = royaltyRule.amount_bp ? new bigNumberConfig_default(royaltyRule.amount_bp).times(price).div(1e4).integerValue(bigNumberConfig_default.ROUND_DOWN) : ZERO;
3487
3487
  if (royaltyRule.min_amount && new bigNumberConfig_default(royaltyRule.min_amount).isGreaterThan(royaltyFee)) {
3488
3488
  return new bigNumberConfig_default(royaltyRule.min_amount);
3489
3489
  }