@orangecheck/me-client 0.26.0 → 0.27.0

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.mjs CHANGED
@@ -250,6 +250,7 @@ var PLATFORM_FEE_POLICY = {
250
250
  ratified: "2026-04-30"
251
251
  };
252
252
  var MIN_INTEGRATOR_PRICE_SATS = 1;
253
+ var MAX_INTEGRATOR_PRICE_SATS = 1e7;
253
254
  var MAX_DROP_WINDOW_DAYS = 92;
254
255
  function computeFees(cfg, payment_amount_sats, opts) {
255
256
  const is_agent = opts?.is_agent === true;
@@ -270,6 +271,7 @@ function computeFees(cfg, payment_amount_sats, opts) {
270
271
  Math.round(payment_amount_sats * effective_site_pays.pct)
271
272
  );
272
273
  }
274
+ gross = Math.min(gross, MAX_INTEGRATOR_PRICE_SATS);
273
275
  const platform_fee_sats = Math.min(
274
276
  gross,
275
277
  Math.max(PLATFORM_FEE_POLICY.min_floor_sats, Math.round(gross * PLATFORM_FEE_POLICY.pct))