Introducing the Compound Community Subgraphs
Oct 18, 2023
Today, we're excited to announce the launch of the Compound v3 Community Subgraphs—the most comprehensive data source for developers looking to integrate Compound v3 protocol data into their decentralized applications (dApps). This release extends support for Compound v3 markets on Ethereum Mainnet, Arbitrum, Polygon and Base.
Bridging the data gap in DeFi
Navigating the DeFi landscape requires accurate and readily available data. Existing data sources have limitations in both reliability and granularity which are bottlenecks for developers trying to provide the most accurate data to their users. We built the Compound v3 Community Subgraphs to bridge this gap and serve as a reliable, comprehensive data source.
Who is this built for?
Designed specifically for developers working with the Compound v3 protocol, the architecture of the subgraphs was shaped through direct input and feedback from the Compound developer community. By speaking directly with the developers who will be using the subgraphs, we were able to understand their data needs and address the limitations of existing solutions.
What sets this subgraph apart?
While there are other subgraphs for Compound v3, they are built with standardized schemas, and designed to serve data for high level protocol understanding, protocol to protocol comparison, and market research. Compound developers have noted these fall short in providing the depth and granularity essential for building tools on top of the protocol. Every protocol is different, and trying to make a square peg fit into a round hole with a standardized schema means trading off schema simplicity, granularity, and developer experience.
Efficient Schema: The schema is designed for optimized indexing and querying. Schema entities are reused wherever possible to minimize complexity and improve the developer experience.
Intuitive Naming Convention: Schema naming aligns with Compound's official documentation, making it more intuitive and easier to learn for developers.
Comprehensive: Our subgraph captures every intricate detail of the compound protocol, including every interaction, user usage, position accounting, market accounting, market configuration, and protocol accounting.
Historical Data: Our subgraphs provide historical data for protocol, market, and position level accounting, market configuration, and user usage at various resolutions, including on-change, hourly, daily, and weekly. Unlike standardized schema subgraphs, the current data entities are reused for their respective historical value snapshots, allowing the same query and consumption code to be used for accessing both current data and all historical data resolutions.
Multi-Chain Support: The subgraph is available on Mainnet, Arbitrum, and Polygon, on both the hosted and decentralized Graph networks.
More Data: Our subgraphs store ~1.3x more data than the standardized schema subgraphs. It surfaces data that doesn’t exist elsewhere such as historical market configuration, utilization, collateralization, interest indices, position accounting, and reward claims.
Validation: All the data within our subgraphs has been extensively validated, cross-referencing with contracts and existing data source where possible. For a detailed data report, please visit this link.
We will continue to improve data accessibility and expand subgraph support to additional networks as the Compound v3 protocol is deployed.
Want to try it out?
We offer a free API key for the Compound community for use on decentralized deployments. We're proud to be the only Compound v3 subgraph currently indexed on the decentralized Polygon and Arbitrum Graph networks.
We invite anyone to explore the Compound v3 Community Subgraphs, share their insights, and contribute towards making it an indispensable asset for the DeFi ecosystem.
Check out the subgraphs here:
View the Github Repo here.
This project was made possible through the funding and support of the Compound Grants Program, and feedback from the Compound community.