-
Notifications
You must be signed in to change notification settings - Fork 822
chore: helper function effective_balance_spending_without_value #3030
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
chore: helper function effective_balance_spending_without_value #3030
Conversation
CodSpeed Performance ReportMerging #3030 will not alter performanceComparing Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense to me, some doc nits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm personally fine with keeping this duplicated
|
I meant that this is just a single line of code deduplicating which might not be worth the indirection and a new trait method |
I see, as it is a trait method with a default implementation, it will not require reimplementation it. For this case it made sense to add it. It does replace fetching two values from the same place |
Helper function as we have three places where value needs to be deducted.
Exctracted from #2991