How to Fetch Morpho Vault APY and Allocation Data via GraphQL
A guide explains how to retrieve a Morpho vault's APY and market allocations using a single GraphQL query sent to Morpho's public endpoint. It stresses including the chain ID, since the same address can belong to different deployments on Ethereum and Base. The article distinguishes base APY from net APY, which includes rewards and fees, and warns against double-counting rewards. It also notes that the allocation schema applies to Vault V1 only, as Vault V2 uses a different adapter-based structure. Finally, it advises treating idle-market rows separately and cross-checking indexed data against the on-chain ERC-4626 vault.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in