From d62131e649ae28fdac9744c48708ef57eb8aee48 Mon Sep 17 00:00:00 2001 From: M Date: Tue, 9 Aug 2022 17:51:52 +0100 Subject: [PATCH] Remove using of api key for sideshift. --- lib/exchange/sideshift/sideshift_exchange_provider.dart | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/exchange/sideshift/sideshift_exchange_provider.dart b/lib/exchange/sideshift/sideshift_exchange_provider.dart index b828c2f6f..c512b6322 100644 --- a/lib/exchange/sideshift/sideshift_exchange_provider.dart +++ b/lib/exchange/sideshift/sideshift_exchange_provider.dart @@ -25,14 +25,12 @@ class SideShiftExchangeProvider extends ExchangeProvider { .expand((i) => i) .toList()); - static const apiKey = secrets.sideShiftApiKey; static const affiliateId = secrets.sideShiftAffiliateId; static const apiBaseUrl = 'https://sideshift.ai/api'; static const rangePath = '/v1/pairs'; static const orderPath = '/v1/orders'; static const quotePath = '/v1/quotes'; static const permissionPath = '/v1/permissions'; - static const apiHeaderKey = 'x-sideshift-secret'; @override ExchangeProviderDescription get description => @@ -96,7 +94,7 @@ class SideShiftExchangeProvider extends ExchangeProvider { final _request = request as SideShiftRequest; final quoteId = await _createQuote(_request); final url = apiBaseUrl + orderPath; - final headers = {apiHeaderKey: apiKey, 'Content-Type': 'application/json'}; + final headers = {'Content-Type': 'application/json'}; final body = { 'type': 'fixed', 'quoteId': quoteId, @@ -137,7 +135,7 @@ class SideShiftExchangeProvider extends ExchangeProvider { Future _createQuote(SideShiftRequest request) async { final url = apiBaseUrl + quotePath; - final headers = {apiHeaderKey: apiKey, 'Content-Type': 'application/json'}; + final headers = {'Content-Type': 'application/json'}; final depositMethod = normalizeCryptoCurrency(request.depositMethod); final settleMethod = normalizeCryptoCurrency(request.settleMethod); final body = {