Docs

Fees

The protocol fee, the cap, and who receives it.

Rate

The default fee is 20 basis points, 0.20 percent of the input. KnitxRouter.MAX_FEE_BPS is 100, so 1 percent is the hard cap. setFeeBps reverts above that cap. The deploy script also refuses FEE_BPS above 100.

Recipient

swap transfers the fee to feeRecipient before it sends the rest of the input to the venues. The owner can change the recipient with setFeeRecipient. The quote shows feeBps and feeAmountFormatted on the route row.