Skip to content

[Fix] Surface RWA Oracle price staleness in the web app (Stellar) #62

@FabianSanchezD

Description

@FabianSanchezD

Description

The RWA Oracle supports staleness configuration and returns price data that can be stale. The frontend uses the oracle for token prices and lending/borrowing (e.g. useTokenPrice.ts, lending flows). Currently the UI may not indicate when a price is stale or when actions might be restricted due to staleness. This issue is to use the oracle’s staleness/resolution information and surface it in the Stellar flows so users are informed and, if desired, actions can be gated when prices are too old.

Requirements

  • Use the RWA Oracle’s price response (e.g. timestamp, resolution, or staleness info from SEP-40) in the web app when fetching prices for Stellar (e.g. in useTokenPrice and wherever oracle prices are displayed or used for lending/borrowing).
  • Expose staleness (or “last updated”) in the UI where Stellar RWA prices are shown (e.g. dashboard, asset detail, lend/borrow forms).
    Optionally: disable or warn before high-impact actions (e.g. borrow, collateral change) when the relevant oracle price is stale, or document why not.

Acceptance criteria

[ ] Stellar token price hooks/services expose whether the current price is stale (or last-updated time) based on oracle data.
[ ] At least one main user-facing screen (e.g. dashboard, asset detail, or lend/borrow) shows staleness or “last updated” for Stellar RWA prices.
[ ] No change to EVM flows; scope is Stellar-only.

Expected files to change/structure

  • apps/web-app/src/hooks/useTokenPrice.ts (or equivalent) to parse and return staleness/last-updated from the oracle response.
  • Components that display Stellar RWA prices (e.g. in features/stocks, features/lending, features/borrowing) updated to show staleness or last-updated.
  • Optional: shared type/constant for “stale threshold” aligned with oracle config.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave program

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions