Skip to content

Conversation

@evgeny-stakewise
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings January 22, 2026 09:24
Copy link

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 an os_token_redeem_multiplier field to the ProtocolConfig dataclass to adjust redemption assets for potential osToken rate increases, defaulting to 1.0023 (~0.23% adjustment based on historical APR).

Changes:

  • Added os_token_redeem_multiplier as a Decimal field to ProtocolConfig
  • Updated configuration builder to load the multiplier with a default value
  • Refactored test factories to use Web3.to_hex() for generating hex strings and added HexStr type hints

Reviewed changes

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

File Description
sw_utils/typings.py Added os_token_redeem_multiplier field with Decimal type to ProtocolConfig
sw_utils/protocol_config.py Implemented loading logic for the new multiplier field with default value of 1.0023
sw_utils/tests/factories.py Updated test factory to include the multiplier and refactored hex string generation methods
pyproject.toml Bumped version from v0.12.2 to v0.12.3

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

@evgeny-stakewise evgeny-stakewise merged commit f831232 into master Jan 22, 2026
3 checks passed
@evgeny-stakewise evgeny-stakewise deleted the redeem-multiplier branch January 22, 2026 10:07
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.

3 participants