Introduction
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.
Key Metrics at a Glance
- More than 85,000 users have accessed Folks Finance, powered by the SubQuery API.
- Total Transactions Processed: 500,000
- Traders, researchers and developers using Folks Router benefit from faster decision-making while receiving accurate and reliable data.
The Challenge
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.
The Role of SubQuery in Folks Finance
SubQuery plays a critical role in two key areas of Folks Finance’s ecosystem:
- Folks Router – The DEX aggregator benefits from SubQuery’s data indexing capabilities to track token swap activities, user volumes, and overall protocol performance.
- Folks xChain – The cross-chain lending protocol integrates SubQuery to enhance data visibility and provide real-time insights to users and developers.
This case study will focus on how SubQuery has been used to power Folks Router.
How Folks Router Leverages SubQuery
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:
- Monthly swap activity
- Token-specific metrics
- User-specific volume contributions
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.
SubQuery’s Indexing Capabilities for Folks Router
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:
- Total swap and fees volume
- Number of unique traders
- Transaction count
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:
- Volume per individual sender
- Frequency of swaps per sender
- Top traders within a specific timeframe
For instance, to calculate the total volume associated with an individual address, the following query can be used:
Token-Level Data
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:
- Total swap volume
- Number of transactions
- Unique traders
For example, the query below simultaneously provides aggregated information across all indexed tokens and details about a specific token:
Benefits of Using SubQuery for Folks Finance
- Real-Time Data Processing – SubQuery enables rapid indexing of swap data, ensuring up-to-date analytics on Folks Router and Folks xChain.
- Scalability – As Folks Finance expands its DeFi offerings, SubQuery’s indexing capabilities scale seamlessly with increasing transaction volumes.
- Improved Transparency – Users and developers gain better visibility into protocol activity, fostering trust and engagement.
- Enhanced Performance Monitoring – SubQuery-powered dashboards allow Folks Finance to track key performance metrics across different facets of its ecosystem.
The Road Ahead
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.
Conclusion
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
About SubQuery
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