Skip to content

Commit

Permalink
fix: [Sale Widget] Price conversion calculation (#1814)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhesgodi committed May 22, 2024
1 parent 9ea5c53 commit 14f3c4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('getPricingBySymbol', () => {
expect(getPricingBySymbol('tIMX', mockPrices, mockConversions)).toEqual({
currency: 'tIMX',
type: 'crypto',
amount: mockPrices.USDC.amount * mockConversions.get('imx')!,
amount: 0.9756097560975611,
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const getPricingBySymbol = (
return {
currency: symbol,
type: prices.USDC.type,
amount: prices.USDC.amount * conversion,
amount: prices.USDC.amount / conversion,
};
}

Expand Down

0 comments on commit 14f3c4a

Please sign in to comment.