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

fix(ease): fix apy in vault stats #479

Merged
merged 23 commits into from
May 20, 2022
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
1d10c79
refactor(ease) fix linting
dominikpre May 20, 2022
bf6e8f5
Merge branch 'Zapper-fi:main' into ease-lint-fix
dominikpre May 20, 2022
d8b6472
Merge branch 'main' into ease-lint-fix
immasandwich May 20, 2022
e02620d
Merge branch 'Zapper-fi:main' into ease-lint-fix
dominikpre May 20, 2022
1264322
Merge branch 'Zapper-fi:main' into ease-lint-fix
dominikpre May 20, 2022
37be833
feat(ease) add ease logo
dominikpre May 20, 2022
37db364
Merge branch 'Zapper-fi:main' into ease-icon-image
dominikpre May 20, 2022
16f38f4
refactor(ease) rename and new description
dominikpre May 20, 2022
4fd657d
Merge branch 'ease-icon-image' of https://github.com/dominikpre/ease-…
dominikpre May 20, 2022
c0ba1a8
fix(ease): fix apy in stats about vault
dominikpre May 20, 2022
81fc3da
refactor(ease) fix linting
dominikpre May 20, 2022
4761024
feat(solace): Integrate solace finance (#457)
leonardishere May 20, 2022
c31e3cf
fix(solace): Adjust Solace implementation (#472)
immasandwich May 20, 2022
0e289bf
fix(solace): Remove dupe ERC20
immasandwich May 20, 2022
251bfb4
chore(main): release 0.33.0 (#465)
zapper-bot May 20, 2022
12f76fc
feat(ease) add ease logo
dominikpre May 20, 2022
1229f16
refactor(ease) rename and new description
dominikpre May 20, 2022
7819715
fix(solace): Add metatype to bond tokens
immasandwich May 20, 2022
51eda0b
chore(main): release 0.33.1 (#474)
zapper-bot May 20, 2022
58f11b0
fix(ease): fix apy in stats about vault
dominikpre May 20, 2022
9e4762c
Merge branch 'ease-fix-apy' of https://github.com/dominikpre/ease-zap…
dominikpre May 20, 2022
5779384
fix(ease): fix apy in vault stats
dominikpre May 20, 2022
56cec5b
refactor(ease): update changelog and version number
dominikpre May 20, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/apps/ease/ethereum/ease.rca.token-fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class EthereumEaseRcaTokenFetcher implements PositionFetcher<AppTokenPosi
constructor(
@Inject(APP_TOOLKIT) private readonly appToolkit: IAppToolkit,
@Inject(EaseContractFactory) private readonly easeContractFactory: EaseContractFactory,
) {}
) { }

async getPositions() {
const endpoint = 'https://app.ease.org/api/v1/vaults';
Expand Down Expand Up @@ -61,7 +61,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)) / 100,
resolveApy: async ({ vaultAddress }) => (await (rcaAddressToDetails[vaultAddress]?.token['apy'] ?? 0)),
resolveImages: () => [getAppImg(appId)],
});
}
Expand Down