Architecture
- Contracts: portfolio (lending/borrowing), oracle, token proxies, global config
- Backend: indexer processes events → Postgres → GraphQL/REST APIs
- Frontend: React + TypeScript using the GraphQL API and wallet adapters
Key Ideas
- Virtual amounts with growing indices for gas‑efficient interest accrual
- Isolation Mode to contain riskier collateral with caps
- Oracle smoothing and validation to reduce manipulation and noise
Integrating
- Query raw contract state with CosmJS where needed
- Use the GraphQL API for enriched portfolio/market data