Skip to content

[pallet-assets] Add migration to fix total supply discrepancy from refund burn bug #11443

@clangenb

Description

@clangenb

PR #11441 fixed do_refund to properly decrement total supply when allow_burn = true. However, any assets where this bug was previously triggered still have overcounted supply on-chain (I think only Westend is affected).

The do_try_state check currently uses >= instead of == for supply validation as a workaround for this existing discrepancy.

We should add a migration that fixes this discrepancy in the future, but #11411 at least ensures that the discrepancies will not increase more in the future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions