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

74 lines
2.7 KiB
Markdown
Raw Normal View History

---
title: Swap and/or Stake Tokens
description:
---
## 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-07 23:53:29 +02:00
### Step 1: Understanding the risks
2022-04-07 23:53:29 +02:00
![swap part-1](images/marketplace/Swap-1.png 'Understanding risks')
2022-04-07 23:53:29 +02:00
### Step 2: Select amount of Ocean tokens or Datatokens to trade
2022-04-07 23:53:29 +02:00
Enter the amount of Ocean tokens you want to swap. The expected amount that the account will receive will be shown with the swap fees information. You can also swap datatokens to Ocean tokens here.
![swap part-2](images/marketplace/Swap-2.png 'Enter amount of Oceans')
### Step 3: Transaction: Allow pool contract to access your Ocean tokens
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
### Step 4: Click swap button
![swap part-4](images/marketplace/Swap-4.png 'Click swap tokens')
### Step 5: Transaction: Swap tokens
![swap part-5](images/marketplace/Swap-5.png 'Transaction: Swap tokens')
### Viewing transaction
![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 Rinkeby testnet.
## 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-08 00:24:56 +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-08 00:24:56 +02:00
![staking part-1](images/marketplace/Staking-1.png 'Understanding risks')
2022-04-08 00:24:56 +02:00
### Step 2: Understanding the risks
2022-04-08 00:24:56 +02:00
![staking part-2](images/marketplace/Staking-2.png 'Enter amount of Oceans')
### Step 3: Enter amount of Ocean tokens to stake
Enter the amount of Ocean tokens you want to stake. The expected amount of pool shares and percentage of share for the entered amount will be displayed.
![staking part-3](images/marketplace/Staking-3.png 'Enter the amount to stake')
### Step 4: Transaction: Allow pool contract to access your Ocean tokens
![staking part-4](images/marketplace/Staking-4.png 'Transaction: Approve spend limit')
### Step 5: Transaction: Add liquidty
![staking part-5](images/marketplace/Staking-5.png 'Click on SUPPLY button')
![staking part-6](images/marketplace/Staking-6.png 'Transaction: Swap tokens')
2022-04-08 00:36:41 +02:00
### View transaction
2022-04-08 00:24:56 +02:00
![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 Rinkeby testnet.