Implementation in charge of key system configuration, and of adding/removing/replacing functions from the Diamond structure.
changeDefaultSlippage
function changeDefaultSlippage(uint bps_) external;
Changes the slippage used in certain non-user swaps. These ones are:
Parameters:
New slippage (expressed in basis points)
function changeL1Check(bool newState_) external;
Enables/disables the check done in exchangeToAccountToken() that verifies if the token of the incoming Account comes from L1 or L2.
Parameters:
If the L1 check needs to be done or not
changeProtocolFee
Changes the fee that the protocol charges.
New protocol fee (expressed in basis points)
changeRevenueToken
Changes the token on which the owner would receive their revenue, after being computed.
Parameters:
changeUniPoolFee
Changes the fee -which would change the pool itself- used on the Uniswap swap that computes the owner's revenue.
Parameters:
Inherited from EIP-2535's DiamondCutFacet contract.
It adds/removes/replaces functions from the Diamond structure, and optionally it can execute a callback upon addition/removal/replacement.
Parameters:
Each group/struct is the contract address of the change, the action to perform, and the functions selectors in question.
Contract where to execute the callback.
Bytecode of the callback (including selector)
Parameters:
Depositing the charged fees into DeFi.
Compute the owner's revenue.
enableWithdrawals
Enable users to withdraw the protocol's revenue, in direct proportion to each user's OZL balance.
Parameters:
New status of withdrawals
setAuthorizedCaller
Authorizes or revoke access of new addresses for calling the main entry function in L2 (exchangeToAccountToken())
Parameters:
Msg.sender of entry L2 call