Questions About UUPS Proxy Pattern

Yeah, with proxy pattern, you can upgrade your contract later if you need, and UUPS is okay.

It should be in the implementation, so then later, you can change implementation contract to upgrade your contract, and for more details, maybe you can have a look at here: Upgrades - OpenZeppelin Docs

You can upgrade again with the previous implementation to revert the new changes. Actually, whenever you want to update your contracts, you should have a test at first, ensure the new function can work as expect, and the previous variables are right.

I think you can have a look at this tutorial:

1 Like