-
Notifications
You must be signed in to change notification settings - Fork 2.6k
reserve
operation should ensure repatriate_reserved
works.
#12701
Comments
some work towards that goal: #12004 |
@ruseinov any update here? |
@gavofyork on it now! |
@gavofyork this is done here: #12004 According to the specs of this ticket it should be. In my opinion it could be better, since we are basically duplicating some of that logic between On the other hand, if we're planning to deprecate Currency altogether - that's probably not such a bad thing. Now that I look at this code it makes little sense that both |
Should be fundamentally fixed with #12951 |
This issue has been mentioned on Polkadot Forum. There might be relevant details there: https://forum.polkadot.network/t/polkadot-release-analysis-v0-9-41-v0-9-42/2828/1 |
Any pallet implementing
ReservableCurrency
orfungible::MutateHold
should ensure that thereserve
/hold
operation can be followed by aslash
or repatriation of the reserved amount without bringing the state becoming invalid. I.e. something like this should always succeed:Right now, this will fail as the balance is both reserved/slashed and used for a provider ref.
The solution is to ensure that any reserved amounts are not considered toward the ED (only the free, unlocked balance); if a transfer, reserve or lock operation were to take the unlocked free balance below the ED then it should fail.
The text was updated successfully, but these errors were encountered: