Skip to content

🔧 base: use ars/usd feed for wARS - #830

Merged
cruzdanilo merged 1 commit into
mainfrom
wars-feed
Nov 26, 2026
Merged

cruzdanilo merged 1 commit into
mainfrom
wars-feed

Conversation

@patitonar

@patitonar patitonar commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Patitonar · project thread

Chainlink now publishes ARS/USD on Base (0xaf992a6a…8cE3), so wARS no longer needs the PriceFeedInverse adapter over USD/ARS.

Changes

  • hardhat.config.ts: drop the priceFeed: "inverse" override for wARS on Base
  • deployments/base/PriceFeedwARS.json: point to the ARS/USD feed (was the inverse adapter 0xcEF0…9bd1)
  • deployments/base/PriceFeedwARSMain.json: removed (USD/ARS, only used by the inverse adapter)

Feed comparison (Base, 2026-11-10)

ARS/USD (new) inverse over USD/ARS (current)
answer 0.00060984 0.00060710
decimals 8 8
heartbeat / deviation 24h / 0.5% 24h / 0.5%

About 0.45% apart, inside both feeds' deviation band. MarketwARS currently has no borrows.

Rollout

The deploy proposes Auditor.setPriceFeed(MarketwARS, ARS/USD) on the timelock; the multisig executes it after the 24h delay. Timelock op id 0x4c13193d8a2449c9789208d6f99e3282055c39ad678371f03107694674ed405e.

Fork validation

Base fork with the real deploy script (deployer impersonated):

  • the only action proposed is Auditor.setPriceFeed; nothing is redeployed
  • the multisig execute reverts before the delay and succeeds after it
  • afterwards the auditor's wARS feed is the ARS/USD proxy, adjust factor 0.91 and non-collateral unchanged
  • fork test: a wARS borrow is priced through ARS/USD, and with ARS moved 3x the borrower is liquidated successfully

Generated by Claude Code

Summary by CodeRabbit

  • Configuration
    • The wARS market on Base now uses the default price-feed configuration instead of the inverse configuration.
    • The dedicated Base price-feed deployment entry has been removed.

@changeset-bot

changeset-bot Bot commented Nov 10, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: ebe2527

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@patitonar patitonar self-assigned this Nov 10, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-10T22:02:47.817540Z ebe2527 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

The saved review history does not include the base for the last reviewed commit. This saved history cannot establish the base for an incremental review. Comment @coderabbitai full review to establish a new review baseline. No full review was started, and the last reviewed checkpoint was preserved.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

Walkthrough

The Base wARS configuration no longer sets priceFeed to "inverse". The deployment file PriceFeedwARSMain.json was deleted.

Changes

Base wARS price feed

Layer / File(s) Summary
Remove inverse feed configuration
hardhat.config.ts, deployments/base/PriceFeedwARSMain.json
The Base wARS configuration now uses the default price-feed configuration. The deployment file was deleted.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Possibly related PRs

  • exactly/protocol#819: Adds the inverse price feed and Base wARS deployment referenced by this change.
Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly summarizes the main change: using the ARS/USD feed for wARS on Base.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Finishing Touches

Generate docstrings

  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Simplify code

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Review coverage is incomplete: 1 file could not be fully reviewed. Findings from completed review steps are included; see review info for details.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 4c0bbb0d-dd1b-4116-87c1-bf9baa175c0b
Commits

Reviewing files that changed from the base of the PR and between 644b11c and ebe2527.

Files selected for processing: 3

  • deployments/base/PriceFeedwARS.json
  • deployments/base/PriceFeedwARSMain.json
  • hardhat.config.ts
Files with no reviewable changes: 2

  • hardhat.config.ts
  • deployments/base/PriceFeedwARSMain.json
Files not fully reviewed because their changes were unavailable: 1

  • deployments/base/PriceFeedwARS.json

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@patitonar
patitonar marked this pull request as draft November 10, 2026 22:00
@patitonar
patitonar marked this pull request as ready for review November 10, 2026 22:00
@patitonar
patitonar added this pull request to stack #832 November 10, 2026 22:38
@codecov

codecov Bot commented Nov 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.82%. Comparing base (644b11c) to head (ebe2527).

Additional details and impacted files
@@           Coverage Diff            @@
##             main     #830    +/-   ##
========================================
  Coverage   94.82%   94.82%            
========================================
  Files          32       32            
  Lines        2742     2742            
  Branches      469      366   -103     
========================================
  Hits         2600     2600            
  Misses        141      141            
  Partials        1        1            

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cruzdanilo
cruzdanilo merged commit ebe2527 into main Nov 26, 2026
4 checks passed
@cruzdanilo
cruzdanilo deleted the wars-feed branch November 26, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants