Skip to content

Conversation

@timbrinded
Copy link
Collaborator

This pull request introduces support for the strETH asset in the oracle pipeline, including a new asset adapter, ABI integration, and configuration updates. It also updates the report structure to include the total value locked (TVL) in the base asset, and adds comprehensive tests for these changes.

Copilot AI review requested due to automatic review settings November 24, 2025 10:34
@timbrinded timbrinded added audit sherlock Sherlock auditor changes labels Nov 24, 2025
Copilot finished reviewing on behalf of timbrinded November 24, 2025 10:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for strETH (StrategyETH Flexible Vaults) to the oracle pipeline by introducing a new asset adapter and updating the report structure to include TVL in the base asset.

Key changes:

  • Added tvl_in_base_asset field to OracleReport data structure
  • Implemented StrETHAdapter for fetching strETH positions via on-chain multicalls
  • Integrated ABIs for Multicall and CoreVaultsCollector contracts

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/tq_oracle/report/generator.py Added tvl_in_base_asset parameter and field to report generation
src/tq_oracle/adapters/asset_adapters/streth.py New adapter implementing strETH position fetching with multicall
src/tq_oracle/adapters/asset_adapters/init.py Registered StrETHAdapter in adapter registry
src/tq_oracle/pipeline/assets.py Integrated strETH adapter into asset fetching pipeline
src/tq_oracle/pipeline/report.py Updated report builder to pass TVL parameter
src/tq_oracle/constants.py Added strETH, multicall, and collector contract addresses
src/tq_oracle/settings.py Added configuration properties for strETH components
src/tq_oracle/abi.py Added loader functions for new contract ABIs
src/tq_oracle/abis/Multicall.json Multicall3 contract ABI definition
src/tq_oracle/abis/CoreVaultsCollector.json CoreVaultsCollector contract ABI definition
tests/report/test_generator.py Updated tests to include tvl_in_base_asset parameter
tests/report/test_encoder.py Updated test fixtures with tvl_in_base_asset field
tests/report/test_publisher.py Updated test fixture with tvl_in_base_asset field

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@timbrinded
Copy link
Collaborator Author

superseded by #130

@timbrinded timbrinded closed this Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

audit sherlock Sherlock auditor changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants