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

105 lines
7.1 KiB
Markdown
Raw Normal View History

2022-01-18 07:31:08 +01:00
---
description: The Ocean Protocol defines various fees for creating a sustainability loop.
---
# Fees
### Path to sustainability
2022-01-18 07:31:08 +01:00
Ocean Protocol achieves sustainability via the [Web3 sustainability loop](https://blog.oceanprotocol.com/the-web3-sustainability-loop-b2a4097a36e).
2022-03-30 10:21:57 +02:00
* The project grows and improves through the efforts of OceanDAO grant recipients.
* The OceanDAO votes to decide which proposals receive grants.
* Grant funds are sourced from the Ocean Protocol community treasury.
* The Ocean Protocol community collects fees when users interact with the protocol, thus completing the sustainability loop.
2022-01-18 07:31:08 +01:00
### Fee types
2022-01-18 07:31:08 +01:00
#### Swap fee
2022-03-14 23:16:11 +01:00
Swap fees are collected whenever someone swaps a datatoken for base token (e.g., OCEAN) or base token for a datatoken. The swap can be conducted using a a fixed-rate exchange. These are the fees that are applied whenever a user swaps base token or datatoken:
2022-03-14 23:16:11 +01:00
* Publisher Marketplace swap fee
* Consumer Marketplace swap fee
* Provider Consumption Fees
* [Ocean Community Fee](fees.md#ocean-community-fee)
2022-03-14 23:16:11 +01:00
#### Publish fee
2022-03-14 23:16:11 +01:00
Publish fees can be charged to a publisher when they publish an asset.
2022-03-14 23:16:11 +01:00
Currently, the Ocean marketplace does not charge a publishing fee. Custom marketplaces can charge a publishing fee by adding an extra transaction in the publish flow.
2022-03-14 23:16:11 +01:00
Based on the use case of the marketplace, the marketplace owner can decide if this fee should be charged or not.
#### Consume fee
2022-03-14 23:16:11 +01:00
Consume fees (aka. Order fees) are charged when a user holding a datatoken exchanges it for the right to download an asset or to start a compute job that uses the asset.
2022-03-14 23:16:11 +01:00
These are the fees that are applied whenever a user pays to access an asset:
2022-03-14 23:16:11 +01:00
* Consume Market Consumption Fee
* Publisher Market Consumption Fee
* Provider Consumption Fees
* [Ocean Community Fee](fees.md#ocean-community-fee)
2022-03-14 23:16:11 +01:00
#### Ocean Community fee
2022-03-14 23:16:11 +01:00
2022-03-30 10:21:57 +02:00
Ocean's smart contracts collect **Ocean Community fees** during swap and order operations. These fees are reinvested in community projects via OceanDAO and other initiatives.
2022-03-14 23:16:11 +01:00
For swaps involving approved base tokens like OCEAN and H2O, the Ocean Community swap fee is 0.1%. For swaps involving other base tokens, the Ocean Community swap fee is 0.2%. The Ocean Community order fee is 0.03 DT per order operation.
These fees can be updated by the Ocean Protocol Foundation.
2022-03-14 23:16:11 +01:00
#### Provider fee
2022-03-14 23:16:11 +01:00
Provider is a component of Ocean Protocol's ecosystem that facilitates data consumption, starts compute jobs, encrypts DDOs, and decrypts DDOs. Provider also validates if the user can access a particular data asset or service. To learn more about Provider, click [here](https://github.com/oceanprotocol/provider).
2022-03-14 23:16:11 +01:00
Provider fees are paid to the individual or organization running their Provider instance when the user orders an asset. These fees can be set to an absolute amount, not as a percentage. The provider can also specify which token the fees must be paid in - they don't have to be the same token used in the consuming market.
2022-03-14 23:16:11 +01:00
Provider fees can also be used to charge for computing resources. Based on the compute resources needed to run an algorithm in the Compute-to-Data environment, a consumer can choose the amount to pay according to their needs.
2022-03-14 23:16:11 +01:00
These fees incentivize individuals and organizations to run their provider instances and charge consumers according to resource usage.
2022-01-18 07:31:08 +01:00
### Fee values
2022-03-23 17:21:31 +01:00
The table is periodically updated. Users are advised to confirm new values through the [contracts](https://github.com/oceanprotocol/contracts) and the [market](https://github.com/oceanprotocol/market).
#### Swap fees
| Market/Type | Value in Ocean Market, using any Provider | Value in Other Markets |
| ------------------------------------------------------------- | ----------------------------------------- | --------------------------------------------------------------------------------------- |
| publishMarket: FixedRate | 0% | <p>Set in the market config, by the publishing market.<br>Min = 0.001%<br>Max = 50%</p> |
| <p>consumeMarket: FixedRate<br>ERC20Template</p> | 0% | 0% |
| <p>consumeMarket: FixedRate<br>EnterpriseTemplate</p> | 0% | Set in market config, by the consuming market. |
| <p>Ocean Community: FixedRate<br>OCEAN, H2O as base token</p> | 0.1% | 0.1% |
| <p>Ocean Community: FixedRate<br>other base token</p> | 0.2% | 0.2% |
#### Publish fees
| Market/Type | Value in Ocean Market, using any Provider | Value in Other Markets |
| ----------- | ----------------------------------------- | ---------------------- |
| - | 0% | 0% |
#### Order fees (1 DT)
| Market/Type | Value in Ocean Market, using any Provider | Value in Other Markets |
| ----------------------------------------------------------------- | ----------------------------------------- | ----------------------------------------------- |
| <p>publishMarket<br>Absolute value, in any token. E.g. 5 USDT</p> | 0 | Set in market config, by the publishing market. |
| <p>consumeMarket<br>Absolute value, in any token. E.g. 2 DAI</p> | 0 | Set in market config, by the consuming market. |
| <p>Ocean Community<br>Fixed price in DT</p> | 0.03 DT | 0.03 DT |
#### Ocean Provider fees
| Type | OPF Provider | 3rd party Provider |
| ---------------------------------------------------------------------------- | :--------------------: | ------------------------------ |
| Token in which fee is charged: `PROVIDER_FEE_TOKEN` | OCEAN | E.g. USDC |
| Download: `COST_PER_MB` | 0 | Set in Provider envvars. |
| <p>Compute: <code>COST_PER_MIN</code><br>Environment: 1 CPU, 60 secs max</p> | 0 | Set in OperatorEngine envvars. |
| <p>Compute: <code>COST_PER_MIN</code><br>Environment: 1 CPU, 1 hour max</p> | 1.0 OCEAN/min | Set in OperatorEngine envvars. |
| Ocean Community | 0% of the Provider fee | 0% of the Provider fee |
### Further reading
* [The Web3 Sustainability Loop](https://blog.oceanprotocol.com/the-web3-sustainability-loop-b2a4097a36e)