fix(critical): complete execution pipeline - all blockers fixed and operational

This commit is contained in:
Krypto Kajun
2025-11-04 10:24:34 -06:00
parent 0b1c7bbc86
commit 52d555ccdf
410 changed files with 99504 additions and 28488 deletions

View File

@@ -46,15 +46,15 @@ type AlertConfig struct {
EnableFileAlerts bool
EnableWebhook bool
WebhookURL string
MinProfitForAlert *big.Int // Minimum profit to trigger alert (wei)
MinROIForAlert float64 // Minimum ROI to trigger alert (0.05 = 5%)
MinProfitForAlert *big.Int // Minimum profit to trigger alert (wei)
MinROIForAlert float64 // Minimum ROI to trigger alert (0.05 = 5%)
AlertCooldown time.Duration // Minimum time between alerts
}
// AlertSystem handles opportunity alerts and notifications
type AlertSystem struct {
config *AlertConfig
logger *logger.Logger
config *AlertConfig
logger *logger.Logger
lastAlertTime time.Time
alertCount uint64
}

View File

@@ -41,28 +41,28 @@ type ExecutionResult struct {
// ExecutionConfig holds configuration for the executor
type ExecutionConfig struct {
Mode ExecutionMode
MaxGasPrice *big.Int // Maximum gas price willing to pay (wei)
MaxSlippage float64 // Maximum slippage tolerance (0.05 = 5%)
MinProfitThreshold *big.Int // Minimum profit to execute (wei)
SimulationRPCURL string // RPC URL for simulation/fork testing
FlashLoanProvider string // "aave", "uniswap", "balancer"
MaxRetries int // Maximum execution retries
RetryDelay time.Duration
EnableParallelExec bool // Execute multiple opportunities in parallel
DryRun bool // If true, don't send transactions
Mode ExecutionMode
MaxGasPrice *big.Int // Maximum gas price willing to pay (wei)
MaxSlippage float64 // Maximum slippage tolerance (0.05 = 5%)
MinProfitThreshold *big.Int // Minimum profit to execute (wei)
SimulationRPCURL string // RPC URL for simulation/fork testing
FlashLoanProvider string // "aave", "uniswap", "balancer"
MaxRetries int // Maximum execution retries
RetryDelay time.Duration
EnableParallelExec bool // Execute multiple opportunities in parallel
DryRun bool // If true, don't send transactions
}
// ArbitrageExecutor handles execution of arbitrage opportunities
type ArbitrageExecutor struct {
config *ExecutionConfig
client *ethclient.Client
logger *logger.Logger
flashLoan FlashLoanProvider
slippage *SlippageProtector
simulator *ExecutionSimulator
resultsChan chan *ExecutionResult
stopChan chan struct{}
config *ExecutionConfig
client *ethclient.Client
logger *logger.Logger
flashLoan FlashLoanProvider
slippage *SlippageProtector
simulator *ExecutionSimulator
resultsChan chan *ExecutionResult
stopChan chan struct{}
}
// FlashLoanProvider interface for different flash loan protocols