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.
View Methods
owner
Returns the address of the current owner.
Returns
owner
address
address of the current owner
royaltyFeeInfoCollection
View royalty info for a collection address
Parameters
collection
address
collection address
Returns
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%)
royaltyFeeLimit
Returns
royaltyFeeLimit
uint256
royalty fee limit (500 = 5%, 1,000 = 10%)
royaltyInfo
Calculate royalty info for a collection address and a sale gross amount
Parameters
collection
address
collection address
amount
uint256
amount
Returns
recipient
address
address of the recipient
amount
uint256
amount to be received by royalty recipient
Methods
renounceOwnership
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.
transferOwnership
Transfers ownership of the contract to a new account (newOwner
). Can only be called by the current owner.
Parameters
newOwner
address
address of the new owner
updateRoyaltyFeeLimit
Update royalty info for collection
Parameters
_royaltyFeeLimit
uint256
new royalty fee limit (500 = 5%, 1,000 = 10%)
updateRoyaltyInfoForCollection
Update royalty info for collection
Parameters
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%)
NewRoyaltyFeeLimit
Parameters
royaltyFeeLimit
uint256
upper limit for future updates in the royaltyFee of a collection (e.g., 5000 = 50%)
OwnershipTransferred
Parameters
previousOwner indexed
address
address of the previous owner
newOwner indexed
address
address of the new owner
RoyaltyFeeUpdate
Parameters
collection indexed
address
collection address
setter indexed
address
setter address
receiver indexed
address
receiver address
fee
uint256
fee (e.g., 200 = 2%)
Last updated