Add production-ready FCT auto-miner#1
Open
RogerPodacter wants to merge 3 commits into
Open
Conversation
Major Features: - Auto-mining engine with configurable rules and strategies - JSON-based persistence (no native dependencies) - Budget-aware data sizing optimization - Real-time efficiency tracking and analytics - Graceful shutdown and crash recovery Key Improvements: - Fixed FCT calculation to use correct calldata gas formula (40 gas per non-zero byte) - Removed SDK's broken calculateInputGasCost dependency - Simplified strategies to focus on cost/FCT (the only metric that matters) - Added budget-aware sizing to prevent overspending - Session persistence for crash recovery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
How to Try It
Quick Start
Key Features
Available Commands
Configuration Options
--max-cost <usd>- Maximum cost per FCT in USD (e.g., 0.0005)--budget <eth>- Daily budget in ETH (e.g., 0.01)-H, --hours <range>- Hours to mine (e.g., '2-6,14-18')--strategy <type>- Mining strategy: auto or arbitrage--target <fct>- Stop after mining this much FCT--min-efficiency <percent>- Minimum mining efficiencyImportant Fix
This PR fixes a critical bug where we were using the SDK's calculateInputGasCost which underestimates gas by ~60%. Now using the correct formula: non_zero_bytes * 40 + zero_bytes * 10 gas.
Test Plan