diff --git a/pkg/liquidity-source/bebop/client/http.go b/pkg/liquidity-source/bebop/client/http.go index 1a7f54e81..1691fbea2 100644 --- a/pkg/liquidity-source/bebop/client/http.go +++ b/pkg/liquidity-source/bebop/client/http.go @@ -57,7 +57,7 @@ func NewHTTPClient(config *bebop.HTTPClientConfig) *HTTPClient { } } -func (c *HTTPClient) QuoteSingleOrder(ctx context.Context, params bebop.QuoteParams) (bebop.QuoteSingleOrderResult, error) { +func (c *HTTPClient) QuoteSingleOrderResult(ctx context.Context, params bebop.QuoteParams) (bebop.QuoteSingleOrderResult, error) { // token address case-sensitive req := c.client.R(). SetContext(ctx). diff --git a/pkg/liquidity-source/bebop/rfq.go b/pkg/liquidity-source/bebop/rfq.go index e185230fd..744e3426b 100644 --- a/pkg/liquidity-source/bebop/rfq.go +++ b/pkg/liquidity-source/bebop/rfq.go @@ -15,7 +15,7 @@ type Config struct { } type IClient interface { - QuoteQuoteSingleOrderResult(ctx context.Context, params QuoteParams) (QuoteSingleOrderResult, error) + QuoteSingleOrderResult(ctx context.Context, params QuoteParams) (QuoteSingleOrderResult, error) } type RFQHandler struct { @@ -36,7 +36,7 @@ func (h *RFQHandler) RFQ(ctx context.Context, params pool.RFQParams) (*pool.RFQR return nil, err } logger.Infof("params.SwapInfo: %v -> swapInfo: %v", params.SwapInfo, swapInfo) - result, err := h.client.QuoteQuoteSingleOrderResult(ctx, QuoteParams{ + result, err := h.client.QuoteSingleOrderResult(ctx, QuoteParams{ SellTokens: swapInfo.BaseToken, BuyTokens: swapInfo.QuoteToken, SellAmounts: swapInfo.BaseTokenAmount,