Chuyển tiếp đến nội dung chính

CreatorFeeManagerWithRebates

This contract returns the creator fee address and the creator rebate amount.

STANDARD_ROYALTY_FEE_BP

uint256 STANDARD_ROYALTY_FEE_BP

Standard royalty fee (in basis point).

royaltyFeeRegistry

contract IRoyaltyFeeRegistry royaltyFeeRegistry

Royalty fee registry interface.

constructor

constructor(address _royaltyFeeRegistry) public

Constructor

Parameters

NameTypeDescription
_royaltyFeeRegistryaddressRoyalty fee registry address.

viewCreatorFeeInfo

function viewCreatorFeeInfo(address collection, uint256 price, uint256[] itemIds) external view returns (address creator, uint256 creatorFeeAmount)

This function returns the creator address and calculates the creator fee amount.

Parameters

NameTypeDescription
collectionaddressCollection address
priceuint256Transaction price
itemIdsuint256[]Array of item ids

Return Values

NameTypeDescription
creatoraddressCreator address
creatorFeeAmountuint256Creator fee amount