Polkadot JS-UI: How to Remove Expired Referenda Locks Print
Modified on: Thu, 15 Jun, 2023 at 2:24 PM
Polkadot OpenGov allows all stakeholders to vote on proposals or delegate their voting power to others in order to participate in the decision-making process. When you vote your tokens are locked and the lock is removed either if you remove your vote while the referendum is ongoing or once the locking period expires. The same applies when you undelegate your voting power. Once that happens you need to remove these expired locks. In this article, we will explain how to remove them from Polkadot-JS UI.
TABLE OF CONTENTS
Removing referendum requires two extrinsics: one to remove the votes, the other to unlock them. Conveniently, Polkadot-JS UI groups these extrinsics in a single batch call, so expired referendum locks are removed in just one action. Unfortunately, this batch call is not yet supported by Ledger apps. This article will describe the steps to remove referendum locks for non-Ledger and for Ledger accounts.
Check expired referendum locks
By clicking on the arrow icon located at the far right of your account and hovering over the small clock icon next to the referenda locked balance, you can check for any expired locks.
To remove all expired referenda locks from a non-Ledger account, follow these steps:
1. Click on the three dots on the right side of your account.
2. Select "Clear expired referenda locks":
3. Then sign and submit the extinsic and all the expired locks will be removed.
The two calls need to be issued separately for Ledger accounts. To do that, follow these steps:
1. Go to the "Developer" > "Extrinsics" page on Polkadot-JS UI.
2. Select your Ledger account.
3. On the left drop-down menu, select 'convictionVoting'; on the right, select 'removeVote'. Then enter the referendum index.
In the example screenshot above, the index of each referendum is shown next to the expired locks. In this example it's only referendum 105.
4. Then submit the transaction and sign it from your Ledger device.
5. Next, you have to send the second extrinsic from the same 'convictionVoting' pallet.
In the drop-down menu on the right, select "unlock". The required "class" is the index of the track to which the referendum belonged. Check this wiki article to learn the index of each track. In our example, the index is 33 for the "Medium Spender" track. Finally, choose the account you want to remove the lock for. Note that you can issue this extrinsic from any of your accounts.
6. Then submit and sign the transaction.
If you have more than one expired lock for different tracks, repeat this process for each one you want to remove.
Did you find it helpful?Send feedback
Disclaimer: We always strive to provide you with the best support we can and we take all care to ensure that our instructions are accurate and concise. However, following these instructions properly, as well as the general management of your accounts and funds, is ultimately your responsibility. Web3 Foundation cannot be held liable for any accidental loss of funds or any other damage you might incur.