diff --git a/src/apps/dinero/assets/0x04c154b66cb340f3ae24111cc767e0184ed00cc6.png b/src/apps/dinero/assets/0x04c154b66cb340f3ae24111cc767e0184ed00cc6.png new file mode 100644 index 000000000..f2008b44e Binary files /dev/null and b/src/apps/dinero/assets/0x04c154b66cb340f3ae24111cc767e0184ed00cc6.png differ diff --git a/src/apps/dinero/assets/0x9ba021b0a9b958b5e75ce9f6dff97c7ee52cb3e6.png b/src/apps/dinero/assets/0x9ba021b0a9b958b5e75ce9f6dff97c7ee52cb3e6.png new file mode 100644 index 000000000..65e8c71fe Binary files /dev/null and b/src/apps/dinero/assets/0x9ba021b0a9b958b5e75ce9f6dff97c7ee52cb3e6.png differ diff --git a/src/apps/dinero/ethereum/dinero.apxeth.token-fetcher.ts b/src/apps/dinero/ethereum/dinero.apxeth.token-fetcher.ts index 1bb073063..398387247 100644 --- a/src/apps/dinero/ethereum/dinero.apxeth.token-fetcher.ts +++ b/src/apps/dinero/ethereum/dinero.apxeth.token-fetcher.ts @@ -2,6 +2,7 @@ import { Inject } from '@nestjs/common'; import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; +import { getTokenImg } from '~app-toolkit/helpers/presentation/image.present'; import { AppTokenTemplatePositionFetcher } from '~position/template/app-token.template.position-fetcher'; import { GetUnderlyingTokensParams, GetPricePerShareParams } from '~position/template/app-token.template.types'; @@ -29,6 +30,10 @@ export class EthereumDineroApxethTokenFetcher extends AppTokenTemplatePositionFe return ['0x9ba021b0a9b958b5e75ce9f6dff97c7ee52cb3e6']; } + async getImages({ appToken }) { + return [getTokenImg(appToken.address, this.network)]; + } + async getUnderlyingTokenDefinitions({ contract }: GetUnderlyingTokensParams) { return [{ address: await contract.read.asset(), network: this.network }]; } diff --git a/src/apps/dinero/ethereum/dinero.pxeth.token-fetcher.ts b/src/apps/dinero/ethereum/dinero.pxeth.token-fetcher.ts index 7f2597ea6..40c9b40dd 100644 --- a/src/apps/dinero/ethereum/dinero.pxeth.token-fetcher.ts +++ b/src/apps/dinero/ethereum/dinero.pxeth.token-fetcher.ts @@ -2,6 +2,7 @@ import { Inject } from '@nestjs/common'; import { APP_TOOLKIT, IAppToolkit } from '~app-toolkit/app-toolkit.interface'; import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; +import { getTokenImg } from '~app-toolkit/helpers/presentation/image.present'; import { AppTokenTemplatePositionFetcher } from '~position/template/app-token.template.position-fetcher'; import { DineroViemContractFactory } from '../contracts'; @@ -26,6 +27,10 @@ export class EthereumDineroPirexEthTokenFetcher extends AppTokenTemplatePosition return ['0x04c154b66cb340f3ae24111cc767e0184ed00cc6']; } + async getImages({ appToken }) { + return [getTokenImg(appToken.address, this.network)]; + } + async getUnderlyingTokenDefinitions() { return [{ address: '0x0000000000000000000000000000000000000000', network: this.network }]; }