Skip to content

[VPD 1241] Certik: Venus Labs - Core Feature Reaudit#315

Open
GitGuru7 wants to merge 12 commits into
developfrom
fix/vpd-1241-certik-audit
Open

[VPD 1241] Certik: Venus Labs - Core Feature Reaudit#315
GitGuru7 wants to merge 12 commits into
developfrom
fix/vpd-1241-certik-audit

Conversation

@GitGuru7

Copy link
Copy Markdown
Contributor

Description

Resolves #

Checklist

  • I have updated the documentation to account for the changes in the code.
  • If I added new functionality, I added tests covering it.
  • If I fixed a bug, I added a test preventing this bug from silently reappearing again.
  • My contribution follows Venus contribution guidelines.

@GitGuru7 GitGuru7 self-assigned this May 19, 2026
@GitGuru7 GitGuru7 marked this pull request as ready for review May 19, 2026 14:02
@github-actions

Copy link
Copy Markdown

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 97% 92%
Summary 93% (562 / 604) 87% (278 / 320)

function setSnapshot(uint256 _snapshotMaxExchangeRate, uint256 _snapshotTimestamp) external {
_checkAccessAllowed("setSnapshot(uint256,uint256)");

if (snapshotInterval != 0) {

@Debugger022 Debugger022 Jun 23, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

better to have same validation in setGrowthRate (against the stored snapshot) when interval goes 0 → non-zero,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, that would be better. However, we already have the final audit report, and in practice we wouldn't set the values to 0 anyway. So, I think we can include this change the next time the contract goes through an audit.

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