From a006e4240f615712dcc9b952f4fc417dbee53e6a Mon Sep 17 00:00:00 2001 From: ja88a Date: Mon, 22 Jun 2026 09:47:42 +0200 Subject: [PATCH] docs(fees): describe aggregated Distributions feeCost in FeeSplit.recipients MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Partner distribution recipients are now reported as one aggregated `Distributions` FeeCost (total amount + per-recipient breakdown), with the same shape on quote, route, and status responses — not per-receiver `Fee Forward` entries. Update the FeeSplit.recipients JSDoc accordingly. --- src/step.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/step.ts b/src/step.ts index 1c6fe792..53c8bc84 100644 --- a/src/step.ts +++ b/src/step.ts @@ -69,12 +69,11 @@ export interface FeeSplit { * new consumers — the aggregate fields above are disjoint slices kept * for backward compatibility with 2-recipient consumers. * - * Note: partner-specified distribution recipients are emitted as - * separate `FeeCost` entries (one per receiver, `name: "Fee Forward"`) - * at quote/route estimation time. At status-response time the same - * recipients may appear merged on the integrator's `FeeCost` for - * compactness. Iterate `estimate.feeCosts[]` to discover all - * recipients across both shapes. */ + * Note: partner-specified distribution recipients are aggregated into a + * single `FeeCost` entry (`name: "Distributions"`) whose `amount` is the + * total distributed and whose `recipients[]` lists each receiver. This + * entry sits beside the integrator/LI.FI/intermediary entry, with the same + * shape on quote, route, and status responses. */ recipients?: FeeRecipient[] }