BaseRoyalty
Abstract contract for managing royalties. This contract provides the basis for creating custom royalties models by enabling the derivation of subclasses.
getRoyaltyPoolBasisPoints
Calculates the basis points for the royalty pool
Parameters
_erc20
address
The address of the ERC20 token
_totalAmount
uint256
The total amount of tokens
Return Values
royaltyPoolBasisPoints
uint256
The calculated basis points for the royalty pool
getCommissionBasisPoints
Calculates the commission basis points
Parameters
_erc20
address
The address of the ERC20 token
_totalAmount
uint256
The total amount of tokens
Return Values
commissionBasisPoints
uint256
The calculated commission basis points
getRoyaltyBreakdown
Calculates the royalty and commission amounts
Parameters
_erc20
address
The address of the ERC20 token
_totalAmount
uint256
The total amount of tokens
Return Values
_royaltyPoolAmount
uint256
The calculated amount for the royalty pool
_comissionAmount
uint256
The calculated commission amount
supportsInterface
Checks if the contract implements an interface.
Parameters
_interfaceId
bytes4
The ID of the interface.
Return Values
[0]
bool
True if the contract implements the interface, false otherwise.
Last updated