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

chain: move fmd parameters to shielded-pool #3688

Merged
merged 9 commits into from
Jan 29, 2024
Merged

chain: move fmd parameters to shielded-pool #3688

merged 9 commits into from
Jan 29, 2024

Conversation

erwanor
Copy link
Member

@erwanor erwanor commented Jan 26, 2024

Part of #3617, I wanted to stuff more things in my first pass. But this ended up to be a decent amount of change surface, so opening a PR early before doing the rest.

In #3640, we added two helper methods:
- `increase_token_supply`
- `decrease_token_supply`

These methods are somewhat similar, and objectively are more
verbose than a single `update_token_supply` method. However,
it seems an improvement to not have to do any cognitive work
to piece together whether a method call increases or decreases
the token supply.

Another advantage of this approach is that one can easily use
rust-analyzer to filter for places that increase the token supply
vs. places where it is being shrinked.
@erwanor erwanor merged commit 5bea79b into main Jan 29, 2024
6 of 7 checks passed
@erwanor erwanor deleted the erwan/3617_part_1 branch January 29, 2024 15:32
@erwanor erwanor mentioned this pull request Jan 29, 2024
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