From 26080d64ab427db782b3a50a62855590f3ed9400 Mon Sep 17 00:00:00 2001 From: Karan Shahani Date: Wed, 20 Jul 2022 09:02:10 -0400 Subject: [PATCH] fix(rari-fuse): Remove market in label, add Aave V2 as a dependency --- .../rari-fuse/ethereum/rari-fuse.supply.token-fetcher.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/apps/rari-fuse/ethereum/rari-fuse.supply.token-fetcher.ts b/src/apps/rari-fuse/ethereum/rari-fuse.supply.token-fetcher.ts index affedeb5e..f80b9691b 100644 --- a/src/apps/rari-fuse/ethereum/rari-fuse.supply.token-fetcher.ts +++ b/src/apps/rari-fuse/ethereum/rari-fuse.supply.token-fetcher.ts @@ -2,6 +2,8 @@ import { Inject } from '@nestjs/common'; import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; import { Register } from '~app-toolkit/decorators'; +import { getLabelFromToken } from '~app-toolkit/helpers/presentation/image.present'; +import { AAVE_V2_DEFINITION } from '~apps/aave-v2'; import { ARRAKIS_DEFINITION } from '~apps/arrakis/arrakis.definition'; import { CompoundContractFactory } from '~apps/compound'; import { CompoundSupplyTokenHelper } from '~apps/compound/helper/compound.supply.token-helper'; @@ -37,6 +39,7 @@ export class EthereumRariFuseSupplyTokenFetcher implements PositionFetcher multicall.wrap(contract).underlying(), getExchangeRateMantissa: ({ underlyingTokenDecimals, tokenDecimals }) => 18 + underlyingTokenDecimals - tokenDecimals, - getDisplayLabel: async ({ underlyingToken }) => `${underlyingToken.symbol} in ${pool.name}`, + getDisplayLabel: async ({ underlyingToken }) => getLabelFromToken(underlyingToken), }); }), );