You can have L-Tokens in any market without entering them. However, you must enter a market in order to hold BTokens (borrow there). And only L-Tokens in markets you have "entered" are considered for collateral.
eg. I can have 1000 LATOM and 2000 LOSMO. If I only enter the OSMO market and want to borrow EEUR, I can borrow say 1000 OSMO of EEUR (assuming collateralization ratio of 0.5). That also means my LATOM cannot be liquidated.
The credit agency maintains a Vec<Addr> of entered markets for each account.
A follow up would be to allow users to safely exit markets. But that is not part of this now.
In order to scale beyond 4 or 5 markets, we should allow each user to only have a few active markets that are checked for credit. See slab: https://confio.slab.com/posts/credit-agency-ujs0yrvj#hk1ac-entering-markets
You can have L-Tokens in any market without entering them. However, you must enter a market in order to hold BTokens (borrow there). And only L-Tokens in markets you have "entered" are considered for collateral.
eg. I can have 1000 LATOM and 2000 LOSMO. If I only enter the OSMO market and want to borrow EEUR, I can borrow say 1000 OSMO of EEUR (assuming collateralization ratio of 0.5). That also means my LATOM cannot be liquidated.
The credit agency maintains a
Vec<Addr>
of entered markets for each account.A follow up would be to allow users to safely exit markets. But that is not part of this now.