Client Fees
Fee breakdown
1. client_fee = amount_out * client_fee_bps / 10,000
2. router_share = amount_out * client_fee_bps * 2,000 / 100,000,000
3. client_portion = client_fee - router_share
4. router_fee_output = amount_out * 10 / 10,000
5. router_fee = router_share + router_fee_output
6. amount_after_fees = amount_out - client_portion - router_fee
7. max_slippage = amount_after_fees * slippage
8. min_amount_received = amount_after_fees - max_slippageField
Description
Example
Setting up client fees
maxClientContribution
EIP-712 signing
Field
Type
Description
Field
Value
Code examples
Last updated