Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sunspirit99 committed Jan 10, 2025
1 parent dfa5d47 commit 5a4df67
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 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 @@ -71,7 +71,7 @@ func (c *HTTPClient) QuoteSingleOrderResult(ctx context.Context, params bebop.Qu
SetQueryParam(bebop.ParamsApproveType, "Standard").
SetQueryParam(bebop.ParamsSkipValidation, "true"). // not checking balance
SetQueryParam(bebop.ParamsGasLess, "false"). // self-execution
SetQueryParam(querySourceKey, c.config.Name)
SetQueryParam(querySourceKey, c.config.APIName)

var result bebop.QuoteSingleOrderResult
var fail bebop.QuoteFail
Expand Down
2 changes: 1 addition & 1 deletion pkg/liquidity-source/bebop/client/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func TestHTTPClient(t *testing.T) {
Duration: time.Second * 5,
},
RetryCount: 1,
Name: "",
APIName: "",
Authorization: "",
},
)
Expand Down
7 changes: 3 additions & 4 deletions pkg/liquidity-source/bebop/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ type HTTPClientConfig struct {
BaseURL string `mapstructure:"base_url" json:"base_url"`
Timeout durationjson.Duration `mapstructure:"timeout" json:"timeout"`
RetryCount int `mapstructure:"retry_count" json:"retry_count"`
Name string `mapstructure:"name" json:"name"`
APIName string `mapstructure:"api_name" json:"api_name"`
Authorization string `mapstructure:"authorization" json:"authorization"`
}

type Config struct {
APIName string `json:"apiName"`
DexID string `json:"dexId"`
HTTP HTTPClientConfig `mapstructure:"http" json:"http"`
DexID string `json:"dexId"`
HTTP HTTPClientConfig `mapstructure:"http" json:"http"`
}

0 comments on commit 5a4df67

Please sign in to comment.