Skip to content

Update lens - #272

Open
prevostc wants to merge 2 commits into
devfrom
feat/lens-update
Open

Update lens#272
prevostc wants to merge 2 commits into
devfrom
feat/lens-update

Conversation

@prevostc

@prevostc prevostc commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@octane-security-app

Copy link
Copy Markdown

Summary by Octane

Extends contracts/lens/DashboardLens.sol with agent coverage, per-agent loan and per-reserve snapshot views, adds an ICapVaultLens interface, and renames the old ReserveSnapshot struct to LoanReserveSnapshot so the name can be reused for a new struct.

Changes

  • contracts/lens/DashboardLens.sol (modified) - Renames ReserveSnapshot to LoanReserveSnapshot, adds AgentCoverageSnapshot/AgentLoan/AgentSnapshot/new ReserveSnapshot structs and getAgent*/getReserveSnapshots functions.

Worth a look

  • contracts/lens/DashboardLens.sol - Struct ReserveSnapshot is renamed to LoanReserveSnapshot (and the LoanSnapshot.reserve field retyped), while a different ReserveSnapshot shape now takes that name.
  • contracts/lens/DashboardLens.sol - Adds hardcoded mainnet address MAINNET_WWTGXX 0x4345...7D8c; _reserveAssets() returns a fixed 2-entry list (USDC + WWTGXX) driving both new snapshot loops.
  • contracts/lens/DashboardLens.sol - getAgentSnapshot is non-view (marketRate/utilizationRate calls); middleware target is resolved from DELEGATION.networks(agent) with SYMBIOTIC_NETWORK_MIDDLEWARE as fallback.
  • contracts/lens/DashboardLens.sol - All new external reads are wrapped in try/catch that silently zero-fills on revert, including the middleware resolution and coverage/slashable reads.

🔗 Commit Hash: 476995b

@octane-security-app

Copy link
Copy Markdown

Overview

Vulnerabilities found: 3                                                                                
Warnings found: 2                                                                                

🔗 Commit Hash: 476995b
🛡️ Octane Dashboard: All vulnerabilities

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.

1 participant