Native Smart Contracts
Last updated
Last updated
MerlinCore
The core consists of our custom built factory, a pool deployer, and the many pools the factory will create.
The factory defines the logic for generating pools. A pool is defined by two tokens, which make up the asset pair, and a fee. There can be multiple pools of the same asset pair, distinguished only by their swap fee.
Pools primarily serve as automated market makers for the paired assets. Additionally, they expose price oracle data and may be used as an asset source for flash transactions.
The swap router supports all the basic requirements of front-end offering trading. It natively supports single trades (x to y) and multihop trades (e.g. x to y to z).
The position manager handles the logic transactions involving the creation, adjustment, or exiting of positions for NFM and its layering onto existing LP's.
The oracle provides price and liquidity data useful for a wide variety of system designs, and is available in every deployed pool. For Merlin, we utilize Chainlink's Data Oracle.