Function Signature
Description
Returns the indexed performance of an owner’s position in an Earn vault, including profit-and-loss fields such aspnl and pnlUsd. The data comes from the indexer, so it trails the chain head.
Available as client.earn on DynamicEvmWalletClient and DynamicSvmWalletClient.
Aave vaults reject performance requests with an HTTP 400 error. This is a provider limitation,
not a bug. See Provider support.
Parameters
Required Parameters
vaultId(string): The vault identifier fromlistVaults.ownerAddress(string): The wallet address that owns the position.
Optional Parameters
traceContext(TraceContext): Trace context forwarded to the Dynamic API.
Returns
Promise<EarnVaultPositionPerformance>: The position’s indexed performance. Amounts are raw-unit strings.