How to use Pausable in upgradeble contracts

Should the Pausable contract used in a Proxy contract with upgradeable contracts also be upgradeable? If the proxy contract is upgraded, will the Pausable contract still work? Is this just a best practice?

1 Like

sent a message, please check!

Thanks.

1 Like

@Mylifechangefast.eth I'm not sure if this is what you are asking, but generally the proxy contract itself should not need any features such as pausability -- pausability should be enabled in the implementation contract using PausableUpgradeable.

2 Likes

Sorry it was meant to be implemention contract, but can I still use just a normal pausable contract and not PausableUpgradeable? for it.

will it pose a risk?

1 Like

@Mylifechangefast.eth The implementation contract should use PausableUpgradeable which is designed to be upgradeable. For example, it has initializers and uses namespaced storage.

2 Likes