8000 Improve amount error calculation by considering OpenGov-related locks by ap211unitech · Pull Request #11578 · polkadot-js/apps · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Improve amount error calculation by considering OpenGov-related locks #11578

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 1 commit into from
May 27, 2025

Conversation

ap211unitech
Copy link
Member
@ap211unitech ap211unitech commented May 26, 2025

📝 Description

This PR addresses an issue where users attempting to join a nomination pool via the UI were not able to contribute tokens locked in OpenGov. While the UI allowed joining the pool, it incorrectly excluded tokens locked for governance participation. The same action can be performed successfully through the Extrinsics page, which clearly indicates a bug in how the UI calculates eligible token amounts.

On Polkadot and its parachains, governance-locked tokens can be used in other staking-related operations. The issue was specific to how balances were computed or filtered on the client side when constructing the join pool extrinsic.

✅ Fixes

  • Ensures that the total transferable balance including governance-locked tokens is correctly considered when joining a nomination pool.
  • Aligns the UI behavior with the expected behavior of the extrinsic when submitted manually.

🤔 Previous behaviour

Here is the account details used for testing, which have 40 PAS locked in OpenGov.

Screenshot 2025-05-26 at 11 26 43

Previously, the tokens locked in OpenGov are not allowed via UI.

Screenshot 2025-05-26 at 11 27 15

🤔 Current behaviour

https://paseo.subscan.io/extrinsic/6586467-2

Screen.Recording.2025-05-26.at.11.29.08.mov

@ap211unitech ap211unitech merged commit 7e67350 into master May 27, 2025
5 checks passed
@ap211unitech ap211unitech deleted the fix/pool-join branch May 27, 2025 05:23
@polkadot-js-bot
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@polkadot-js polkadot-js locked as resolved and limited conversation to collaborators May 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Limitations of the UI When Joining Pools with OpenGov-Locked Tokens
3 participants
0