-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NNS1-3139: Utils to get maturity from nns/sns neurons (#5235)
# Motivation Make getting available/staked maturity from nns/sns neurons consistent and straightforward. I plan to use these for the projects table as well as the neurons table. # Changes 1. Add utility functions get available and staked maturity from NNS and SNS neurons. 2. Use them in `neurons-table.utils.ts` instead of getting the maturity directly. # Tests 1. Unit tests added for the new functions. 2. Existing `frontend/src/lib/utils/neurons-table.utils.ts` tests pass. # Todos - [ ] Add entry to changelog (if necessary). not necessary
- Loading branch information
Showing
5 changed files
with
99 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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