[Assets] Allow per-account freeze / thaw for all assets with the same freezer #3451
Open
2 tasks done
Labels
I5-enhancement
An additional feature request.
I10-unconfirmed
Issue might be valid, but it's not yet known.
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Motivation
Currently, if I an issuer with multiple assets wants to freeze (or thaw) all their assets on an account, I believe they would have to call assets_freeze() for each asset in turns. And if they later add another asset, they would have to call the freeze function again for that asset for all the accounts they have previously blocked.
This would make compliance with an OFAC SDN list request (for example) a large headache for a multi-asset issuer.
Request
Is it feasible to add something like a freeze_all() function that would apply a freeze on all the assets for the same freezer account in a single call and would apply to new assets created with the same freezer address automatically? (And potentially an equivalent thaw_all() function.)
I guess it would be another list to check in addition the current freeze list when making transactions that might be frozen - I'm not sure if that's too much overhead?
If that's not a good solution, I'd welcome other suggestions, please. Or, indeed, if it's not something for the pallet itself but better in an extension.
Solution
No response
Are you willing to help with this request?
Yes!
The text was updated successfully, but these errors were encountered: