Comment on page
RoyaltyFeeManager
It handles the logic to check and transfer royalty fees (if any).
function INTERFACE_ID_ERC2981() external view returns (bytes4)
Name | Type | Description |
---|---|---|
INTERFACE_ID_ERC2981 | bytes4 | - |
function calculateRoyaltyFeeAndGetRecipient(address collection, uint256 tokenId, uint256 amount) external view returns (address, uint256)
Calculate royalty fee and get recipient
Name | Type | Description |
---|---|---|
collection | address | address of the NFT contract |
tokenId | uint256 | tokenId |
amount | uint256 | amount (price of sale) |
Name | Type | Description |
---|---|---|
recipient | address | royalty recipient address |
amount | uint256 | amount of tokens to transfer to the recipient |
function owner() external view returns (address)
Returns the address of the current owner.
Name | Type | Description |
---|---|---|
owner | address | address of the current owner |
function royaltyFeeRegistry() external view returns (contract IRoyaltyFeeRegistry)
Name | Type | Description |
---|---|---|
royaltyFeeRegistry | contract IRoyaltyFeeRegistry | address of the RoyaltyFeeRegistry |
function renounceOwnership() external nonpayable
Leaves the contract without owner. It will not be possible to call
onlyOwner
functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.function transferOwnership(address newOwner) external nonpayable
Transfers ownership of the contract to a new account (
newOwner
). Can only be called by the current owner.Name | Type | Description |
---|---|---|
newOwner | address | address of the new owner |
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Name | Type | Description |
---|---|---|
previousOwner indexed | address | address of the previous owner |
newOwner indexed | address | address of the new owner |