From b6468b9d8c49fe804837214f6020f21205970bfa Mon Sep 17 00:00:00 2001 From: Akshay Patel Date: Thu, 28 Jul 2022 15:13:12 +0000 Subject: [PATCH] GitBook: [#1] No subject --- SUMMARY.md | 2 +- .../deploying-aquarius.md | 2 ++ using-ocean-market/README.md | 4 ++++ .../remove-liquidity-using-etherscan.md | 24 +++++++++++++++++++ 4 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 building-with-ocean/deploying-components/deploying-aquarius.md create mode 100644 using-ocean-market/remove-liquidity-using-etherscan.md diff --git a/SUMMARY.md b/SUMMARY.md index 5f2d0b5f..7d874112 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -18,6 +18,7 @@ * [Publish a data asset](using-ocean-market/marketplace-publish-data-asset.md) * [Download a data asset](using-ocean-market/marketplace-download-data-asset.md) * [Publish assets using hosting services](building-with-ocean/asset-hosting.md) + * [Remove liquidity using Etherscan](using-ocean-market/remove-liquidity-using-etherscan.md) * [Building with ocean](building-with-ocean/README.md) * [Set Up a Marketplace](building-with-ocean/marketplace.md) * [Compute-to-Data](building-with-ocean/compute-to-data/README.md) @@ -38,4 +39,3 @@ * [API references](api-references/README.md) * [Aquarius REST API](api-references/aquarius-rest-api.md) * [Provider REST API](api-references/provider-rest-api.md) - diff --git a/building-with-ocean/deploying-components/deploying-aquarius.md b/building-with-ocean/deploying-components/deploying-aquarius.md new file mode 100644 index 00000000..63d15123 --- /dev/null +++ b/building-with-ocean/deploying-components/deploying-aquarius.md @@ -0,0 +1,2 @@ +# Deploying Aquarius + diff --git a/using-ocean-market/README.md b/using-ocean-market/README.md index ad2de4ad..fbb25286 100644 --- a/using-ocean-market/README.md +++ b/using-ocean-market/README.md @@ -10,3 +10,7 @@ https://v4.market.oceanprotocol.com/ 1. Ocean Market enables publishers to monetize their data and/or algorithms through blockchain technology. 2. Consumers can purchase access to data, algorithms, compute services. + +### Removing Liquidity + +The AMM pools, and dynamic pricing schema are no longer available on the Ocean Market. Refer [this page](remove-liquidity-using-etherscan.md) on removing liquidity from the pool using Etherscan. diff --git a/using-ocean-market/remove-liquidity-using-etherscan.md b/using-ocean-market/remove-liquidity-using-etherscan.md new file mode 100644 index 00000000..0a51da0b --- /dev/null +++ b/using-ocean-market/remove-liquidity-using-etherscan.md @@ -0,0 +1,24 @@ +# Remove liquidity using Etherscan + +## Get your balance of pool share tokens + +1. Go to the pool's Etherscan/Polygonscan page. To find it without UI, see through your latest transactions and look for Ocean Pool Token (OPT) transfers. Those transactions always come from the pool contract. +2. On the pool contract page, go to _Contract_ -> _Read Contract_. +3. Go to field `20. balanceOf` and insert your ETH address. This will retrieve your pool share token balance. +4. To convert to wei, go to [eth-converter.com](https://eth-converter.com) and input the retrieved pool shares number in the _Ether_ field +5. Use the converted wei number as value for `poolAmountIn` when exiting the pool + +## Get maximum to remove + +1. Go to the pool's Etherscan/Polygonscan page. +2. Go to _Contract_ -> _Read Contract_. +3. Go to field `56. totalSupply` to get the total amopunt of pool shares, in wei. +4. 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. + +## Exit pool + +1. Go to the pool's Etherscan/Polygonscan page. +2. Go to _Contract_ -> _Write Contract_ and connect your wallet. Be sure to have your wallet connected to network of the pool. +3. For `poolAmountIn` add your pool shares in wei +4. For `minAmountOut` use anything, like `1` +5. Hit _Write_