RoyaltyFeeRegistry
A royalty fee registry for the LooksRare exchange. Any marketplace can use this to implement royalty fees for collections that do not implement ERC-2981.
function owner() external view returns (address)
Returns the address of the current owner.
Name | Type | Description |
---|---|---|
owner | address | address of the current owner |
function royaltyFeeInfoCollection(address collection) external view returns (address, address, uint256)
View royalty info for a collection address
Name | Type | Description |
---|---|---|
collection | address | collection address |
Name | Type | Description |
---|---|---|
setter | address | address of the setter (can update the royalty fee info in the registry) |
recipient | address | address of the recipient (collect the royalty fee) |
fee | uint256 | fee (e.g., 200 = 2%) |
function royaltyFeeLimit() external view returns (uint256)
Name | Type | Description |
---|---|---|
royaltyFeeLimit | uint256 | royalty fee limit (500 = 5%, 1,000 = 10%) |
function royaltyInfo(address collection, uint256 amount) external view returns (address, uint256)
Calculate royalty info for a collection address and a sale gross amount
Name | Type | Description |
---|---|---|
collection | address | collection address |
amount | uint256 | amount |
Name | Type | Description |
---|---|---|
recipient | address | address of the recipient |
amount | uint256 | amount to be received by royalty recipient |
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 |
function updateRoyaltyFeeLimit(uint256 _royaltyFeeLimit) external nonpayable
Update royalty info for collection
Name | Type | Description |
---|---|---|
_royaltyFeeLimit | uint256 | new royalty fee limit (500 = 5%, 1,000 = 10%) |
function updateRoyaltyInfoForCollection(address collection, address setter, address receiver, uint256 fee) external nonpayable
Update royalty info for collection
Name | Type | Description |
---|---|---|
collection | address | address of the NFT contract |
setter | address | address that sets the receiver |
receiver | address | receiver for the royalty fee |
fee | uint256 | fee (500 = 5%, 1,000 = 10%) |
event NewRoyaltyFeeLimit(uint256 royaltyFeeLimit)
Name | Type | Description |
---|---|---|
royaltyFeeLimit | uint256 | upper limit for future updates in the royaltyFee of a collection (e.g., 5000 = 50%) |
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)