Add skipValidation flag for GetPriceQuote call for brave wallet to ignore allowance validation on swap exchange proxy side

This commit is contained in:
Serg
2022-01-19 15:08:47 -05:00
parent 7644bae304
commit 2e49f1097e
@@ -172,6 +172,10 @@ GURL SwapService::GetPriceQuoteURL(mojom::SwapParamsPtr swap_params,
: base_url_for_test_.spec().c_str());
GURL url(spec);
url = AppendSwapParams(url, *swap_params, chain_id);
// That flag prevents an allowance validation on a swap exchange proxy side.
// We do in clients allowance validation.
url = net::AppendQueryParameter(url, "skipValidation", "true");
return url;
}