---
# System prepended metadata

title: 22 Aug RociFi architecture sync

---

# 22 Aug RociFi architecture sync

- We have a name for V2 prototype! Its Cydonia (https://expanse.fandom.com/wiki/Cydonia)
- Kostya and Anton are working on the prototype for the core logic. 
- Prototype scope: Pool, LoansManager, CollateralManager, ScoreDB, PriceFeed. 
- Prototype goal: to implement data structures and contract tolopogy to allow core protocol flows, as described in https://rocifi.atlassian.net/jira/software/projects/ARPA/boards/8 
- We need configuration contract for the service discovery, but it can be implemented later (same goes to error codes and events)
- Question: should we separate LoansManager? Right now we split, but let's look out for gas prices during tests 
- Router is a good idea, we can come back to it later if time permits 
- Testing:
    - Everyone is in favor for Typescript for tests 
    - DSL for use cases is a good idea, we can come back to it later if time permits 
	- We should pay attention to shared logic and enforce re-use on code reviews 
	- Specific tests structure (folders, ideology) is under construction
- For debt token price we should be able to switch between both approaches if needed
- User cannot claim from or deposit in the freezer, logic for collateral liquidation can be changed though if business decide
- Important to keep loan props on loan, cause they can change later
- ScoreDB (or another contract) should keep all the loans props logic (LTV, maturity etc). If its ScoreDB, need better name. 
  