Skip to content

Commit 0a1cabf

Browse files
committed
linter
1 parent c1b0a5a commit 0a1cabf

File tree

3 files changed

+25
-25
lines changed

3 files changed

+25
-25
lines changed

sdk-clients/fusion/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func (api *api) GetQuote(ctx context.Context, params QuoterControllerGetQuotePar
5454
return nil, err
5555
}
5656

57-
if params.Surplus != true {
57+
if !params.Surplus {
5858
return nil, fmt.Errorf("surplus query parameter must be true to get quote")
5959
}
6060

sdk-clients/fusion/custompreset.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func (q *CustomPreset) validatePoints(
4848
auctionStartAmount string,
4949
auctionEndAmount string,
5050
) error {
51-
if points == nil || len(points) == 0 {
51+
if len(points) == 0 {
5252
return nil
5353
}
5454

sdk-clients/fusionplus/api.go

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -90,31 +90,31 @@ func (api *api) GetActiveOrders(ctx context.Context, params OrderApiControllerGe
9090
}
9191

9292
func (api *api) GetQuote(ctx context.Context, params QuoterControllerGetQuoteParamsFixed) (*GetQuoteOutputFixed, error) {
93-
u := "/fusion-plus/quoter/v1.0/quote/receive"
94-
9593
return nil, errors.New("fusion Plus API currently not supported")
9694

97-
err := params.Validate()
98-
if err != nil {
99-
return nil, err
100-
}
101-
102-
payload := common.RequestPayload{
103-
Method: "GET",
104-
Params: params,
105-
U: u,
106-
Body: nil,
107-
}
108-
109-
var response GetQuoteOutputFixed
110-
err = api.httpExecutor.ExecuteRequest(ctx, payload, &response)
111-
if err != nil {
112-
return nil, err
113-
}
114-
115-
// TODO must normalize response here
116-
117-
return &response, nil
95+
//u := "/fusion-plus/quoter/v1.0/quote/receive"
96+
//
97+
//err := params.Validate()
98+
//if err != nil {
99+
// return nil, err
100+
//}
101+
//
102+
//payload := common.RequestPayload{
103+
// Method: "GET",
104+
// Params: params,
105+
// U: u,
106+
// Body: nil,
107+
//}
108+
//
109+
//var response GetQuoteOutputFixed
110+
//err = api.httpExecutor.ExecuteRequest(ctx, payload, &response)
111+
//if err != nil {
112+
// return nil, err
113+
//}
114+
//
115+
//// TODO must normalize response here
116+
//
117+
//return &response, nil
118118
}
119119

120120
func (api *api) GetQuoteWithCustomPreset(ctx context.Context, params QuoterControllerGetQuoteWithCustomPresetsParams, presetDetails QuoterControllerGetQuoteWithCustomPresetsJSONRequestBody) (*GetQuoteOutputFixed, error) {

0 commit comments

Comments
 (0)