Skip to main content

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_ERC2981bytes4-

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

owner

function owner() external view returns (address)

Returns the address of the current owner.

Returns

NameTypeDescription
owneraddressaddress of the current owner

renounceOwnership

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.

royaltyFeeRegistry

function royaltyFeeRegistry() external view returns (contract IRoyaltyFeeRegistry)

Returns

NameTypeDescription
royaltyFeeRegistrycontract IRoyaltyFeeRegistryaddress of the RoyaltyFeeRegistry

transferOwnership

function transferOwnership(address newOwner) external nonpayable

Transfers ownership of the contract to a new account (newOwner). Can only be called by the current owner.

Parameters

NameTypeDescription
newOwneraddressaddress of the new owner

Events

OwnershipTransferred

event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

Parameters

NameTypeDescription
previousOwner indexedaddressaddress of the previous owner
newOwner indexedaddressaddress of the new owner