fix(critical): complete execution pipeline - all blockers fixed and operational
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user