# ProtocolFeeManager

#### Introduction

The ProtocolFeeManager collects Neby AMM fees and deposits them into the Staker. It manages factory operations, such as enabling new fee tiers and setting pool protocol fees.

* Fees collected are swapped into USDT and wROSE in the correct proportions, then deposited into the Staker for distribution.

#### Roles

User:

* Any account can collect fees, swap them for wROSE/USDT, and deposit them into the Staker.

Swapper:

* If access control is enabled, only designated addresses can run swaps.

Owner:

* Manages the FeeManager and its associated operations. Can transfer ownership of the factory to another contract.

#### Interactions

* Reads from the Staker to determine the desired USDT/wROSE ratio, then swaps and deposits accordingly.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://neby.gitbook.io/neby-documentation/ecosystem/protocolfeemanager.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
