RequestNetwork / web-components

A collection of Web Components for quickly integrating Request Network into your app.
https://docs.request.network
1 stars 4 forks source link

Removed `toFixed(2)` in prepareRequest for creating an invoice #121

Closed aimensahnoun closed 4 weeks ago

aimensahnoun commented 4 weeks ago

Problem

We shouldn't be rounding with toFixed(2) when writing data from the user to the protocol.

Solution

We should round only when displaying long numbers.

History

https://github.com/RequestNetwork/web-components/pull/118#discussion_r1741884640