Skip to main content

ICreatorFeeManager

LooksRare protocol team (👀,💎)

ICreatorFeeManager

Methods​

royaltyFeeRegistry​

function royaltyFeeRegistry() external view returns (contract IRoyaltyFeeRegistry royaltyFeeRegistry)

It returns the royalty fee registry address/interface.

Returns​

NameTypeDescription
royaltyFeeRegistrycontract IRoyaltyFeeRegistryInterface of the royalty fee registry

viewCreatorFeeInfo​

function viewCreatorFeeInfo(address collection, uint256 price, uint256[] itemIds) external view returns (address creator, uint256 creatorFeeAmount)

This function returns the creator address and calculates the creator fee amount.

Parameters​

NameTypeDescription
collectionaddressCollection address
priceuint256Transaction price
itemIdsuint256[]Array of item ids

Returns​

NameTypeDescription
creatoraddressCreator address
creatorFeeAmountuint256Creator fee amount

Errors​

BundleEIP2981NotAllowed​

error BundleEIP2981NotAllowed(address collection)

It is returned if the bundle contains multiple itemIds with different creator fee structure.

Parameters​

NameTypeDescription
collectionaddressundefined