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

@@ -10,6 +10,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/fraktal/mev-beta/internal/logger"
pkgerrors "github.com/fraktal/mev-beta/pkg/errors"
oraclepkg "github.com/fraktal/mev-beta/pkg/oracle"
"github.com/fraktal/mev-beta/pkg/types"
)
@@ -77,7 +78,13 @@ func (ep *ExchangePricer) GetCrossExchangePrices(ctx context.Context, tokenIn, t
for exchange, oracle := range ep.oracles {
select {
case <-ctx.Done():
return nil, ctx.Err()
return nil, pkgerrors.WrapContextError(ctx.Err(), "GetCrossExchangePrices",
map[string]interface{}{
"tokenIn": tokenIn.Hex(),
"tokenOut": tokenOut.Hex(),
"currentExchange": exchange,
"pricesFetched": len(prices),
})
default:
priceReq := &oraclepkg.PriceRequest{
TokenIn: tokenIn,