[VPD-893]: Integrate DeviationBoundedOracle for conservative CF path#668
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
…or bounded CF-path pricing
…ountLiquidity, improve docs
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.
Tip: disable this comment in your organization's Code Review settings.
|
I guess we will need to update the VenusLens contract as well. It's not directly used by any other contract, but I'm thinking that fe/be might have certain dependencies. Probably we could return three prices instead of just the spot price. |
also same thing to |
|
in VAI controller#getMintableVAI, should we update this function as well ? What I saw is that we are still using the spot price instead of the updated DeviationBoundedOracle price. "Function that returns the amount of VAI a user can mint based on their account liquidy and the VAI mint rate" |
[VPD-893]: Hashdit- Venus DeviationBoundedOracle Audit
Update facet-cut-params-generator to handle add and replace selectors dynamically
|
lgtm, let's fix the ci |
|

Description
Integrate DeviationBoundedOracle into Comptroller for conservative CF-path pricing
ComptrollerV19Storagewith a newdeviationBoundedOracleslotand add
setDeviationBoundedOracleadmin setter inSetterFacetdbo.updateProtectionState()for all account assets before liquiditychecks in
redeemAllowedandborrowAllowed(populates transient price cache)ComptrollerLens, use bounded collateral/debt prices from the DBO in thecollateral-factor path; liquidation-threshold path continues to use spot prices
VenusProtocol/oracle#306
you can either:
npm packto create a local package