1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00
docs/content/tutorials/marketplace-swap-and-stake.md

81 lines
2.7 KiB
Markdown
Raw Normal View History

---
title: Swap and/or Stake Tokens
2022-04-14 12:39:47 +02:00
description: Tutorial to swap datatoken, and stake Ocean tokens
---
2022-04-12 17:13:28 +02:00
## Swap OCEAN tokens against datatokens
2022-04-07 23:53:29 +02:00
### Finding an asset
2022-04-08 00:24:56 +02:00
Search for the desired asset published on the <a href="https://v4.market.oceanprotocol.com/" target="_blank">Ocean Marketplace</a>.
2022-04-14 12:39:47 +02:00
### Step 1 - Associated risks
2022-04-14 12:39:47 +02:00
Please read carefully the risks associated with this operation.
2022-04-12 17:13:28 +02:00
2022-04-14 12:39:47 +02:00
![swap part-1](images/marketplace/Swap-1.png 'Associated risks')
2022-04-14 12:39:47 +02:00
### Step 2 - Trade amount
2022-04-14 12:39:47 +02:00
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.
2022-04-07 23:53:29 +02:00
2022-04-14 12:39:47 +02:00
![swap part-2](images/marketplace/Swap-2.png 'Amount of OCEANs to swap')
2022-04-07 23:53:29 +02:00
2022-04-14 12:39:47 +02:00
### Step 3 - Transaction: Access to OCEAN token(s)
2022-04-07 23:53:29 +02:00
2022-04-08 00:24:56 +02:00
![swap part-3](images/marketplace/Swap-3.png 'Transaction: Approve spend limit')
2022-04-07 23:53:29 +02:00
2022-04-14 12:39:47 +02:00
### Step 4 - Click swap
2022-04-07 23:53:29 +02:00
![swap part-4](images/marketplace/Swap-4.png 'Click swap tokens')
2022-04-14 12:39:47 +02:00
### Step 5 - Transaction: Swap tokens
2022-04-07 23:53:29 +02:00
![swap part-5](images/marketplace/Swap-5.png 'Transaction: Swap tokens')
2022-04-14 13:51:58 +02:00
### Swap transaction
2022-04-07 23:53:29 +02:00
![swap part-6](images/marketplace/Swap-6.png 'View transaction')
2022-04-14 12:39:47 +02:00
Click <a href="https://rinkeby.etherscan.io//tx/0x2f98479adafa93eedbdff8a90a41d760a42290c961dd6aa2b9e09170665adc23" target="_blank">here</a> to view a sample transaction on the Rinkeby test network.
## Staking (Adding Liquidity)
2022-04-08 00:24:56 +02:00
Search for the desired asset published on the <a href="https://v4.market.oceanprotocol.com/" target="_blank">Ocean Marketplace</a>.
2022-04-14 12:39:47 +02:00
### Step 1 - Select pool tab
2022-04-08 00:24:56 +02:00
After finding the dataset, select **`POOL`** tab and click on **`ADD LIQUIDITY`**
2022-04-14 12:39:47 +02:00
![staking part-1](images/marketplace/Staking-1.png 'POOL tab')
2022-04-12 17:13:28 +02:00
2022-04-14 12:39:47 +02:00
### Step 2 - Associated risks
2022-04-14 12:39:47 +02:00
Please read carefully the risks associated with this operation.
2022-04-14 12:39:47 +02:00
![staking part-2](images/marketplace/Staking-2.png 'Associated risks')
2022-04-08 00:24:56 +02:00
2022-04-14 12:39:47 +02:00
### Step 3 - Stake amount
2022-04-08 00:24:56 +02:00
2022-04-14 12:39:47 +02:00
Enter the amount of OCEAN tokens you want to stake. The expected amount of pool shares and percentages for the provided amount will be displayed.
2022-04-08 00:24:56 +02:00
2022-04-14 12:39:47 +02:00
![staking part-3](images/marketplace/Staking-3.png 'Stake amount')
2022-04-08 00:24:56 +02:00
2022-04-14 12:39:47 +02:00
### Step 4 - Transaction: Access to OCEAN tokens
2022-04-08 00:24:56 +02:00
![staking part-4](images/marketplace/Staking-4.png 'Transaction: Approve spend limit')
2022-04-14 12:39:47 +02:00
### Step 5 - Click supply
![staking part-5](images/marketplace/Staking-5.png 'SUPPLY liquidity')
### Step 6 - Transaction: Add liquidty
2022-04-08 00:24:56 +02:00
2022-04-14 12:39:47 +02:00
![staking part-6](images/marketplace/Staking-6.png 'Transaction: Add liquidity')
2022-04-08 00:24:56 +02:00
2022-04-14 13:51:58 +02:00
### Stake transaction
2022-04-08 00:24:56 +02:00
![staking part-7](images/marketplace/Staking-7.png 'View transaction')
2022-04-14 12:39:47 +02:00
Click <a href="https://rinkeby.etherscan.io//tx/0x719b8627e5deb51af21184db7c6747bf5141782ba3e8fe5358f5a15ba67b594b" target="_blank">here</a> to view a sample transaction on the Rinkeby test network.