Contracts
This section is the reference for the MakinaX smart contracts: the core MakinaXModule, its module components (position management, swaps, bridging, and the oracle registry), the shared infrastructure (MakinaXRegistry, ModuleFactory, FlashLoanModule), and the bridge encoders.
Architecture Overview
The shared infrastructure is deployed once per MakinaX deployment. The ModuleFactory reads the implementation address from the MakinaXRegistry and deploys each module as an ERC-1167 minimal clone that delegatecalls into the MakinaXModule implementation. Each clone is installed on its own Safe and resolves the rest of its dependencies (the FlashLoanModule, the bridge encoders, the fee collector) through the registry at runtime.
For the conceptual model behind these contracts, start with the Concepts section. For onchain addresses, see Deployments.