Hoops Finance Technical Architecture

Overview

Hoops Finance is a DeFi analytics platform that indexes Soroban Liquidity Pools from leading ecosystem protocols. It provides comprehensive risk analysis and performance metrics for liquidity pools, allowing investors to make informed, risk-adjusted investments. The platform offers an analytics API for data retrieval and integration.

Components

  1. Indexer
  2. Database
  3. Sentiment Analysis
  4. Analytics API
  5. Smart Contracts
  6. Smart Savings Accounts Management System

1. Indexer

The indexer is responsible for monitoring and parsing relevant transactions from the Stellar ledger. It identifies transactions involving specific addresses, such as token contracts, pair contracts, and user addresses. The data is sourced from Stellar Expert and Google Big Query using the Stellar Development Foundation's Hubble dataset.

Key Processes:

  1. Address Identification: Identify relevant addresses related to token contracts, pair contracts, and user addresses. This is the initial step to filter out unnecessary transactions.
  2. Transaction Retrieval: Retrieve transactions involving the identified addresses from Stellar Expert and Google Big Query using the Hubble dataset.
  3. Transaction Parsing: Parse each transaction to extract operations, invoked contracts, functions called, and events emitted. This is done using several specialized parsers.

2. Database

MongoDB stores the indexed data, including details about liquidity pools, tokens, swaps, and other relevant metrics. The database supports efficient querying for the analytics API.