ozProxyFactoryFacet

Contract used by users to create an Account (ozAccountProxyL2) directly on L2.

It differs from ProxyFactory (on L1) that this one is an implementation from the greater proxy system (the Diamond Pattern), while ProxyFactory is a combination of several Open Zeppelin's contracts.

Also, since there's no bridging action, the Gelato integration has been removed.

Github repo here

Open methods

createNewProxy

function createNewProxy(
    struct AccountConfig calldata acc_
) external;

Creates an Account.

Parameters:

Struct:

struct AccountConfig {
    address user;
    address token;
    uint slippage; 
    string name;
}
Name
Type
Description

user

address

User who created the Account

token

address

Coin the user will receive after the transfer

slippage

uint256

Slippage used on swaps from ETH to token

name

string

Name of the Account

Function:

Name
Type
Description

acc_

struct AccountConfig

Configuration of the Account

Owner methods

authorizeSelector

function authorizeSelector(bytes4 selector_, bool status_) external;

Authorizes functions that can call exchangeToAccountToken()

Parameters:

Name
Type
Description

selector_

bytes4

Selector of function to authorize

status_

boolean

New status of selector_

Last updated