Skip to content

Conversation

@Thykof
Copy link
Member

@Thykof Thykof commented Dec 9, 2025

No description provided.

@Thykof Thykof requested a review from Copilot December 9, 2025 15:03
domchevskayaA
domchevskayaA previously approved these changes Dec 9, 2025
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 refactors the cycle scheduling logic by extracting delay and asset selection into separate methods, and adds logic to skip gold (XAU) trading during inappropriate times.

Key Changes:

  • Extracted delay calculation logic into select_delay() method
  • Extracted asset selection logic into select_asset() method with added XAU skip functionality
  • Removed obsolete comment from get_latest_asset() method

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
synth/validator/miner_data_handler.py Removed outdated comment about returning the asset with the least count
neurons/validator.py Refactored schedule_cycle() by extracting delay and asset selection logic into separate methods, and added XAU skip logic

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

Co-authored-by: Copilot <[email protected]>
@Thykof Thykof force-pushed the refactor-and-fix-skip-gold branch from c16a513 to 860c96e Compare December 9, 2025 15:58
@Thykof Thykof requested a review from Copilot December 10, 2025 15:51
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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.


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

@Thykof Thykof merged commit e118e7d into main Dec 11, 2025
1 check passed
@Thykof Thykof deleted the refactor-and-fix-skip-gold branch December 11, 2025 09:52
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