migration(tips): unreserve deposits (#14241)

* unreserve all tip funds migration

* improve test

* fix comment

* implement weights

* saturating_accrue

* remove unnecessary collect

* prefer ensure

* use assert

* use saturating_add

* use saturating_accrue

* test pre_upgrade and post_upgrade

* remove pallet_treasury bound

* resolve pr comments

* rename migration

* kick ci

* kick ci
This commit is contained in:
Liam Aharon
2023-06-05 19:15:15 +10:00
committed by GitHub
parent 8ae7d6923c
commit c628742506
2 changed files with 257 additions and 0 deletions
@@ -21,3 +21,6 @@
/// before calling this migration. After calling this migration, it will get replaced with
/// own storage identifier.
pub mod v4;
/// A migration that unreserves all funds held in the context of this pallet.
pub mod unreserve_deposits;