Facet
A facet is an independent smart contract that contains specific logic and functions intended to be called through a Diamond proxy contract. In the context of the Diamond Standard, facets hold the actual implementation code, while the Diamond contract maintains the state and the routing logic.
This separation allows developers to add, replace, or remove functionality by updating the mapping of function selectors to specific facets. Facets enable a protocol to grow beyond the maximum contract size limit while keeping related functions grouped logically.
This architectural pattern is essential for managing the complexity of large-scale decentralized derivative platforms.