Consider consolidated registry design
alnoki opened this issue · comments
alnoki commented
To reduce borrows, consider a consoliated registry model. Here, the registry is created at the &econia
address upon startup, and contains an ExtendRef
to add more primary fungible asset stores for utility coin operations, among other things. Additional considerations:
- Registry contains a table of market info and a table of markets, the former for market info lookup
- Registry contains a table of market accounts
- Market account info table contains the object address of market asset vaults
- Each market has fungible stores for asset vaults
- Market accounts contain the object address of market asset vaults to parallelize withdrawals, deposits
- Multiple extend refs (in each market and market account info table) to parallelize vault withdrawals