Logic Contract
The logic contract contains the actual business rules, mathematical formulas, and executable code that define how a decentralized application functions. It does not hold any persistent state or user balances; instead, it performs operations on the data provided by the proxy contract.
By separating the logic from the data, developers can deploy new versions of the contract to fix bugs or add features without needing to migrate user funds or update the protocol address. This is essential for maintaining complex financial instruments like options and perpetual swaps, where code must be audited and updated periodically to address emerging security threats or market microstructure changes.