IBaseFeeCollectModule

Git Source

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

NameTypeDescription
profileIduint256The token ID of the profile mapped to the publication to query.
pubIduint256The publication ID of the publication to query.

Returns

NameTypeDescription
<none>BaseProfilePublicationDataThe 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

NameTypeDescription
<none>uint160The collect fee of the specified publication.