[ERC-1822](https://eips.ethereum.org/EIPS/eip-1822), also known as the [[Universal Upgradeable Proxy Standard]] ([[UUPS]]), is a proposed standard for implementing upgradeable contracts on the Ethereum blockchain. It was introduced in October 2021 as an improvement over the existing proxy contract standards, such as ERC-1967 and ERC-1733.
# Proxy Contract and Logic Contract
![[UUPS_Proxies.excalidraw|center]]
The main objective of ERC-1822 is to establish a unified approach for proxy contracts that allows for seamless upgradability while ensuring compatibility across different implementations. It aims to provide a standardized interface and behavior for upgradeable contracts, making it easier for developers to create, interact with, and update these contracts.
Some key features and benefits of ERC-1822 include:
1. Improved Security: UUPS introduces a mechanism that separates logic implementation from the storage of contract state variables. This separation reduces the risk of vulnerabilities during contract upgrades.
2. Reduced Deployment Costs: With UUPS, only the implementation logic needs to be deployed once, while the contract's state variables can be stored separately in a proxy contract. This separation reduces deployment gas costs and simplifies the upgrade process.
3. Enhanced Upgradability: UUPS allows developers to modify implementation code without compromising the existing contract's address or storage layout. Upgrades can be performed without requiring users to update their interaction code or migrate their funds.
4. Compatibility: ERC-1822 aims to provide a standardized interface that can be adopted by different projects and frameworks. This interoperability ensures that contracts built using UUPS can seamlessly interact with other upgradeable contracts within the Ethereum ecosystem.
5. Decentralized Governance: The standard includes optional provisions for incorporating decentralized governance mechanisms into upgradeable contracts. This enables token holders or community members to participate in decision-making processes related to upgrades.
Overall, ERC-1822 (UUPS) aims to address some of the limitations and challenges associated with previous proxy contract standards on Ethereum. By providing a standardized approach for developing upgradeable contracts, it aims to promote a more secure and efficient ecosystem for smart contract deployment and maintenance.