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
Name | Type | Description |
---|---|---|
INTERFACE_ID_ERC2981 | bytes4 | ERC2981 interface id |
STANDARD_ROYALTY_FEE
function STANDARD_ROYALTY_FEE() external view returns (uint256)
Returns
Name | Type | Description |
---|---|---|
STANDARD_ROYALTY_FEE | uint256 | current standard royalty fee |
calculateRoyaltyFeeAndGetRecipient
function calculateRoyaltyFeeAndGetRecipient(address collection, uint256 tokenId, uint256 amount) external view returns (address, uint256)
Calculate royalty fee and get recipient
Parameters
Name | Type | Description |
---|---|---|
collection | address | address of the NFT contract |
tokenId | uint256 | tokenId |
amount | uint256 | amount (price of sale) |
Returns
Name | Type | Description |
---|---|---|
recipient | address | royalty recipient address |
amount | uint256 | amount of tokens to transfer to the recipient |
royaltyFeeRegistry
function royaltyFeeRegistry() external view returns (contract IRoyaltyFeeRegistry)
Returns
Name | Type | Description |
---|---|---|
royaltyFeeRegistry | contract IRoyaltyFeeRegistry | address of the RoyaltyFeeRegistry |