Skip to content

Commit

Permalink
lint2
Browse files Browse the repository at this point in the history
  • Loading branch information
DonDuala committed Aug 28, 2024
1 parent 62411f6 commit f5349a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/ts/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,8 @@ function toWrapperPlaceOrderParams(
// Converts token price to atom price since not always equal
// Ex. BONK/USDC = 0.00001854 USDC tokens/BONK tokens -> 0.0001854 USDC Atoms/BONK Atoms
const priceQuoteAtomsPerBaseAtoms =
wrapperPlaceOrderParamsExternal.price * (quoteAtomsPerToken / baseAtomsPerToken);
wrapperPlaceOrderParamsExternal.price *
(quoteAtomsPerToken / baseAtomsPerToken);
// TODO: Make a helper and test it for this logic.
const { priceMantissa, priceExponent } = toMantissaAndExponent(
priceQuoteAtomsPerBaseAtoms,
Expand Down

0 comments on commit f5349a8

Please sign in to comment.