Skip to content

Conversation

@mkmccarty
Copy link
Owner

No description provided.

Copilot AI review requested due to automatic review settings December 28, 2025 16:57
@mkmccarty mkmccarty merged commit dc29e4a into main Dec 28, 2025
14 checks passed
@mkmccarty mkmccarty deleted the mm-branch-1 branch December 28, 2025 16:57
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 optimizes the time estimation algorithm for contract completion by fixing a critical mathematical bug in token rate calculations and adding contract-specific boost optimizations for short-duration contracts.

Key Changes:

  • Fixed token rate calculation formula from an incorrect division-based approach to the correct multiplication-based formula
  • Added specialized boost token capping (max 4 tokens) for contracts under 45 minutes
  • Improved boundary conditions with safeguards to prevent negative remaining eggs and estimates exceeding contract length

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

if float64(contractLengthInSeconds) < 45*60 {
est.boostTokens = math.Min(est.boostTokens, 4.0)
est.boostMultiplier = calcBoostMulti(est.boostTokens)
// Will want to use all Tachyeon stones for this case
Copy link

Copilot AI Dec 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spelling error: "Tachyeon" should be "Tachyon".

Suggested change
// Will want to use all Tachyeon stones for this case
// Will want to use all Tachyon stones for this case

Copilot uses AI. Check for mistakes.
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.

2 participants