@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.js CHANGED
@@ -272,6 +272,7 @@ var PLATFORM_FEE_POLICY = {
272
272
  ratified: "2026-04-30"
273
273
  };
274
274
  var MIN_INTEGRATOR_PRICE_SATS = 1;
275
+ var MAX_INTEGRATOR_PRICE_SATS = 1e7;
275
276
  var MAX_DROP_WINDOW_DAYS = 92;
276
277
  function computeFees(cfg, payment_amount_sats, opts) {
277
278
  const is_agent = opts?.is_agent === true;
@@ -292,6 +293,7 @@ function computeFees(cfg, payment_amount_sats, opts) {
292
293
  Math.round(payment_amount_sats * effective_site_pays.pct)
293
294
  );
294
295
  }
296
+ gross = Math.min(gross, MAX_INTEGRATOR_PRICE_SATS);
295
297
  const platform_fee_sats = Math.min(
296
298
  gross,
297
299
  Math.max(PLATFORM_FEE_POLICY.min_floor_sats, Math.round(gross * PLATFORM_FEE_POLICY.pct))