IBaseFeeCollectModule
Inherits: ICollectModule
Functions
getBasePublicationData
Returns the Base publication data for a given publication, or an empty struct if that publication was not initialized with this module.
function getBasePublicationData(uint256 profileId, uint256 pubId)
external
view
returns (BaseProfilePublicationData memory);
Parameters
Name | Type | Description |
---|---|---|
profileId | uint256 | The token ID of the profile mapped to the publication to query. |
pubId | uint256 | The publication ID of the publication to query. |
Returns
Name | Type | Description |
---|---|---|
<none> | BaseProfilePublicationData | The BaseProfilePublicationData struct mapped to that publication. |
calculateFee
Calculates and returns the collect fee of a publication.
Override this function to use a different formula for the fee.
function calculateFee(Types.ProcessCollectParams calldata processCollectParams) external view returns (uint160);
Returns
Name | Type | Description |
---|---|---|
<none> | uint160 | The collect fee of the specified publication. |