Git Source

Author: @ShaneDuncan602, @oscarsernarosero, @TJ-Everett

This contract is a simple pricing mechanism only. Its main purpose is to store prices.

This contract doesn’t allow any marketplace operations.

Functions

getTokenPrice

Gets the price of a Token. It will return the Token’s specific price.

function getTokenPrice(address tokenContract) external view returns (uint256 price);

Parameters

NameTypeDescription
tokenContractaddressis the address of the Token contract

Returns

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