saving in place
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user