mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
77 lines
2.7 KiB
Markdown
77 lines
2.7 KiB
Markdown
---
|
|
title: Swap and/or Add liquidity
|
|
description: Tutorial to swap datatokens, and add liquidity to Ocean pools
|
|
---
|
|
|
|
## Swap OCEAN tokens against datatokens
|
|
|
|
### Finding an asset
|
|
|
|
Search for the desired asset published on the <a href="https://v4.market.oceanprotocol.com/" target="_blank">Ocean Marketplace</a>.
|
|
|
|
### Step 1 - Associated risks
|
|
|
|
Please read carefully the risks associated with this operation.
|
|
|
|
![swap part-1](images/marketplace/Swap-1.png 'Associated risks')
|
|
|
|
### Step 2 - Trade amount
|
|
|
|
Enter the amount of OCEAN tokens to swap. The datatokens amount to receive is displayed with the swap fees information. The reverse operation(swap datatokens to OCEAN tokens) is also available on the trade tab.
|
|
|
|
![swap part-2](images/marketplace/Swap-2.png 'Amount of OCEANs to swap')
|
|
|
|
### Step 3 - Transaction: Access to OCEAN token(s)
|
|
|
|
![swap part-3](images/marketplace/Swap-3.png 'Transaction: Approve spend limit')
|
|
|
|
### Step 4 - Click swap
|
|
|
|
![swap part-4](images/marketplace/Swap-4.png 'Swap tokens')
|
|
|
|
### Step 5 - Transaction: Swap tokens
|
|
|
|
![swap part-5](images/marketplace/Swap-5.png 'Transaction: Swap tokens')
|
|
|
|
![swap part-6](images/marketplace/Swap-6.png 'View transaction')
|
|
|
|
Click <a href="https://rinkeby.etherscan.io//tx/0x2f98479adafa93eedbdff8a90a41d760a42290c961dd6aa2b9e09170665adc23" target="_blank">here</a> to view a sample transaction on the Rinkeby test network.
|
|
|
|
## Adding Liquidity
|
|
|
|
Search for the desired asset published on the <a href="https://v4.market.oceanprotocol.com/" target="_blank">Ocean Marketplace</a>.
|
|
|
|
### Step 1 - Select pool tab
|
|
|
|
After finding the dataset, select **`POOL`** tab and click on **`ADD LIQUIDITY`**
|
|
|
|
![staking part-1](images/marketplace/Staking-1.png 'POOL tab')
|
|
|
|
### Step 2 - Associated risks
|
|
|
|
Please read carefully the risks associated with this operation.
|
|
|
|
![staking part-2](images/marketplace/Staking-2.png 'Associated risks')
|
|
|
|
### Step 3 - Add liquidity amount
|
|
|
|
Enter the amount of OCEAN tokens you want to add. The expected amount of pool shares and percentages for the provided amount will be displayed.
|
|
|
|
![staking part-3](images/marketplace/Staking-3.png 'Add liquidity amount')
|
|
|
|
### Step 4 - Transaction: Access to OCEAN tokens
|
|
|
|
![staking part-4](images/marketplace/Staking-4.png 'Transaction: Approve spend limit')
|
|
|
|
### Step 5 - Click supply
|
|
|
|
![staking part-5](images/marketplace/Staking-5.png 'SUPPLY liquidity')
|
|
|
|
### Step 6 - Transaction: Add liquidty
|
|
|
|
![staking part-6](images/marketplace/Staking-6.png 'Transaction: Add liquidity')
|
|
|
|
![staking part-7](images/marketplace/Staking-7.png 'View transaction')
|
|
|
|
Click <a href="https://rinkeby.etherscan.io//tx/0x719b8627e5deb51af21184db7c6747bf5141782ba3e8fe5358f5a15ba67b594b" target="_blank">here</a> to view a sample transaction on the Rinkeby test network.
|