ozDiamond

Heart of the whole system, where all main function calls are routed through -for L2-, making it the most important proxy which distributes its calls to the different implementations. It inherits the Diamond pattern from EIP 2535.

It also checks whether it's necessary to calculate the revenue of the owner. More info on RevenueFacet.

Github repo here.

System methods

_filterRevenueCheck

function _filterRevenueCheck(
        address calledFacet_, 
        address[] memory nonRevenueFacets_, 
        address revenueFacet_
) private;

Checks if it's necessary to calculate the revenue of the owner. More info on RevenueFacet.

Parameters:

Name
Type
Description

calledFacet_

address

Implementation being called

nonRevenueFacets_

address[ ]

Implementations that don't produce a check of AUM against revenue tiers

revenueFacet_

address

Current version of the Revenue implementation

Last updated