Repository navigation
Conversation
Adds useReserveOracle, which reads Reserve.oracle from the V3 API every 60s, and the helpers the oracle card needs: freshness against each feed's heartbeat, age, heartbeat and price formatting, and the administrations to show.
Shows the reserve's oracle price, its freshness against each feed's heartbeat, market price, contract, heartbeat and deviation, provider, source date, creation tx and administration, read from the V3 API's Reserve.oracle every 60s. The header's oracle price icon now scrolls to the card.
Lists each feed of an oracle with more than one feed or a capped rate: name, provider, heartbeat and deviation, last answer in its quote's units, and its freshness. Capped rate rows show the rate used, the cap and the yearly growth.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Rates show up to five decimals so a rate just under its cap reads apart from it, and the Capped tooltip names the rate the token reports. The table switches to cards at the shared list breakpoint, and a feed answer's pair wraps instead of running into the next column.
Before the API serves Reserve.oracle the card is empty, so the icon opens the oracle contract on the explorer and sends the Oracle Price event as it does today. It scrolls to the card once the oracle loads.
Labels and status use the 14/18 base type, the dot is 8px with a 4px halo and pulses while fresh, stale and outdated use the health-factor yellow and red, detail rows keep 18px with icons, and the prices stack on narrow screens so the divider no longer hangs.
# Conflicts: # src/modules/reserve-overview/ReserveOracleCard/OracleParts.tsx
Title, header and row heights, 16px edges and type follow the Figma table. Columns are equal width and the table turns into cards below sm, where a provider logo and link no longer fit a fifth of the row.
LDO / ETH answers 0.000143 and showed as 0.0001; v4 shows 0.0001432.
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
@aave/graphql and @aave/react 0.0.0-preview-20261202151459 carry the oracle query and hook. Swap for the aave-sdk#190 release before merge.
|
@codex review |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
📦 Next.js Bundle Analysis for aave-uiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
# Conflicts: # package.json # pnpm-lock.yaml
|
📦 Next.js Bundle Analysis for aave-uiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
Context: folds in #3215, #3216. Pins SDK preview
0.0.0-preview-20261202151459; swap for the aave/aave-sdk#190 release before merge, once prod servesReserve.oracle.Now: an Oracle Configuration card on reserve pages, GHO too: prices, freshness, contract, heartbeat, provider, admin and PT maturity, plus a table for multi-feed or capped oracles.
Decisions:
Checked: 11 jest tests, tsc on the SDK preview, one request a minute, 25 states, 1440 and 375px.
API schema: none; reads V3
Reserve.oraclefrom aave/backend#1837 (additive, on staging).Skip
src/locales/*,public/icons/*. 1,054 logic lines, over limit by choice.Full schema diff (from aave/aave-sdk#190)
Decision details
retry: 1, no polling while the query errors. Why: feeds update on heartbeats of minutes to hours. Accepts: 60 requests per open tab per hour; header and card share one query, so a page sends one a minute, none while hidden and one on return (local, mocked answers, also at 4x CPU). Rejected: no refresh, where a page left open turns amber on old data.Oracle Priceevent once the card has data.Review in order:
oracleUtils.ts,useReserveOracle.tsReserveOracleCard/index.tsx,OracleParts.tsxOraclePriceFeeds.tsx,ReserveTopDetails.tsxCloses AAVEV3-173
Part of AAVEV3-189