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

Commit

Permalink
fix(ease): fix correct apy and images of uTokens (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikpre authored May 25, 2022
1 parent 7ed2240 commit ce08a3b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/apps/ease/ethereum/ease.rca.token-fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import _ from 'lodash';

import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface';
import { Register } from '~app-toolkit/decorators';
import { getAppImg } from '~app-toolkit/helpers/presentation/image.present';
import { YEARN_DEFINITION } from '~apps/yearn/yearn.definition';
import { PositionFetcher } from '~position/position-fetcher.interface';
import { AppTokenPosition } from '~position/position.interface';
Expand Down Expand Up @@ -61,8 +60,7 @@ export class EthereumEaseRcaTokenFetcher implements PositionFetcher<AppTokenPosi
.balanceOf(address)
.then(v => Number(v) / 10 ** underlyingToken.decimals),
resolvePricePerShare: () => 1,
resolveApy: async ({ vaultAddress }) => await (rcaAddressToDetails[vaultAddress]?.token['apy'] ?? 0),
resolveImages: () => [getAppImg(appId)],
resolveApy: async ({ vaultAddress }) => (await (rcaAddressToDetails[vaultAddress]?.token['apy'] ?? 0)) / 100,
});
}
}

0 comments on commit ce08a3b

Please sign in to comment.