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

Commit

Permalink
feat(dinero): add pxeth and apxeth logos (#3151)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xhafa authored Dec 14, 2023
1 parent 8191281 commit 61fd531
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/apps/dinero/ethereum/dinero.apxeth.token-fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -29,6 +30,10 @@ export class EthereumDineroApxethTokenFetcher extends AppTokenTemplatePositionFe
return ['0x9ba021b0a9b958b5e75ce9f6dff97c7ee52cb3e6'];
}

async getImages({ appToken }) {
return [getTokenImg(appToken.address, this.network)];
}

async getUnderlyingTokenDefinitions({ contract }: GetUnderlyingTokensParams<DineroApxeth>) {
return [{ address: await contract.read.asset(), network: this.network }];
}
Expand Down
5 changes: 5 additions & 0 deletions src/apps/dinero/ethereum/dinero.pxeth.token-fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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 }];
}
Expand Down

0 comments on commit 61fd531

Please sign in to comment.