GITBOOK-117: change request with no subject merged in GitBook
BIN
.gitbook/assets/balance-of (1).png
Normal file
After Width: | Height: | Size: 77 KiB |
BIN
.gitbook/assets/balance-of.png
Normal file
After Width: | Height: | Size: 77 KiB |
BIN
.gitbook/assets/confirm-metamask.png
Normal file
After Width: | Height: | Size: 224 KiB |
BIN
.gitbook/assets/read-contract.png
Normal file
After Width: | Height: | Size: 211 KiB |
BIN
.gitbook/assets/remove-liquidity.png
Normal file
After Width: | Height: | Size: 112 KiB |
BIN
.gitbook/assets/total-supply.png
Normal file
After Width: | Height: | Size: 42 KiB |
BIN
.gitbook/assets/write-contract.png
Normal file
After Width: | Height: | Size: 234 KiB |
@ -62,7 +62,7 @@ Ocean provides convenient methods to list ERC20 datatokens for sale, with fixed-
|
||||
|
||||
### High-Level Behavior
|
||||
|
||||
![High-Level Flow](../../.gitbook/assets/architecture/high-level-flow.png)
|
||||
![High-Level Flow](<../../.gitbook/assets/architecture/high-level-flow (1).png>)
|
||||
|
||||
Here's an example.
|
||||
|
||||
|
@ -18,41 +18,41 @@ Create an account on [Azure](https://azure.microsoft.com/en-us/). Users might al
|
||||
|
||||
Go to the Azure portal: https://portal.azure.com/#home and select `Storage accounts` as shown below.
|
||||
|
||||
![Select storage accounts](../../.gitbook/assets/hosting/azure1.png)
|
||||
![Select storage accounts](<../../.gitbook/assets/hosting/azure1 (1).png>)
|
||||
|
||||
**Create a new storage account**
|
||||
|
||||
![Create a storage account](<../../.gitbook/assets/hosting/azure2 (1).png>)
|
||||
![Create a storage account](../../.gitbook/assets/hosting/azure2.png)
|
||||
|
||||
**Fill in the details**
|
||||
|
||||
![Add details](../../.gitbook/assets/hosting/azure3.png)
|
||||
![Add details](<../../.gitbook/assets/hosting/azure3 (1).png>)
|
||||
|
||||
**Storage account created**
|
||||
|
||||
![Storage account created](<../../.gitbook/assets/hosting/azure4 (1).png>)
|
||||
![Storage account created](../../.gitbook/assets/hosting/azure4.png)
|
||||
|
||||
**Step 2 - Create a blob container**
|
||||
|
||||
![Create a blob container](../../.gitbook/assets/hosting/azure5.png)
|
||||
![Create a blob container](<../../.gitbook/assets/hosting/azure5 (1).png>)
|
||||
|
||||
**Step 3 - Upload a file**
|
||||
|
||||
![Upload a file](<../../.gitbook/assets/hosting/azure6 (1).png>)
|
||||
![Upload a file](../../.gitbook/assets/hosting/azure6.png)
|
||||
|
||||
**Step 4 - Share the file**
|
||||
|
||||
**Select the file to be published and click Generate SAS**
|
||||
|
||||
![Click generate SAS](../../.gitbook/assets/hosting/azure7.png)
|
||||
![Click generate SAS](<../../.gitbook/assets/hosting/azure7 (1).png>)
|
||||
|
||||
**Configure the SAS details and click `Generate SAS token and URL`**
|
||||
|
||||
![Generate link to file](<../../.gitbook/assets/hosting/azure8 (1).png>)
|
||||
![Generate link to file](../../.gitbook/assets/hosting/azure8.png)
|
||||
|
||||
**Copy the generated link**
|
||||
|
||||
![Copy the link](<../../.gitbook/assets/hosting/azure9 (1).png>)
|
||||
![Copy the link](../../.gitbook/assets/hosting/azure9.png)
|
||||
|
||||
**Step 5 - Publish the asset using the generated link**
|
||||
|
||||
|
@ -10,32 +10,33 @@ Liquidity pools and dynamic pricing used to be supported in previous versions of
|
||||
2. Click _View All_ and look for Ocean Pool Token (OPT) transfers. Those transactions always come from the pool contract, which you can click on.
|
||||
3. On the pool contract page, go to _Contract_ -> _Read Contract_.
|
||||
|
||||
![Read Contract](../tutorials/.gitbook/assets/liquidity/remove-liquidity-1.png)
|
||||
<figure><img src="../.gitbook/assets/read-contract.png" alt=""><figcaption><p>Read Contract</p></figcaption></figure>
|
||||
|
||||
4\. Go to field `20. balanceOf` and insert your ETH address. This will retrieve your pool share token balance in wei.
|
||||
|
||||
![Balance Of](../tutorials/.gitbook/assets/liquidity/remove-liquidity-2.png)
|
||||
<figure><img src="../.gitbook/assets/balance-of.png" alt=""><figcaption><p>Balance Of</p></figcaption></figure>
|
||||
|
||||
5\. Copy this number as later you will use it as the `poolAmountIn` parameter.
|
||||
|
||||
6\. Go to field `55. totalSupply` to get the total amount of pool shares, in wei.
|
||||
|
||||
![Total Supply](../tutorials/.gitbook/assets/liquidity/remove-liquidity-3.png)
|
||||
<figure><img src="../.gitbook/assets/total-supply.png" alt=""><figcaption><p>Total Supply</p></figcaption></figure>
|
||||
|
||||
7\. Divide the number by 2 to get the maximum of pool shares you can send in one pool exit transaction. If your number retrieved in former step is bigger, you have to send multiple transactions.
|
||||
|
||||
8\. Go to _Contract_ -> _Write Contract_ and connect your wallet. Be sure to have your wallet connected to network of the pool.
|
||||
|
||||
![Write Contract](../tutorials/.gitbook/assets/liquidity/remove-liquidity-4.png)
|
||||
<figure><img src="../.gitbook/assets/write-contract.png" alt=""><figcaption><p>Write Contract</p></figcaption></figure>
|
||||
|
||||
9\. Go to the field `5. exitswapPoolAmountIn`
|
||||
|
||||
* For `poolAmountIn` add your pool shares in wei
|
||||
* For `minAmountOut` use anything, like `1`
|
||||
* Hit _Write_
|
||||
*
|
||||
|
||||
![Remove Liquidity](../tutorials/.gitbook/assets/liquidity/remove-liquidity-5.png)
|
||||
<figure><img src="../.gitbook/assets/remove-liquidity.png" alt=""><figcaption><p>Remove Liquidity</p></figcaption></figure>
|
||||
|
||||
10\. Confirm transaction in Metamask
|
||||
|
||||
![Confirm Transaction](../tutorials/.gitbook/assets/liquidity/remove-liquidity-6.png)
|
||||
<figure><img src="../.gitbook/assets/confirm-metamask.png" alt=""><figcaption><p>Confirm transaction</p></figcaption></figure>
|
||||
|
@ -28,7 +28,7 @@ Select Ubuntu OS and choose a plan. The required CPU, Memory depends on the numb
|
||||
|
||||
Also, select the region where you want Aquarius to be hosted and a root password.
|
||||
|
||||
![Select region](<../.gitbook/assets/server-setup/server-setup3 (1).png>)
|
||||
![Select region](../.gitbook/assets/server-setup/server-setup3.png)
|
||||
|
||||
![Click create Droplet](../.gitbook/assets/server-setup/server-setup4.png)
|
||||
|
||||
|