Skip to content

Commit

Permalink
update typo of v3 api (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
tien7668 authored Oct 3, 2024
1 parent 8f77245 commit 5280694
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/liquidity-source/bebop/client/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
4 changes: 2 additions & 2 deletions pkg/liquidity-source/bebop/rfq.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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,
Expand Down

0 comments on commit 5280694

Please sign in to comment.