Skip to main content

How Is the Upgrade Function Typically Triggered in a UUPS Contract?

In a UUPS contract, the upgrade function (e.g. upgradeTo ) is typically implemented in the logic contract, not the proxy. The proxy delegates the call to this function.

This function is secured by a role-based access control or an owner check, ensuring only the authorized admin can trigger the upgrade, which points the proxy to a new logic contract address.

Can ‘Delegatecall’ Be Used for Unauthorized Access to the Proxy’s State?
Which Proxy Standard Is Generally Preferred for New DeFi Protocols and Why?
How Does a Proxy Vote Function in DPoS?
What Is the Difference between a Transparent Proxy and a UUPS Proxy?