Purpose
The purpose of the pricing contracts is to serve as token-price data sources for ecosystem applications. The token pricers can be found in 2 different categories: Developers may choose to adapt their preferred third-party solution for token pricing: Configured pricing modules are required for the following rules:- Account Max Value by Risk.
- Account Max Value by Access Level.
- Account Max Transaction Value by Risk Score.
Price Format
- Price is in wei of US Dollars: 1 dollar is represented by 1 _ 10^18, and 1 cent is represented 1 _ 10^16 in these contracts. This is done to have precision over the price, and to account for the possibility of tokens with extremely low prices.
- The price is given for a whole token:
- For Fungible Tokens: just like regular market data outlets, the price will be given for a whole token without decimals. e.g 1 ETH.
- For Non-Fungible-Tokens: even in the case of a fractionalized NFT, the price is still given for the whole token and not for its fractions.