What Is the Purpose of a Contract Factory in DeFi?
A contract factory is a smart contract designed to deploy other smart contracts. In DeFi, it is used to create standardized instances of protocols, such as new token pairs on a DEX or new loan vaults.
This allows for permissionless creation of new assets or markets, ensuring that every new contract instance adheres to the same, verified, and secure template logic.