Skip to content

GovernanceModule ​

Git Source

Inherits:IFluidLiquidityAdmin, CommonHelpers, Events, AdminModuleConstants

Fluid Liquidity Governance only related methods

Functions ​

onlyGovernance ​

only governance guard

solidity
modifier onlyGovernance();

_checkValidAddress ​

checks that value_ is a valid address (not zero address)

solidity
function _checkValidAddress(address value_) internal pure;

_checkIsContract ​

checks that value_ address is a contract

solidity
function _checkIsContract(address value_) internal view;

_checkIsContractOrNativeAddress ​

checks that value_ address is a contract (which includes address zero check) or the native token

solidity
function _checkIsContractOrNativeAddress(address value_) internal view;

_checkTokenDecimalsRange ​

checks that token_ decimals are between MIN_TOKEN_DECIMALS and MAX_TOKEN_DECIMALS (inclusive).

solidity
function _checkTokenDecimalsRange(address token_) internal view;

updateAuths ​

adds/removes auths. Auths generally could be contracts which can have restricted actions defined on contract. auths can be helpful in reducing governance overhead where it's not needed.

solidity
function updateAuths(AddressBool[] calldata authsStatus_) external onlyGovernance;

Parameters

NameTypeDescription
authsStatus_AddressBool[]array of structs setting allowed status for an address. status true => add auth, false => remove auth

updateGuardians ​

adds/removes guardians. Only callable by Governance.

solidity
function updateGuardians(AddressBool[] calldata guardiansStatus_) external onlyGovernance;

Parameters

NameTypeDescription
guardiansStatus_AddressBool[]array of structs setting allowed status for an address. status true => add guardian, false => remove guardian

updateRevenueCollector ​

changes the revenue collector address (contract that is sent revenue). Only callable by Governance.

solidity
function updateRevenueCollector(address revenueCollector_) external onlyGovernance;

Parameters

NameTypeDescription
revenueCollector_addressnew revenue collector address