Broker
The Broker is responsible for orchestrating swaps in the Mento Protocol. It does that by fulfilling three main responsibilities:
- Treasury management: It has spending rights on the Reserve and can mint and burn any stable asset in the system, thus it is responsible for moving around assets during a trade.
- Safety: In service of stability, it enforces trading limits in the protocol, constraining the volume of assets that can be traded over time.
While it is responsible for moving around assets during a swap, it doesn't know how to price swaps. For that, it relies on exchange providers. These abstract components implement a unified interface and can be plugged into the Broker to provide exchanges between two or more assets. The first exchange provider that we implement is the BiPoolManager.
Last modified 18d ago