From 3c51a2f5b50d64c13b711e11fc8d65f9332467f1 Mon Sep 17 00:00:00 2001 From: owen-eth Date: Fri, 3 Apr 2026 14:41:46 -0400 Subject: [PATCH] chore: add gas estimation logs for analysis --- tools/preconf-rpc/fastswap/fastswap.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/preconf-rpc/fastswap/fastswap.go b/tools/preconf-rpc/fastswap/fastswap.go index e7a83ee6b..c45decca0 100644 --- a/tools/preconf-rpc/fastswap/fastswap.go +++ b/tools/preconf-rpc/fastswap/fastswap.go @@ -468,6 +468,8 @@ func (s *Service) HandleSwap(ctx context.Context, req SwapRequest) (*SwapResult, "outputToken", intent.OutputToken.Hex(), "inputAmt", intent.InputAmt.String(), "outputAmount", barterResp.Route.OutputAmount, + "barterGasLimit", barterResp.GasLimit, + "barterGasEstimation", barterResp.Route.GasEstimation, "gasLimit", gasLimit, "gasFeeCap", gasFeeCap.String(), "gasTipCap", gasTipCap.String(), @@ -701,7 +703,8 @@ func (s *Service) HandleETHSwap(ctx context.Context, req ETHSwapRequest) (*ETHSw "outputToken", req.OutputToken.Hex(), "inputAmt", req.InputAmt.String(), "outputAmount", barterResp.Route.OutputAmount, - "gasEstimation", barterResp.Route.GasEstimation, + "barterGasLimit", barterResp.GasLimit, + "barterGasEstimation", barterResp.Route.GasEstimation, "gasLimit", gasLimit, )