-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shielded-pool: remove
update_token_supply
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.
- Loading branch information
Showing
3 changed files
with
2 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters