fix(critical): complete execution pipeline - all blockers fixed and operational
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user