Mantrazone - Pool Creation and Fee Collection in MANTRA DEX

MANTRA Zone presents swaps and liquidity pools. In the MANTRA DEX README, the Pool Manager handles permissionless pool creation, conditional on payment of a fee, while the Fee Collector receives pool- and farm-creation charges.

· last updated
Protocol type
MANTRA DEX is an automated market maker (AMM).
Contract design
Singleton contracts with separate pool, farm, fee-collection and epoch responsibilities.

Pool and farm responsibilities

The Pool Manager creates trading pools and handles swaps. The Farm Manager creates farms and distributes rewards associated with pools.

Farm creation is also permissionless when the required creation fee is paid.

Swap fees and creation fees

The architecture shows swap fees within the Pool Manager and protocol-fee routes from both the Pool Manager and the Farm Manager to the Fee Collector. The component descriptions identify pool creation and farm creation as operations that send fees to that collector.

Mantrazone: Swap fees and creation fees - illustration
Swap fees and creation fees

View full-size image

MANTRA Zone describes liquidity-provider earnings as fees from trades in the relevant pool. In the README’s architecture, pool- and farm-creation charges go to the Fee Collector. The distinction separates income associated with supplying liquidity from the protocol charge associated with creating a pool or farm.

Epochs and contract dependencies

The Epoch Manager creates epochs that the Farm Manager uses for reward distribution. This dependency concerns the timing of farm rewards, while the Fee Collector handles the documented creation-fee receipts.

The Pool Manager depends on the Farm Manager and the Fee Collector. The README lists the contract instantiation order as Epoch Manager, Fee Collector, Farm Manager and then Pool Manager. That order concerns deployment of the cooperating contracts.

Pool and farm decision checklist

  • If you plan to create a pool or farm, account for its required creation fee when assessing permissionless access.
  • If you are assessing liquidity-provider income, distinguish fees earned from trades from the creation charges routed to the Fee Collector.
  • If you are assessing farm reward timing, follow the Farm Manager’s dependence on epochs created by the Epoch Manager.