Skip to content

Remove mock protocol APY sources; implement real protocol rate fetchers #157

@robertocarlous

Description

@robertocarlous

Problem

Protocol scanning uses mocked APY/TVL values (src/agent/scanner.ts). This makes the agent's decisions unreliable and invalidates production claims.

Acceptance criteria

  • Replace mock fetchers with real data sources for each supported protocol (Blend, Stellar DEX pools, Luma)
  • Add timeouts, retries, and circuit breaker behavior per upstream
  • Persist raw source data + computed APY in ProtocolRate for auditability
  • Add integration tests that stub upstream HTTP responses
  • Add metrics: fetch duration, failures per source, stale-rate detection

Priority

P0 / Critical

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions