FeeModuleBase

Git Source

Author: Lens Protocol

This is an abstract contract to be inherited from by modules that require basic fee functionality. It contains getters for module globals parameters as well as a validation function to check expected data.

State Variables

BPS_MAX

uint16 internal constant BPS_MAX = 10000;

HUB

ILensHub private immutable HUB;

MODULE_REGISTRY

IModuleRegistry public immutable MODULE_REGISTRY;

Functions

constructor

constructor(address hub);

_currencyWhitelisted

function _currencyWhitelisted(address currency) internal returns (bool);

_treasuryData

function _treasuryData() internal view returns (address, uint16);

_validateDataIsExpected

function _validateDataIsExpected(bytes calldata data, address currency, uint256 amount) internal pure;