Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move certain slashed funds and fees/tips to treasury (#814)
* Add `Slash` config value * Use `CurrencyOf<T>` to call `slash` * Add `Slash::on_unbalanced` calls where appropriate * Add test for `reject_market` slashes * Add test for dispute slashing * Add `Slash` parameter to runtime * Simplify treasury mock parameters * Add `DealWithFees` * Add test for `DealWithFees` * Add missing copyright notice * Fix test * Fix test formatting * Move 20% of transaction fees to the treasury * Parametrize burn & treasury percentage * Change burn parameters according to discussion * Change treasury burn to 10% for build-up period * Fix formatting * Apply suggestions from code review Co-authored-by: Chralt <chralt.developer@gmail.com> * Apply suggestions from code review Co-authored-by: Chralt <chralt.developer@gmail.com> * Add `is_zero` checks * Apply suggestions from code review Co-authored-by: Chralt <chralt.developer@gmail.com> * Fix formatting Co-authored-by: Chralt <chralt.developer@gmail.com>
- Loading branch information
1 parent
cadca83
commit d058a9e
Showing
10 changed files
with
167 additions
and
65 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Oops, something went wrong.