IProtocolERC721Pricing.sol
IProtocolERC721Pricing
Inherits: NFTPricingErrors
Author: @ShaneDuncan602, @oscarsernarosero, @TJ-Everett
This contract is a simple pricing mechanism only. Its main purpose is to store prices.
This interface is used for simplicity in implementation of actual pricing module.
Functions
getNFTPrice
Gets the price for an NFT. It will return the NFT’s specific price, or the price of the collection if no specific price has been given.
Parameters
Name | Type | Description |
---|---|---|
nftContract | address | is the address of the NFT contract |
id | uint256 | of the NFT |
Returns
Name | Type | Description |
---|---|---|
price | uint256 | of the Token in weis of dollars. 10^18 => $ 1.00 USD |
getNFTCollectionPrice
Gets the default price for an NFT collection.
Parameters
Name | Type | Description |
---|---|---|
nftContract | address | is the address of the NFT contract |
Returns
Name | Type | Description |
---|---|---|
price | uint256 | of the Token in weis of dollars. 10^18 => $ 1.00 USD |