Skip to content

Conversation

@timbrinded
Copy link
Collaborator

This pull request adds a warning log for negative asset balances in the streth asset adapter. The main change is to improve observability and debugging for unexpected negative balances returned by the strETH collector.

Logging and observability improvements:

  • Added a warning log message in the _fetch_assets method of streth.py to notify when a negative balance is encountered for an asset, including the asset name and amount.

Copilot AI review requested due to automatic review settings December 5, 2025 15:59
@timbrinded timbrinded added audit sherlock Sherlock auditor changes labels Dec 5, 2025
@timbrinded timbrinded merged commit 62d6afe into feat/streth-asset-adapter-sher Dec 5, 2025
12 checks passed
@timbrinded timbrinded deleted the fix/audit/79-negative-amt branch December 5, 2025 16:00
Copilot finished reviewing on behalf of timbrinded December 5, 2025 16:01
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 a warning log to detect and report negative asset balances in the strETH asset adapter. The change improves observability by alerting when the strETH collector returns unexpected negative balances, which helps with debugging potential issues in the upstream data collection.

Key changes:

  • Added a warning log in the _fetch_assets method when a negative balance is encountered

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

@timbrinded timbrinded restored the fix/audit/79-negative-amt branch December 5, 2025 16:07
@timbrinded timbrinded deleted the fix/audit/79-negative-amt branch December 5, 2025 16:10
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.

2 participants