Skip to content

Commit c078abd

Browse files
authored
Merge pull request #185 from 0xProject/2026-03-25-jessica_lin-b69599-349162b5
docs: clarify swapFeeToken parameter in multi-fee support
2 parents 352dd1e + 72f0dc2 commit c078abd

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

fern/docs/pages/0x-swap-api/additional-topics/multi-fee-support.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ Fee splitting is controlled by three query parameters that work together:
1111

1212
- `swapFeeRecipient` — one or more wallet addresses (comma-separated) that receive fees at settlement
1313
- `swapFeeBps` — one or more fee amounts in basis points (comma-separated), defining how much each recipient earns
14-
- `swapFeeToken` _(optional)_ — the token fees are collected in; if omitted, typically defaults to the buy token, unless the sell token has higher priority (e.g., stablecoins or more liquid assets) or the buy token is ineligible.
14+
- `swapFeeToken`*(optional)* — the token fees are collected in; can be omitted or set to either the address of `buyToken` or `sellToken`
1515

16-
`swapFeeRecipient` and `swapFeeBps` are positionally matched and co-dependent. The first value in `swapFeeBps` applies to the first address in `swapFeeRecipient`, the second to the second, and so on. Both must be present and the same length.
17-
18-
By default, each fee is collected in the buy token and delivered directly to the specified address at settlement. You can optionally collect fees in a different token by specifying `swapFeeToken`, as long as each value is set to either the address of the `buyToken` or `sellToken`.
16+
`swapFeeRecipient` and `swapFeeBps` are positionally matched and co-dependent. The first value in `swapFeeBps` applies to the first address in `swapFeeRecipient`, the second to the second, and so on. Both must be present and the same length.\
17+
\
18+
Use `swapFeeToken` to specify which token fees are collected in — either the `buyToken` or `sellToken`. If omitted, 0x defaults to the buy token, unless the sell token has higher priority (e.g., stablecoins or a more liquid asset) or the buy token is ineligible.
1919

2020
## Parameters
2121

0 commit comments

Comments
 (0)