fix(wallet)_: exclude paraswap providers not supporting partner fees (#5573)

This commit is contained in:
dlipicar 2024-07-24 17:29:54 -03:00 committed by GitHub
parent 5b36cf8267
commit 0456dcef8b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -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)