Skip to content

Commit

Permalink
flip incorrect sign
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-d committed Jun 21, 2024
1 parent 1c28bb5 commit 8a5bf50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/lib/amounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const getTokenAmountFromFormattedString = (amount: string, decimals: number): bi
* @returns the scaled price amount in USD
*/
const getFormattedPriceFromAmount = (amount: string, price: string | bigint, decimalsFusdc: number): number =>
Number(amount) * (Number(price)) * 10 ** decimalsFusdc
Number(amount) * Number(price) / 10 ** decimalsFusdc

// convert a tick to a formatted price, scaled by decimals
const getFormattedPriceFromTick = (tick: number, decimals: number) => {
Expand Down

0 comments on commit 8a5bf50

Please sign in to comment.