Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
fix(synthetix): Use synth asset's logo instead of underlying (#1793)
Browse files Browse the repository at this point in the history
  • Loading branch information
wpoulin committed Nov 25, 2022
1 parent 582de25 commit 5979b3c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/apps/synthetix/common/synthetix.synth.token-fetcher.ts
Expand Up @@ -2,7 +2,7 @@ import { Inject, Injectable } from '@nestjs/common';
import { ethers } from 'ethers';

import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface';
import { getTokenImg } from '~app-toolkit/helpers/presentation/image.present';
import { getAppAssetImage } from '~app-toolkit/helpers/presentation/image.present';
import { AppTokenTemplatePositionFetcher } from '~position/template/app-token.template.position-fetcher';
import {
GetAddressesParams,
Expand All @@ -14,6 +14,7 @@ import {
} from '~position/template/app-token.template.types';

import { SynthetixContractFactory, SynthetixSynthToken } from '../contracts';
import { SYNTHETIX_DEFINITION } from '../synthetix.definition';

type SynthetixSynthDataProps = DefaultAppTokenDataProps & {
exchangeable: boolean;
Expand Down Expand Up @@ -123,6 +124,6 @@ export abstract class SynthetixSynthTokenFetcher extends AppTokenTemplatePositio
}

async getImages({ appToken }: GetDisplayPropsParams<SynthetixSynthToken>) {
return [getTokenImg(appToken.address, this.network)];
return [getAppAssetImage(SYNTHETIX_DEFINITION.id, appToken.symbol)];
}
}

0 comments on commit 5979b3c

Please sign in to comment.