Git Source

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.

function getNFTPrice(address nftContract, uint256 id) external view returns (uint256 price);

Parameters

NameTypeDescription
nftContractaddressis the address of the NFT contract
iduint256of the NFT

Returns

NameTypeDescription
priceuint256of the Token in weis of dollars. 10^18 => $ 1.00 USD

getNFTCollectionPrice

Gets the default price for an NFT collection.

function getNFTCollectionPrice(address nftContract) external view returns (uint256 price);

Parameters

NameTypeDescription
nftContractaddressis the address of the NFT contract

Returns

NameTypeDescription
priceuint256of the Token in weis of dollars. 10^18 => $ 1.00 USD