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 16:10
@timbrinded timbrinded added audit sherlock Sherlock auditor changes labels Dec 5, 2025
@timbrinded timbrinded merged commit 7f8991d into audit/sherlock-combined-RC1 Dec 5, 2025
23 of 24 checks passed
@timbrinded timbrinded deleted the fix/audit/79-negative-amt branch December 5, 2025 16:10
Copilot finished reviewing on behalf of timbrinded December 5, 2025 16:12
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 observability improvements to the strETH asset adapter by logging warnings when negative asset balances are encountered from the strETH collector. The change helps identify unexpected data conditions while still processing the balances for accurate tracking. The implementation follows existing logging patterns in the codebase and provides clear diagnostic information including the asset address and negative amount value.

Key changes:

  • Added warning log in _fetch_assets method when negative balances are detected
  • Negative balances are still processed in cumulative amounts after logging

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

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