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

@@ -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
}