From 558e90585710e78136b0c6cd780f6a74399acef1 Mon Sep 17 00:00:00 2001 From: Aleksandr Kraiz Date: Fri, 11 Aug 2023 17:12:54 +0400 Subject: [PATCH] Remove prices endpoint --- package.json | 2 +- src/services/BlockchainService/index.ts | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/package.json b/package.json index feab0ee..0fd34f8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.19.49", + "version": "0.19.50", "description": "Orion Protocol SDK", "main": "./lib/index.cjs", "module": "./lib/index.js", diff --git a/src/services/BlockchainService/index.ts b/src/services/BlockchainService/index.ts index 15f88a0..22238bf 100644 --- a/src/services/BlockchainService/index.ts +++ b/src/services/BlockchainService/index.ts @@ -84,7 +84,6 @@ class BlockchainService { this.getUserEarned = this.getUserEarned.bind(this); this.getPoolsV3Info = this.getPoolsV3Info.bind(this); this.getHistory = this.getHistory.bind(this); - this.getPrices = this.getPrices.bind(this); this.getPricesWithQuoteAsset = this.getPricesWithQuoteAsset.bind(this); this.getTokensFee = this.getTokensFee.bind(this); this.getGasPriceWei = this.getGasPriceWei.bind(this); @@ -216,12 +215,6 @@ class BlockchainService { { headers: this.basicAuthHeaders } ); - getPrices = () => fetchWithValidation( - `${this.apiUrl}/api/prices`, - z.record(z.string()).transform(makePartial), - { headers: this.basicAuthHeaders } - ); - getPricesWithQuoteAsset = () => fetchWithValidation( `${this.apiUrl}/api/quotedPrices`, pricesWithQuoteAssetSchema,