Add skipValidation flag for GetPriceQuote call for brave wallet to ignore allowance validation on swap exchange proxy side
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user