Skip to content

Commit

Permalink
pluto fix apr
Browse files Browse the repository at this point in the history
  • Loading branch information
opptylabs committed Feb 10, 2025
1 parent 84cd7c2 commit 84764da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/plugins/src/plugins/pluto/earnFetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const executor: FetcherExecutor = async (owner: string, cache: Cache) => {
name: `Earn`,
});

const apy = Number(vault.apy.ema7d / 1e3);
const apy = Number(vault.apy.ema7d / 1e5);
element.addSuppliedYield([{ apy, apr: apyToApr(apy) }]);

const earnUnit = new BigNumber(acc.unit).dividedBy(10 ** 8); // Convert BigNumber to JS number (losing precision)
Expand Down
4 changes: 2 additions & 2 deletions packages/plugins/src/plugins/pluto/leverageFetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const executor: FetcherExecutor = async (owner: string, cache: Cache) => {
const index = vault.index / 1e12;
const amount = unit * index;

const apy = Number(vault.apy.ema7d / 1e3);
const apy = Number(vault.apy.ema7d / 1e5);
element.addSuppliedYield([
{
apy,
Expand All @@ -63,7 +63,7 @@ const executor: FetcherExecutor = async (owner: string, cache: Cache) => {
alreadyShifted: true,
});

const borrowingApy = Number(vault.borrowingApy.ema7d / 1e3);
const borrowingApy = Number(vault.borrowingApy.ema7d / 1e5);
element.addBorrowedYield([
{
apy: borrowingApy,
Expand Down

0 comments on commit 84764da

Please sign in to comment.