From 4afe7d6d1eff585843459ae401893f714b697814 Mon Sep 17 00:00:00 2001 From: GrandSchtroumpf Date: Wed, 31 Jan 2024 10:45:04 +0100 Subject: [PATCH] fix(carbon-defi) use NotImplementedException --- .../carbon-defi.strategy.contract-position-fetcher.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/apps/carbon-defi/ethereum/carbon-defi.strategy.contract-position-fetcher.ts b/src/apps/carbon-defi/ethereum/carbon-defi.strategy.contract-position-fetcher.ts index fd5195ae8..2a51ca48c 100644 --- a/src/apps/carbon-defi/ethereum/carbon-defi.strategy.contract-position-fetcher.ts +++ b/src/apps/carbon-defi/ethereum/carbon-defi.strategy.contract-position-fetcher.ts @@ -1,5 +1,4 @@ -import { Inject } from '@nestjs/common'; -import { BigNumberish } from 'ethers'; +import { Inject, NotImplementedException } from '@nestjs/common'; import { sumBy } from 'lodash'; import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; @@ -155,7 +154,7 @@ export class EthereumCarbonDefiStrategyContractPositionFetcher extends CustomCon } // Unused since CustomContractPositionTemplatePositionFetcher forces Promise output while it can be sync - async getTokenBalancesPerPosition(): Promise { - return []; + getTokenBalancesPerPosition(): never { + throw new NotImplementedException(); } }