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

feat: better introspection for encumbered magnitude #1038

Open
wants to merge 2 commits into
base: slashing-magnitudes-fixes
Choose a base branch
from

Conversation

wadealexc
Copy link
Collaborator

@wadealexc wadealexc commented Jan 17, 2025

Reasoning: current encumberedMagnitude is a public getter that returns the non-updated version of an operator's encumbered magnitude.

When actually calling modifyAllocations, we use the updated version -- so this is probably more relevant to expose.

This PR makes the encumberedMagnitude mapping internal, and instead exposes a getter (getEncumberedMagnitude) that returns the current encumbered magnitude with completable deallocations included.

@wadealexc wadealexc force-pushed the alex/alm-magnitude-introspect branch 2 times, most recently from bc82389 to 03e41ea Compare January 17, 2025 19:36
@wadealexc wadealexc force-pushed the alex/alm-magnitude-introspect branch from 03e41ea to 321ff35 Compare January 17, 2025 19:58
@wadealexc wadealexc changed the title feat(wip): better introspection for encumbered magnitude feat: better introspection for encumbered magnitude Jan 17, 2025
@wadealexc wadealexc marked this pull request as ready for review January 17, 2025 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant