From 0456dcef8bc21551782931c1f989e6a421d2fd78 Mon Sep 17 00:00:00 2001 From: dlipicar Date: Wed, 24 Jul 2024 17:29:54 -0300 Subject: [PATCH] fix(wallet)_: exclude paraswap providers not supporting partner fees (#5573) --- services/wallet/thirdparty/paraswap/request_price_route.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/wallet/thirdparty/paraswap/request_price_route.go b/services/wallet/thirdparty/paraswap/request_price_route.go index 1e4425522..ebe248447 100644 --- a/services/wallet/thirdparty/paraswap/request_price_route.go +++ b/services/wallet/thirdparty/paraswap/request_price_route.go @@ -47,6 +47,8 @@ func (c *ClientV5) FetchPriceRoute(ctx context.Context, srcTokenAddress common.A params.Add("amount", amountWei.String()) params.Add("side", string(side)) params.Add("partner", c.partnerID) + params.Add("excludeContractMethodsWithoutFeeModel", "true") + params.Add("excludeDEXS", "AugustusRFQ") // This DEX causes issues when creating the transaction url := pricesURL response, err := c.httpClient.DoGetRequest(ctx, url, params)