LiquidityGovernanceAuth ​
Title: LiquidityGovernanceAuth
Shared helpers for contracts gated by Fluid Liquidity Layer governance.
Liquidity proxy is set at construction (prod, permissioned, or test). Governance is the EIP-1967 admin stored on that proxy (read via readFromStorage).
Constants ​
LIQUIDITY ​
Liquidity Layer proxy bound at deploy — not assumed identical across deployments.
solidity
address public immutable LIQUIDITY_LIQUIDITY_GOVERNANCE_SLOT ​
EIP-1967 admin slot on Liquidity — holds the governance address.
solidity
bytes32 internal constant _LIQUIDITY_GOVERNANCE_SLOT =
0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103Functions ​
constructor ​
solidity
constructor(address liquidity_) ;Parameters
| Name | Type | Description |
|---|---|---|
liquidity_ | address | Liquidity proxy whose EIP-1967 admin is governance for this contract. |
_governance ​
Current Liquidity Layer governance (owner) for LIQUIDITY.
solidity
function _governance() internal view returns (address);_isGovernance ​
Whether msg.sender is Liquidity Layer governance.
solidity
function _isGovernance() internal view returns (bool);onlyGovernance ​
Only Liquidity Layer governance.
solidity
modifier onlyGovernance() ;Errors ​
Access__Unauthorized ​
solidity
error Access__Unauthorized();