1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

Issue-#956: Add information on fixed rate exchange and free pricing

This commit is contained in:
Akshay 2022-04-26 22:16:30 +02:00
parent 54a41827fd
commit d622281b9e

View File

@ -9,6 +9,8 @@ Ocean Protocol offers 3 types of pricing options for asset monetization. The ass
In a fixed pricing model, an asset's value is fixed as long as it is available in the market for buying. Publisher can set the price by deciding the value of a datatoken in terms of the number of Ocean tokens. The buyer needs to pay the exact number of Ocean tokens to get 1 datatoken. The publisher has an option to update the price of the dataset later anytime.
A [FixedRateExchange](https://github.com/oceanprotocol/contracts/blob/v4main/contracts/pools/fixedRate/FixedRateExchange.sol) smart contract stores the information about the price of the assets published using this model.
Publishers can choose this fixed pricing model when they do not want Automated Market Maker(AMM) pools to decide the price discovery. If the publisher has already analyzed and estimated the worth of the dataset and is ready to sell an asset at a constant price, this is the suitable pricing model.
The below image shows how to set the fixed pricing of an asset in the Ocean's Marketplace. Here, the price of the asset is set to 10 Ocean tokens.
@ -24,7 +26,7 @@ AMM uses a constant product formula to price tokens, which states: **x * y = k**
A *liquidity pool* is a reserve of tokens locked in the smart contract for market making. A buyer or a seller of an asset exchanges token **x** for token **y** or vice versa. AMM calculates the exchange ratio between the tokens based on the mathematical formula above.
Ocean Protocol facilitates the creation of Datatoken/OCEAN liquidity pool with Balancer smart contracts.
Ocean Protocol facilitates the creation of Datatoken/OCEAN liquidity pool with [Balancer smart contracts](https://github.com/oceanprotocol/contracts/tree/v4main/contracts/pools/balancer).
While publishing an asset with dynamic pricing, the publisher decides the initial ratio of Datatokens and Ocean tokens in the pool, thus setting the initial price of an asset. The price of an asset is later dependent on the pool's liquidity and the price impact of trade in the pool.
@ -40,6 +42,10 @@ Ocean Protocol also allows publishers to set the pricing using ocean.js and ocea
With free pricing, the buyers can access an asset without requiring to pay for it except for the transaction fees.
With this pricing model, datatokens are allocated to the [dispenser](https://github.com/oceanprotocol/contracts/blob/v4main/contracts/pools/dispenser/Dispenser.sol) smart contract which dispenses data tokens to users for free whenever they are accessing an asset.
Free pricing is suitable for individuals and orginisations working in public domain and want their datasets to be freely avialable. Publishers can also choose this model if they are listing assets with licenses that requires them to make it freely avialble.
The below image shows how to set free access to an asset in the Ocean's Marketplace.
![free-asset-pricing](images/free-asset-pricing.png 'Free asset pricing using Marketplace')