[bisq-network/bisq] Price rounding with fixed price (#3871)

dgyg notifications at github.com
Tue Jan 7 20:15:44 UTC 2020


* The price for an offer is fixed e.g. 6452.3042
* The maximum amount for this offer has been chosen: 0.05
* The fiat price results in having decimal places e.g. 6452.3042 * 0.05 = 322.61521
* The fiat price is rounded up 323.00
* The bitcoin amount is adjusted 323.00 / 6452.3042 = 0.050059636
* The bitcoin amount is now higher than the maximum amount to be traded
* The validation fails and the offer can not be taken

![bisq](https://user-images.githubusercontent.com/7886722/71925695-859a8b80-3189-11ea-9f3b-ed9c14b692f0.png)

**Workaround**: Adjust the amount to buy manually 
**Improvement**: The final fiat amount should be rounded down in this case e.g. 322.00

#### Version

<!-- commit id or version number -->

### Steps to reproduce

<!--if you can reliably reproduce the bug, list the steps here  -->

### Expected behaviour

<!--description of the expected behavior -->

### Actual behaviour

<!-- explain what happened instead of the expected behaviour -->

### Screenshots

<!--Screenshots if gui related, drag and drop to add to the issue -->

#### Device or machine

<!-- device/machine used, operating system -->



#### Additional info

<!-- Additional information useful for debugging (e.g. logs) -->


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/issues/3871
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20200107/7feb1b93/attachment.html>


More information about the bisq-github mailing list