Skip to content

[execution-layer] - Add fallback for data fetch failures returning last known state #42

@Txrmarcos

Description

@Txrmarcos

When APR/TVL/pool data fetch fails, return last cached value with { stale: true, lastUpdated: timestamp } metadata instead of throwing. Apply to: get-protocol-info.usecase.ts, portfolio endpoints. Use the cache layer from G1 — on fetch failure, check cache even if expired.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions