mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-09-29 21:06:21 +00:00
86d57453cf
The calculation overflow fix in #1068 did not account for XMR < 1 which resulted in truncation when dividing by the PICO_OFFSET. This commit uses `Decimal` to do the calculation at fixed precision and adds a number of test values to verify the calculation. Closes #1084 |
||
---|---|---|
.. | ||
migrations | ||
proptest-regressions/bitcoin | ||
src | ||
tests | ||
build.rs | ||
Cargo.toml | ||
sqlite_dev_setup.sh | ||
sqlx-data.json |