case study
Folks Finance is a non-custodial DeFi protocol offering a comprehensive suite of tools for managing digital assets. Its ecosystem includes multiple protocols designed to maximise asset efficiency and yield generation.
Folks’ xChain App delivers seamless cross-chain lending and borrowing, enabling unified liquidity and access across multiple blockchains. The Algorand App features a lending protocol where users can deposit assets to earn yield or use them as collateral for loans. The integration of the Folks Router DEX aggregator ensures the best prices and most efficient routes through DEX aggregation. Additionally, xALGO is a Liquid Staking Token (LST) that allows users to earn yield by participating in Algorand Consensus.
To optimise data indexing and analytics, Folks Finance has integrated SubQuery, a leading Web3 data indexing solution, enabling real-time insights into swaps, lending operations, and overall protocol performance.
Before integrating SubQuery, Folks Finance faced significant challenges in data indexing and retrieval. The decentralised nature of their ecosystem meant that tracking swaps, user activity, and liquidity flow required complex and inefficient querying processes. Without a robust data solution, it was difficult to provide real-time insights into swap trends, token performance, and user behavior. This lack of efficient data indexing limited transparency and decision-making capabilities for both users and developers.
SubQuery plays a critical role in two key areas of Folks Finance’s ecosystem:
This case study will focus on how SubQuery has been used to power Folks Router.
1. Enhanced Swap Tracking and Analytics
Folks Router aggregates liquidity from multiple decentralised exchanges (DEXs), allowing users to swap tokens at optimal rates. By integrating SubQuery, Folks Finance can efficiently track and analyse:
This data is critical for assessing trading behavior, liquidity trends, and DEX aggregator performance.
2. Real-Time Data for the Metrics Dashboard
SubQuery powers the Folks Router Metrics Dashboard, which provides a transparent view of all swaps that have occurred. The indexed data ensures that users and developers can monitor transaction patterns, total volumes, and liquidity movement across the ecosystem in real time.
To demonstrate the power of SubQuery, we examined two key datasets within the Folks Router indexer:
Router Insights
This dataset provides an overview of swap activities on a monthly basis, including:
Note: Month is just one of the available time slices. The same data can be retrieved for other slices (day and hour) by simply changing the queried entity to FolksRouterDayData or FolksRouterHourData without modifying the objects being queried.
Additionally, the metrics can be further broken down to individual users, enabling insights such as:
For instance, to calculate the total volume associated with an individual address, the following query can be used:
To gain deeper insights, the FolksRouterTokensInfo dataset tracks each token’s swap activity. The following information can be retrieved for tokens and, if needed, for the previously mentioned time slices as well:
For example, the query below simultaneously provides aggregated information across all indexed tokens and details about a specific token:
Looking forward, Folks Finance will continue to leverage SubQuery’s powerful indexing capabilities to enhance its ecosystem. As new assets are added to the platform, Folks will update the existing indexers to incorporate these assets, ensuring that data remains comprehensive and up-to-date. Furthermore, with the expansion of the Folks xChain protocol to new chains, additional indexers will be introduced to support the seamless aggregation of cross-chain data.
By integrating SubQuery, Folks Finance has unlocked a new level of data transparency and efficiency across its ecosystem. Whether powering the Folks Router Metrics Dashboard or providing granular insights into token swaps and user behavior, SubQuery ensures that Folks Finance users and developers have access to the real-time data they need. As DeFi continues to evolve, the partnership between Folks Finance and SubQuery highlights the critical role of advanced data indexing in driving innovation and cross-chain interoperability.
Start building your SubQuery indexer
SubQuery Network is innovating in web3 infrastructure with tools that empower builders to decentralise without compromise. SubQuery’s infrastructure network offers everything from data indexers, RPCs and AI agents - all fully decentralised and production ready.
Our fast, flexible, and open data indexer supercharges thousands of dApps on nearly 300 networks. Our Sharded Data Node will provide breakthroughs in the RPC industry and our AI App framework makes building AI apps easier than ever before. We pioneer the web3 revolution for visionaries and forward-thinkers. We’re not just a company — we’re a movement driving an inclusive and decentralised web3 era, together.
Linktree | Website | Discord | Telegram | Twitter | Blog | Medium | LinkedIn | YouTube