Skip to content

Latest commit

 

History

History
85 lines (55 loc) · 2.98 KB

pause.md

File metadata and controls

85 lines (55 loc) · 2.98 KB
title Pause and Unpause the Bridge
lang en-US

Why do it?

The OptimismPortal is a bridge contract that makes it possible to send messages between your L1 and your L2 OP Stack chain. The OptimismPortal is pausable as a backup safety mechanism that allows a specific GUARDIAN address to temporarily halt deposits and withdrawals to mitigate security issues if necessary. An OP Stack chain does not have to specify a usable GUARDIAN address if it does not want to make the OptimismPortal contract pausable, it can specify an address such as zero.

Who can do it?

OptimismPortal has an immutable GUARDIAN. That address can call pause and unpause.

Changing the guardian

The guardian created by the setup script is the admin account. This is sufficient for testing, but for a production system you would want the guardian to be a multisig with trusted security council.

The GUARDIAN variable is immutable, but the OptimismPortal contract sits behind a proxy, so the GUARDIAN can be modified by changing the OptimismPortal proxy to point to a new implementation contract. You do this using the L1 ProxyAdmin contract.