You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With #139 merged, we now have utilities to return the correct price exponent to the frontend:
calculateDisplayPrice() -> takes a base/base price and converts it to a display/display price. EDIT: Should be moved as frontend responsibility. Need to likely pass price w/ Metadata and create a type to serialize/deserialize.
For other things that are integers (pricing requires decimals), we can use toValueView() to pass that on to the frontend where ValueViewComponent handles the display. Note, this requires serialization to handle passing it over the wire to the frontend, see SummaryDataResponse and SummaryDataResponseJson classes as an example.
The task is to update the pricing in the candles & route book.
The text was updated successfully, but these errors were encountered:
With #139 merged, we now have utilities to return the correct price exponent to the frontend:
calculateDisplayPrice()
-> takes a base/base price and converts it to a display/display price. EDIT: Should be moved as frontend responsibility. Need to likely pass price w/ Metadata and create a type to serialize/deserialize.toValueView()
to pass that on to the frontend where ValueViewComponent handles the display. Note, this requires serialization to handle passing it over the wire to the frontend, seeSummaryDataResponse
andSummaryDataResponseJson
classes as an example.The task is to update the pricing in the candles & route book.
The text was updated successfully, but these errors were encountered: