Skip to content

[VPD-893]: Add DeviationBoundedOracle Contracts#306

Merged
fred-venus merged 33 commits into
developfrom
feat/vpd-893-bounded-price-oracle
May 6, 2026
Merged

[VPD-893]: Add DeviationBoundedOracle Contracts#306
fred-venus merged 33 commits into
developfrom
feat/vpd-893-bounded-price-oracle

Conversation

@GitGuru7
Copy link
Copy Markdown
Contributor

Description

Adds DeviationBoundedOracle contract that wraps the Resilient Oracle and provides manipulation-resistant pricing for lending operations
Maintains a per-market rolling min/max price window and automatically activates protection mode when the spot price deviates significantly from the window bounds
In protection mode, collateral is valued at min(spot, windowMin) and debt at max(spot, windowMax), guarding against short-duration price manipulation on low-liquidity tokens
Supports configurable entry/exit thresholds with hysteresis and per-market cooldown periods
Adds IDeviationBoundedOracle interface

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 31, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 034ec313-44e7-4e98-860b-da7d1d24f54d

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
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/vpd-893-bounded-price-oracle

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Comment thread contracts/DeviationBoundedOracle.sol
Comment thread contracts/DeviationBoundedOracle.sol Outdated
Comment thread contracts/DeviationBoundedOracle.sol
Comment thread contracts/interfaces/IDeviationBoundedOracle.sol
Comment thread contracts/DeviationBoundedOracle.sol Outdated
Comment thread contracts/DeviationBoundedOracle.sol
Comment thread contracts/DeviationBoundedOracle.sol
@GitGuru7
Copy link
Copy Markdown
Contributor Author

GitGuru7 commented Apr 8, 2026

@coderabbitai review

@GitGuru7 GitGuru7 marked this pull request as ready for review April 9, 2026 06:14
Comment thread contracts/DeviationBoundedOracle.sol Outdated
Comment thread contracts/DeviationBoundedOracle.sol Outdated
Comment thread contracts/DeviationBoundedOracle.sol Outdated
Comment thread contracts/DeviationBoundedOracle.sol Outdated
Comment thread contracts/DeviationBoundedOracle.sol Outdated
Comment thread contracts/DeviationBoundedOracle.sol Outdated
Comment thread contracts/DeviationBoundedOracle.sol Outdated
Comment thread contracts/DeviationBoundedOracle.sol Outdated
Copy link
Copy Markdown
Contributor

@fred-venus fred-venus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm,

GitGuru7 and others added 21 commits April 20, 2026 19:17
[VPD-893]: Quantstamp - Venus DeviationBoundedOracle Audit
[VPD-893]: Certik - Venus DeviationBoundedOracle Audit
[VPD-893]: Hashdit- Venus DeviationBoundedOracle Audit
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

Code Coverage

Package Line Rate Branch Rate Health
contracts 99% 92%
contracts.interfaces 100% 100%
contracts.lib 100% 100%
contracts.oracles 83% 76%
contracts.oracles.common 98% 93%
Summary 93% (560 / 601) 87% (271 / 312)

@fred-venus fred-venus merged commit 5a1870c into develop May 6, 2026
4 checks passed
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.

3 participants