saving in place

This commit is contained in:
Krypto Kajun
2025-10-04 09:31:02 -05:00
parent 76c1b5cee1
commit f358f49aa9
295 changed files with 72071 additions and 17209 deletions

View File

@@ -8,14 +8,24 @@ import (
)
// ArbitrageOpportunity represents a potential arbitrage opportunity
// This is the canonical definition used across all packages
type ArbitrageOpportunity struct {
Path []string // Token path for the arbitrage
Pools []string // Pools involved in the arbitrage
AmountIn *big.Int // Input amount for the arbitrage
Profit *big.Int // Estimated profit in wei
GasEstimate *big.Int // Estimated gas cost
ROI float64 // Return on investment percentage
Protocol string // DEX protocol
Path []string // Token path for the arbitrage
Pools []string // Pools involved in the arbitrage
AmountIn *big.Int // Input amount for the arbitrage
Profit *big.Int // Estimated profit in wei
NetProfit *big.Int // Net profit after gas costs
GasEstimate *big.Int // Estimated gas cost
ROI float64 // Return on investment percentage
Protocol string // DEX protocol
ExecutionTime int64 // Estimated execution time in milliseconds
Confidence float64 // 0-1 confidence score
PriceImpact float64 // Price impact percentage
MaxSlippage float64 // Maximum acceptable slippage
TokenIn common.Address // Input token address
TokenOut common.Address // Output token address
Timestamp int64 // Detection timestamp
Risk float64 // Risk assessment score (0-1)
}
// PriceMovement represents a potential price movement