Skip to content
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

[DDW-323|DDW-499] Updates maximum delegation amount calculation and cardano-wallet version #2262

Merged
merged 3 commits into from Dec 4, 2020

Conversation

nikolaglumac
Copy link
Contributor

@nikolaglumac nikolaglumac commented Dec 3, 2020

This PR updates maximum delegation amount calculation to take dynamic desiredPoolNumber from the Api.
It also updates cardano-wallet to the latest available release - 2020-11-26.

Screenshots

Current state (desired number of pools = 150). Calculated values are now more precise:

  • Circulating supply: 31.736.470.500 - shown as 31.7B ADA
  • Max delegation amount: 211.576.470 - shown as 211.5 ADA

Screenshot 2020-12-03 at 14 18 38
Screenshot 2020-12-03 at 14 18 47

Future state (desired number of pools = 500). These screenshots show how stake pool slider values will look once desiredPoolNumber is increased to 500 on 6th of December. This is for representational purposes only. If you run Daedalus prior to this date you will still get to see the old values (shown on the top 2 screenshots). Storybook is hardcoded to old values too!

Screenshot 2020-12-03 at 14 20 54
Screenshot 2020-12-03 at 14 20 48


Testing Checklist

  • Slack QA thread
  • Test slider values on the Stake pools screen
  • Run regression tests as we have updated cardano-wallet in this PR (focus on transaction fee calculation which should now be much faster)

Testing summary

Test document


Review Checklist

Basics

  • PR has been assigned and has appropriate labels (feature/bug/chore, release-x.x.x)
  • PR is updated to the most recent version of the target branch (and there are no conflicts)
  • PR has a good description that summarizes all changes
  • PR has default-sized Daedalus window screenshots or animated GIFs of important UI changes:
    • In English
    • In Japanese
  • CHANGELOG entry has been added to the top of the appropriate section (Features, Fixes, Chores) and is linked to the correct PR on GitHub
  • Automated tests: All acceptance and unit tests are passing (yarn test)
  • Manual tests (minimum tests should cover newly added feature/fix): App works correctly in development build (yarn dev)
  • Manual tests (minimum tests should cover newly added feature/fix): App works correctly in production build (yarn package / CI builds)
  • There are no flow errors or warnings (yarn flow:test)
  • There are no lint errors or warnings (yarn lint)
  • There are no prettier errors or warnings (yarn prettier:check)
  • There are no missing translations (running yarn manage:translations produces no changes)
  • Text changes are proofread and approved (Jane Wild / Amy Reeve)
  • Japanese text changes are proofread and approved (Junko Oda)
  • UI changes look good in all themes (Alexander Rukin)
  • Storybook works and no stories are broken (yarn storybook)
  • In case of dependency changes yarn.lock file is updated

Code Quality

  • Important parts of the code are properly commented and documented
  • Code is properly typed with flow
  • React components are split-up enough to avoid unnecessary re-renderings
  • Any code that only works in main process is neatly separated from components

Testing

  • New feature/change is covered by acceptance tests
  • New feature/change is manually tested and approved by QA team
  • All existing acceptance tests are still up-to-date
  • New feature/change is covered by Daedalus Testing scenario
  • All existing Daedalus Testing scenarios are still up-to-date

After Review

  • Merge the PR
  • Delete the source branch
  • Move the ticket to done column on the YouTrack board
  • Update Slack QA thread by marking it with a green checkmark

@nikolaglumac nikolaglumac merged commit 6442f41 into develop Dec 4, 2020
@iohk-bors iohk-bors bot deleted the chore/ddw-323-stake-slide-numbers branch December 4, 2020 09:43
@nikolaglumac nikolaglumac added release-2.6.0 Daedalus Mainnet and removed ⏳release-vNext labels Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore release-2.6.0 Daedalus Mainnet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants