From c533d1ee0c6de8bdb72265d75e0d1b64e53b2f49 Mon Sep 17 00:00:00 2001 From: Bogdan Fazakas Date: Sun, 11 Apr 2021 02:13:43 +0300 Subject: [PATCH] get compute previous orders from subgraph util --- .../organisms/AssetActions/Compute/index.tsx | 10 +++- .../organisms/AssetActions/Consume.tsx | 1 + src/utils/aquarius.ts | 7 +-- src/utils/subgraph.ts | 58 ++++++++++++++++--- 4 files changed, 62 insertions(+), 14 deletions(-) diff --git a/src/components/organisms/AssetActions/Compute/index.tsx b/src/components/organisms/AssetActions/Compute/index.tsx index 83a442ed3..3036fcdf6 100644 --- a/src/components/organisms/AssetActions/Compute/index.tsx +++ b/src/components/organisms/AssetActions/Compute/index.tsx @@ -38,6 +38,7 @@ import { gql, useQuery } from '@apollo/client' import { FrePrice } from '../../../../@types/apollo/FrePrice' import { PoolPrice } from '../../../../@types/apollo/PoolPrice' import { secondsToString } from '../../../../utils/metadata' +import { getPreviousOrders } from '../../../../utils/subgraph' const SuccessAction = () => (