mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-06-28 16:48:03 +02:00
1.3 KiB
1.3 KiB
Remove liquidity using Etherscan
Get your balance of pool share tokens
- 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.
- On the pool contract page, go to Contract -> Read Contract.
- Go to field
20. balanceOf
and insert your ETH address. This will retrieve your pool share token balance. - To convert to wei, go to eth-converter.com and input the retrieved pool shares number in the Ether field
- Use the converted wei number as value for
poolAmountIn
when exiting the pool
Get maximum to remove
- Go to the pool's Etherscan/Polygonscan page.
- Go to Contract -> Read Contract.
- Go to field
56. totalSupply
to get the total amopunt of pool shares, in wei. - 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
- Go to the pool's Etherscan/Polygonscan page.
- Go to Contract -> Write Contract and connect your wallet. Be sure to have your wallet connected to network of the pool.
- For
poolAmountIn
add your pool shares in wei - For
minAmountOut
use anything, like1
- Hit Write