(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:
- Transfer ICP from the user’s ICRC account to a canister controlled account on the ledger
- Transfer ICP from the canister controlled account to the canister’s subaccount on the CMC
- Run notify_top_up
This is…slow, especially considering these are cross-subnet requests that hit fiduciary subnets
A better solution (cutting out a transfer) would be to
- Transfer from the user’s ICRC account to that ICRC account’s subaccount on the CMC
- Run notify_top_up
But for this, we’d need the CMC to recognize ICRC account transfers