> For the complete documentation index, see [llms.txt](https://neby.gitbook.io/neby-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://neby.gitbook.io/neby-documentation/ecosystem/protocolfeemanager.md).

# 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.
