Skip to content

Commit

Permalink
revision10
Browse files Browse the repository at this point in the history
  • Loading branch information
mike authored and mike committed May 11, 2023
1 parent 49965f3 commit d88c472
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Binary file added images/6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions weightedpoolemergency.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

This guide should serve to allow users to create their own exit pool transactions for weighted pools manually in the event of the ui being inaccessible.

[show how to withdraw gauge]
Note: If your BPT is deposited into a gauge earning rewards (or deposited into Aura), you will need to withdraw from there first.


Lets first familiarize ourself with what an exit pool looks like.
Let's first familiarize ourself with what an exit pool looks like.
https://etherscan.io/tx/0xec1e3fdc774542cd93a8f8bc8a0d2216b52d0ece1097faa952d58ce0bb7d9698

Go to the Balancer vault address on etherscan and scroll down until you see "contract abi". Copy this and go to https://abi.hashex.org/ select autoparse, and paste the abi into the text box and click parse. Then under "function" select "exitPool"
Expand All @@ -13,7 +13,7 @@ https://etherscan.io/address/0xba12222222228d8ba445958a75a0704d566bf2c8#code
It should look like this
![1.png](images/1.png)

The exitpool transaction is made up of four parts
The exitpool transaction is made up of four parts, `poolId, sender, recipient, request`

**poolId**: You can find this by going to the LP token contract address, going to "contract" tab on etherscan then "read contract" and item 12 should be getPoolId, which should look like this `0xcfca23ca9ca720b6e98e3eb9b6aa0ffc4a5c08b9000200000000000000000274`

Expand Down Expand Up @@ -113,5 +113,7 @@ Now that the transaction is created, we now have to send it. In order to send c

In the "hex data" section on metamask, input the "encoded data" at the bottom of the above image. Note that if there are any errors in the tx construction, it will say the transaction is likely to fail. If its only estimating 21000 gas, that means the transaction will fail.

![6.png](images/6.png)

Assuming everything is right, sending this transaction will withdraw from the weighted pool.

0 comments on commit d88c472

Please sign in to comment.