-
Notifications
You must be signed in to change notification settings - Fork 155
Undelegating #868
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Undelegating #868
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
eb2605f
How-to-Guide
idalithb 436532d
Update website/pages/en/resources/roles/delegating/undelegating.mdx
idalithb e8e41e6
Update website/pages/en/resources/roles/delegating/undelegating.mdx
idalithb 1268cbc
Update website/pages/en/resources/roles/delegating/undelegating.mdx
idalithb ee374a5
updating links and alt text
idalithb b502fdd
updating image
idalithb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export default { | ||
delegating: '', | ||
delegating: 'Delegating', | ||
curating: '', | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export default { | ||
delegating: '', | ||
undelegating: 'How to Undelegate', | ||
} |
File renamed without changes.
55 changes: 55 additions & 0 deletions
55
website/pages/en/resources/roles/delegating/undelegating.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
title: Undelegating | ||
--- | ||
|
||
Learn how to withdraw your delegated tokens through [Graph Explorer](https://thegraph.com/explorer) or [Arbiscan](https://arbiscan.io/). | ||
|
||
> To avoid this in the future, it's recommended that you select an Indexer wisely. To learn how to select and Indexer, check out the [Delegate](https://thegraph.com/explorer/delegate?chain=arbitrum-one) section in Graph Explorer. | ||
|
||
## How to Withdraw Using Graph Explorer | ||
|
||
### Step-by-Step | ||
|
||
1. Visit the [Graph Explorer](https://thegraph.com/explorer). Please make sure you're on Explorer and **NOT** Studio. | ||
2. Click on your profile. You can find it on the top right corner of the page. | ||
- Make sure that your wallet is connected. If it's not connected, you will see the "connect" button instead. | ||
3. Once you're in your profile, click on the [Delegating](https://thegraph.com/explorer/delegate?chain=arbitrum-one) tab. In the Delegating tab, you can view the list of Indexers you have delegated to. | ||
idalithb marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
4. Click on the Indexer from which you wish to withdraw your tokens. | ||
- Make sure to note the specific Indexer, as you will need to find them again to withdraw. | ||
5. Select the "Undelegate" option by clicking on the three dots next to the Indexer on the right side, see image below: | ||
|
||
 | ||
|
||
6. After approximately [30 epochs](https://thegraph.com/explorer/network/epochs?chain=arbitrum-one) (30 days), return to the [Delegate section](https://thegraph.com/explorer/delegate?chain=arbitrum-one) and locate the specific Indexer you undelegated from. | ||
idalithb marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
7. Once you find the Indexer, you can click on the Indexer and proceed to withdraw all your tokens. | ||
idalithb marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
||
## How to Withdraw Using Arbiscan | ||
|
||
> This process is primarily useful if the UI in Graph Explorer experiences issues. | ||
|
||
### Step-by-Step | ||
|
||
1. Find your delegation transaction on Arbiscan. | ||
- Here's an example on Arbiscan: [Transaction on Arbiscan](https://arbiscan.io/tx/0xcf2110eac897099f821064445041031efb32786392bdbe7544a4cb7a6b2e4f9a) | ||
idalithb marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
2. Navigate to "Transaction Action" where you can find the staking extension contract: | ||
- For the example listed above it looks like this: [Sample Contract](https://arbiscan.io/address/0x00669A4CF01450B64E8A2A20E9b1FCB71E61eF03) | ||
idalithb marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
3. Then click on "Contract".  | ||
idalithb marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
4. Scroll to the bottom and copy the Contract ABI. There should be a small button next to it that allows you to copy everything. | ||
5. Click on your profile button in the top right corner of the page. If you haven't created an account yet, please do so. | ||
6. Once you're in your profile, click on "Custom ABI”. | ||
7. Paste the custom ABI you copied from the staking extension contract, and add the custom ABI for the address: 0x00669A4CF01450B64E8A2A20E9b1FCB71E61eF03 (**sample address**) | ||
8. Go back to the staking extension contract: [Sample Contract](https://arbiscan.io/address/0x00669A4CF01450B64E8A2A20E9b1FCB71E61eF03#writeProxyContract). Now, call the `unstake` function in the [Write as Proxy tab](https://arbiscan.io/address/0x00669A4CF01450B64E8A2A20E9b1FCB71E61eF03#writeProxyContract), which has been added thanks to the custom ABI, with the number of tokens that you delegated. | ||
idalithb marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
9. If you don't know how many tokens you delegated, you can call `getDelegation` on the Read Custom tab. You will need to paste your address and the address of the Indexer that you delegated to. | ||
|
||
- This will return three numbers. The first number is the amount you can unstake, as shown in the following screenshot: | ||
|
||
 | ||
idalithb marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
||
10. After you have called `unstake`, you can withdraw after approximately 28 epochs (28 days) by calling the `withdraw` function. | ||
11. You can see how much you will have available to withdraw by calling the `getWithdrawableDelegatedTokens` on Read Custom and passing it your delegation tuple. See screenshot below: | ||
|
||
 | ||
idalithb marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
||
## Additional Resources | ||
|
||
To delegate successfully, review the [delegating documentation](/resources/roles/delegating/) and check out the [delegate](https://thegraph.com/explorer/delegate?chain=arbitrum-one) section in Graph Explorer. |
idalithb marked this conversation as resolved.
Show resolved
Hide resolved
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
idalithb marked this conversation as resolved.
Show resolved
Hide resolved
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.