Skip to content

fix(regulated_token): read balances without dispatch under MCMS - #609

Merged
JohnChangUK merged 2 commits into
fix/regulated-token-store-freezefrom
fix/read-balances-without-dispatch-under
Nov 17, 2026
Merged

JohnChangUK merged 2 commits into
fix/regulated-token-store-freezefrom
fix/read-balances-without-dispatch-under

Conversation

@JohnChangUK

@JohnChangUK JohnChangUK commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Description

Recover and burn aborted 4037 when MCMS called them, because primary_fungible_store::balance re-enters dispatchable_fungible_asset. The rollout notes also missed secondary stores an account owns directly.

  • Add primary_store_balance in regulated_token.move and use it for account recover, account burn and recover_tokens. The token has no derived balance, so the value is the same.
  • Add mcms_dispatch_test.move, which runs the recover, burn and store entries through derived_supply.
  • Fix step 1 of the rollout in the README.md to list every funded store that is not an account's own primary store.
  • Add cases to store_owner_pin_test.move for a store an account owns directly: withdraw aborts with E_STORE_NOT_PINNED, and freeze plus recovery moves its balance.

@JohnChangUK
JohnChangUK force-pushed the fix/read-balances-without-dispatch-under branch from ed8c4bd to 1b6d21f Compare November 17, 2026 05:51
@JohnChangUK
JohnChangUK merged commit 1b6d21f into fix/regulated-token-store-freeze Nov 17, 2026
13 of 14 checks passed
@JohnChangUK
JohnChangUK deleted the fix/read-balances-without-dispatch-under branch November 17, 2026 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant