> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dynamic.xyz/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Adding your own fee

> Charge a fee on every swap a flow runs, as direct revenue on top of Dynamic's routing costs.

You can charge a fee on every swap a flow runs, as direct revenue on top of Dynamic's routing costs. A fee config is attached when the flow is created, fixed from that point, and collects a percentage of the source amount to wallets you nominate.

A fee config can name one EVM recipient, one Solana recipient, or both, each with its own percentage of the source amount. The fee is not always paid out on the chain the payer swapped from, so naming both gives you a recipient no matter which chain the swap settles the fee on.

Depending on which recipient a swap pays, a fee arrives in one of two ways:

* **Distributed on-chain at swap time.** A Solana recipient is always paid this way, as part of the settlement transaction. Nothing to collect.
* **Accrued as a claimable balance.** An EVM recipient's fee can accumulate off-chain, typically as USDC, and you sweep it later.

Because either can happen for an EVM recipient, an integration that charges fees needs to handle both: check accrued balances periodically and claim what is waiting.

## Next

<Columns cols={2}>
  <Card title="Conversions" href="/docs/flow/conversions">
    How a flow converts the payer's asset into the one you settle in.
  </Card>

  <Card title="Implement it" href="/docs/flow/fees">
    Request shapes for fee configs, checking balances, and claiming.
  </Card>
</Columns>
