Comment on page
As previously mentioned, the management of MIMOProxy's permissions has been delegated to the
MIMOProxyGuard, which is deployed through the Openzeppelin Clones library in the
Having the permission management outside the
MIMOProxyreduces the risk of storage collision, and having a separate contract for it enables easy permission clearing. In the event of an ownership transfer of the
MIMOProxy, a new owner will likely want to clear existing permissions for security reasons (e.g., malicious action contracts may have been granted permissions before the transfer). However, due to the granularity of permissions, it would be difficult and expensive to remove them one by one. With the
MIMOProxyGuard, a user can simply clone a new
MIMOProxyGuard, which will not have any permissions set.
Initializer function to set state variables upon cloning.
Gives or takes a permission from an envoy to call the given target contract and function selector on behalf of the owner.
- Caller must the owner of the set
Returns the permission for specific
Returns the address of the MIMOProxy associated with the