Broker
Last updated
Last updated
The Broker is responsible for orchestrating swaps in the Mento Protocol. It does that by fulfilling three main responsibilities:
Discoverability: It maintains a list of all registered in the system.
Treasury management: It has spending rights on the 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 , it enforces 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 . 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 .