Skip to content

Refactor common/execution.py#636

Merged
evgeny-stakewise merged 2 commits intomasterfrom
refactor-execution
Jan 19, 2026
Merged

Refactor common/execution.py#636
evgeny-stakewise merged 2 commits intomasterfrom
refactor-execution

Conversation

@evgeny-stakewise
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings January 16, 2026 12:56
Copy link
Copy Markdown
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 refactors common/execution.py by extracting withdrawal-related and consolidation-related functionality into separate, domain-specific modules (common/withdrawals.py and common/consolidations.py). This improves code organization and maintainability by grouping related functions together.

Changes:

  • Extracted withdrawal functions from execution.py into a new withdrawals.py module
  • Extracted consolidation functions from execution.py into a new consolidations.py module
  • Made the fake_exponential helper function public and kept it in execution.py for shared use
  • Updated imports across affected files to reference the new module locations

Reviewed changes

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

Show a summary per file
File Description
src/common/withdrawals.py New module containing withdrawal-related functions moved from execution.py
src/common/consolidations.py New module containing consolidation-related functions moved from execution.py
src/common/execution.py Removed withdrawal and consolidation functions; exposed fake_exponential as public function
src/withdrawals/tasks.py Updated imports to reference new modules
src/commands/exit_validators.py Updated imports to reference new withdrawals module
src/commands/consolidate.py Updated imports to reference new consolidations and withdrawals modules

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

@evgeny-stakewise evgeny-stakewise merged commit 294ad12 into master Jan 19, 2026
7 of 8 checks passed
@evgeny-stakewise evgeny-stakewise deleted the refactor-execution branch January 19, 2026 08:43
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