Is Daml finance designed to support accounts which can hold various types of assets in them, e.g. NFTs, CBDC, equities etc? I’m guessing no, because each account has one Holding Factory. Would the recommended approach be to have separate accounts for each type of holding/asset?
2 Likes
Hi @huw,
Thanks for your question.
As you correctly mention, each account has one Holding Factory, which is used to create (aka Credit
) and archive (aka Debit
) Holdings to the account.
However, the current Account implementation does not enforce any constraint on the instruments referenced by holdings. In a single account, you can have holdings (of the same type) referencing many different instruments (equities, CBDC, …).
So, depending on
- which types of
Holding
are being used - which parties are the Account
controllers
you might need / prefer to use multiple Accounts for your use-case.
I hope this helps,
Matteo
5 Likes
Thanks Matteo. Looks like separate accounts are better for assets that are very different, e.g. fungible and non-fungible tokens must exist in separate accounts. But for the same asset class, one account should be ok.
1 Like