centrifuge / centrifuge-chain

Centrifuge Chain: the layer-1 blockchain for real-world assets, built on Substrate.
https://centrifuge.io
GNU Lesser General Public License v3.0
182 stars 81 forks source link

fix: Migrate all collateral of `pallet-loans` to unfrozen #1978

Open mustermeiszer opened 2 months ago

mustermeiszer commented 2 months ago

Description

Many collaterals - pallet-uniques items - where mistakenly created with frozen: true making it impossible to change the metadata without a governance proposal.

We need to write a migration that iterates of the storage Created and Active in the pallet-loans, retrieve the associated collateral and query the items in the pallet-uniques. If the item has frozen: true, we need to change this one to frozen: false.

Research/based on

How will this affect the code base

Not at all

What are foreseen obstacles or hurdles to overcome?

Nothing, weight limit is not expected as we have below 100 assets.

mustermeiszer commented 2 months ago

For reference: New naming of DYF asset IPFS hash: QmPwgk3sqhgoNT9LpquPFVj3HpZSqTk3crEZioAtTXVjME