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

Commit

Permalink
fix(pool-together-v5): decimals bug post-linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ncookiez committed Oct 24, 2023
1 parent 122d304 commit 6c21bcc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export abstract class PoolTogetherV5PrizeVaultTokenFetcher extends AppTokenTempl
}

async getPricePerShare({ contract, appToken }: GetPricePerShareParams<Erc4626>) {
const ratioRaw = await contract.convertToAssets(BigNumber.from((1e18).toString()));
const ratioRaw = await contract.convertToAssets(BigNumber.from((10 ** appToken.decimals).toString()));
const ratio = Number(ratioRaw) / 10 ** appToken.decimals;
return [ratio];
}
Expand Down

0 comments on commit 6c21bcc

Please sign in to comment.