fix(critical): complete execution pipeline - all blockers fixed and operational
This commit is contained in:
@@ -12,13 +12,13 @@ import (
|
||||
|
||||
// FlashLoanExecutorConfig holds configuration for flash loan execution
|
||||
type FlashLoanExecutorConfig struct {
|
||||
ContractAddress common.Address
|
||||
BalancerVault common.Address
|
||||
MaxSlippageBps *big.Int
|
||||
MaxPathLength *big.Int
|
||||
MinProfitWei *big.Int
|
||||
OwnerPrivateKey string
|
||||
RPCEndpoint string
|
||||
ContractAddress common.Address
|
||||
BalancerVault common.Address
|
||||
MaxSlippageBps *big.Int
|
||||
MaxPathLength *big.Int
|
||||
MinProfitWei *big.Int
|
||||
OwnerPrivateKey string
|
||||
RPCEndpoint string
|
||||
}
|
||||
|
||||
// FlashLoanExecutor manages flash loan arbitrage execution
|
||||
@@ -79,10 +79,10 @@ func (e *FlashLoanExecutor) ExecuteArbitrage(
|
||||
}
|
||||
|
||||
return &FlashLoanResult{
|
||||
TxHash: tx.Hash(),
|
||||
Success: receipt.Status == 1,
|
||||
GasUsed: receipt.GasUsed,
|
||||
BlockNum: receipt.BlockNumber.Uint64(),
|
||||
TxHash: tx.Hash(),
|
||||
Success: receipt.Status == 1,
|
||||
GasUsed: receipt.GasUsed,
|
||||
BlockNum: receipt.BlockNumber.Uint64(),
|
||||
}, nil
|
||||
}
|
||||
|
||||
@@ -139,11 +139,11 @@ func (e *FlashLoanExecutor) GetBalance(
|
||||
|
||||
// ArbitragePath represents a multi-hop arbitrage path
|
||||
type ArbitragePath struct {
|
||||
Tokens []common.Address
|
||||
Exchanges []common.Address
|
||||
Fees []*big.Int
|
||||
IsV3 []bool
|
||||
MinProfit *big.Int
|
||||
Tokens []common.Address
|
||||
Exchanges []common.Address
|
||||
Fees []*big.Int
|
||||
IsV3 []bool
|
||||
MinProfit *big.Int
|
||||
SlippageBps *big.Int
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user