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

# Fee Collector

> Protocol fee collection for MANTRA DEX (MANTRA Swap)

The Fee Collector collects fees accrued by the protocol. When pools or farms are created (and for certain operations like swaps/emergency unlock), fees are routed to this contract.

```mermaid theme={null}
graph LR
    A[Pool Manager] --> B[Create Pool]
    A --> D[Perform Swap]
    H[Farm Manager] --> I[Create farm]
    H --> L[User emergency withdraw]
    B --> J{Fee Collected}
    J --> K[Fee Collector]
    D --> J
    L --> J
    I --> J
```

## Instantiate

```json theme={null}
{}
```

## ExecuteMsg

### UpdateOwnership (::cw\_ownable)

> [!TIP]
>
> This is a `cw_ownable` message.

```json theme={null}
{
  "update_ownership": {
    "transfer_ownership": {
      "new_owner": "mantra1...",
      "expiry": { "at_height": "424242424242" }
    }
  }
}
```

## QueryMsg

### Ownership (::cw\_ownable)

> [!TIP]
>
> This is a `cw_ownable` query.

```json theme={null}
{ "ownership": {} }
```

## MigrateMsg

```json theme={null}
{}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.