Improving the Cycle Management Experience

(Posting here since this is cycles management experience related)

Hey @Severin, are there any plans to integrate the CMC with ICRC accounts?

Right now this means that if I integrate with user wallets and want to perform an synchronous canister top up workflow with ICRC-2 transfer_from, then I need to:

  1. Transfer ICP from the user’s ICRC account to a canister controlled account on the ledger
  2. Transfer ICP from the canister controlled account to the canister’s subaccount on the CMC
  3. Run notify_top_up

This is…slow, especially considering these are cross-subnet requests that hit fiduciary subnets :cry:

A better solution (cutting out a transfer) would be to

  1. Transfer from the user’s ICRC account to that ICRC account’s subaccount on the CMC
  2. Run notify_top_up

But for this, we’d need the CMC to recognize ICRC account transfers :thinking:

2 Likes