메인 콘텐츠로 건너뛰기

RoyaltyFeeManager

It handles the logic to check and transfer royalty fees (if any).

Methods

INTERFACE_ID_ERC2981

function INTERFACE_ID_ERC2981() external view returns (bytes4)

Returns

NameTypeDescription
INTERFACE_ID_ERC2981bytes4ERC2981 interface id

STANDARD_ROYALTY_FEE

function STANDARD_ROYALTY_FEE() external view returns (uint256)

Returns

NameTypeDescription
STANDARD_ROYALTY_FEEuint256current standard royalty fee

calculateRoyaltyFeeAndGetRecipient

function calculateRoyaltyFeeAndGetRecipient(address collection, uint256 tokenId, uint256 amount) external view returns (address, uint256)

Calculate royalty fee and get recipient

Parameters

NameTypeDescription
collectionaddressaddress of the NFT contract
tokenIduint256tokenId
amountuint256amount (price of sale)

Returns

NameTypeDescription
recipientaddressroyalty recipient address
amountuint256amount of tokens to transfer to the recipient

royaltyFeeRegistry

function royaltyFeeRegistry() external view returns (contract IRoyaltyFeeRegistry)

Returns

NameTypeDescription
royaltyFeeRegistrycontract IRoyaltyFeeRegistryaddress of the RoyaltyFeeRegistry