As referenced here: Deprecate Currency; introduce holds and freezing into fungible traits
and implemented in the following PRs: #1779 #1818
The following comment indicates that we need to investigate some test cases where Holds are slashed and ensure that the affected pallets handle their bookkeeping for Freezes correctly:
Freezes are essentially the same as locks, except that they overlap with Holds. Since Holds are designed to be infallibly slashed, this means that any logic using a Freeze must handle the possibility of the frozen amount being reduced, potentially to zero. A permissionless function should be provided in order to allow bookkeeping to be updated in this instance.
Discussion
Changes
- Add e2e test with simultaneous
Hold and Freeze.
How to Test
- Confirm that the new e2e tests pass.
As referenced here: Deprecate Currency; introduce holds and freezing into fungible traits
and implemented in the following PRs: #1779 #1818
The following comment indicates that we need to investigate some test cases where
Holdsare slashed and ensure that the affected pallets handle their bookkeeping forFreezescorrectly:Discussion
HoldsandFreezesFreezeand aHoldand theHoldis slashedChanges
HoldandFreeze.How to Test