OnlyRouterAccess

View Source: @nomisma/elektro-protocol-aux/contracts/utils/OnlyRouterAccess.sol

↘ Derived Contracts: ElektroEventEmitter, ElektroStorage, FundLockStorage, RegistryBaseStorage

OnlyRouterAccess

Contract used to ensure that function call can be only executed by {Router} contract Some functions needs to have restricted access that can be only accessible by {Router} calls, In order to use onlyRouterAccess modifier, contract needs to inherit from OnlyRouterAccess contract See {Router} docs

Contract Members

Constants & Variables

bool internal isImplementationContract;

Modifiers

  • onlyRouterAccess

onlyRouterAccess

Checks if calling contract is not implementation contract.

modifier onlyRouterAccess() internal

Arguments

Functions

  • ()

Constructor initializes isImplementationContract var to true Contracts that extend OnlyRouterAccess will always have this var set to true without possiblity to change

function () public nonpayable

Arguments

Last updated