Skip to content

Commit 3c51a2f

Browse files
committed
chore: add gas estimation logs for analysis
1 parent 1b76d6b commit 3c51a2f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tools/preconf-rpc/fastswap/fastswap.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,8 @@ func (s *Service) HandleSwap(ctx context.Context, req SwapRequest) (*SwapResult,
468468
"outputToken", intent.OutputToken.Hex(),
469469
"inputAmt", intent.InputAmt.String(),
470470
"outputAmount", barterResp.Route.OutputAmount,
471+
"barterGasLimit", barterResp.GasLimit,
472+
"barterGasEstimation", barterResp.Route.GasEstimation,
471473
"gasLimit", gasLimit,
472474
"gasFeeCap", gasFeeCap.String(),
473475
"gasTipCap", gasTipCap.String(),
@@ -701,7 +703,8 @@ func (s *Service) HandleETHSwap(ctx context.Context, req ETHSwapRequest) (*ETHSw
701703
"outputToken", req.OutputToken.Hex(),
702704
"inputAmt", req.InputAmt.String(),
703705
"outputAmount", barterResp.Route.OutputAmount,
704-
"gasEstimation", barterResp.Route.GasEstimation,
706+
"barterGasLimit", barterResp.GasLimit,
707+
"barterGasEstimation", barterResp.Route.GasEstimation,
705708
"gasLimit", gasLimit,
706709
)
707710

0 commit comments

Comments
 (0)