Skip to content

Commit

Permalink
Merge pull request #2 from beefyfinance/fix-timeline-prices
Browse files Browse the repository at this point in the history
Fix prices decimals on timeline
  • Loading branch information
prevostc authored May 14, 2024
2 parents 9d5c509 + a8aee50 commit df6499b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/routes/v1/investor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,8 @@ const getTimeline = async (investor_address: string) => {
const shareToken = position.vault.sharesToken;
const token0 = position.vault.underlyingToken0;
const token1 = position.vault.underlyingToken1;
const interactionToken0ToNative = interpretAsDecimal(
interaction.token0ToNativePrice,
token0.decimals
);
const interactionToken1ToNative = interpretAsDecimal(
interaction.token1ToNativePrice,
token1.decimals
);
const interactionToken0ToNative = interpretAsDecimal(interaction.token0ToNativePrice, 18);
const interactionToken1ToNative = interpretAsDecimal(interaction.token1ToNativePrice, 18);
const interactionNativeToUsd = interpretAsDecimal(interaction.nativeToUSDPrice, 18);
const share_balance = interpretAsDecimal(interaction.sharesBalance, shareToken.decimals);
const underlyingBalance0 = interpretAsDecimal(
Expand Down

0 comments on commit df6499b

Please sign in to comment.