Closed Nick-1979 closed 1 month ago
The recent updates to the useAvailableToSoloStake
hook enhance the calculation of available amounts for solo staking by ensuring non-negative returns. A new temporary variable captures the calculation, incorporating logic to prevent negative values. Additionally, comments have been added for clarity, improving both the functionality and documentation for future developers.
Files | Change Summary |
---|---|
packages/extension-polkagate/src/hooks/useAvailableToSoloStake.ts |
Improved logic for calculating available amounts for solo staking; added non-negative return enforcement and clarified comments. Minor formatting adjustments made to the function signature. |
In the garden of code where the rabbits play,
A new logic hops in, brightening the day.
With values so merry, never negative,
Staking is smoother, oh how we shall give!
So here’s to the changes, so clever and bright,
Let’s dance through the code, in the warm morning light! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
address #1493
Summary by CodeRabbit
New Features
Documentation