Skip to content

Commit

Permalink
Fix classic underlyingToNativePrice
Browse files Browse the repository at this point in the history
  • Loading branch information
prevostc committed Jul 20, 2024
1 parent d8f9cc8 commit ea0eba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classic/utils/classic-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export function fetchClassicData(classic: Classic): ClassicData {
const clmManagerToken = getToken(clm.managerToken)

underlyingToNativePrice = totalNativeAmountInClm
.times(WNATIVE_DECIMALS)
.times(changeValueEncoding(ONE_BI, ZERO_BI, WNATIVE_DECIMALS))
.div(changeValueEncoding(clmManagerTotalSupply, clmManagerToken.decimals, WNATIVE_DECIMALS))
}

Expand Down

0 comments on commit ea0eba3

Please sign in to comment.