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

Commit

Permalink
fix(notional-finance-v3): Fix pricePerShare (#3014)
Browse files Browse the repository at this point in the history
  • Loading branch information
wpoulin authored Nov 6, 2023
1 parent c6eabce commit 79ce17b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class ArbitrumNotionalFinanceV3PCashTokenFetcher extends AppTokenTemplate

async getPricePerShare({ appToken, contract }: GetPricePerShareParams<NotionalPCash>) {
const pricePerShareRaw = await contract.exchangeRate();
const pricePerShare = Number(pricePerShareRaw) / 10 ** 10 + appToken.tokens[0].decimals;
const pricePerShare = Number(pricePerShareRaw) / 10 ** (10 + appToken.tokens[0].decimals);

return [pricePerShare];
}
Expand Down

0 comments on commit 79ce17b

Please sign in to comment.