xmr-btc-swap/swap
bors[bot] cb7a7f58b2
Merge #1086
1086: fix btc for xmr calculation error r=delta1 a=delta1

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

Co-authored-by: Byron Hambly <bhambly@blockstream.com>
2022-08-03 11:57:08 +00:00
..
migrations Add sqlite database implementation 2021-09-30 18:59:12 +10:00
proptest-regressions/bitcoin Add proptest for max_giveable and signing PSBT 2021-08-12 18:42:00 +10:00
src Merge #1086 2022-08-03 11:57:08 +00:00
tests Implement Identify protocol to make network and version of ASB available to peers 2022-04-19 19:48:41 +02:00
build.rs Provide a commit-specific version output 2021-07-07 17:55:13 +10:00
Cargo.toml Bump uuid from 1.0.0 to 1.1.2 2022-07-28 16:03:36 +00:00
sqlite_dev_setup.sh Add sqlite database implementation 2021-09-30 18:59:12 +10:00
sqlx-data.json Add sqlite database implementation 2021-09-30 18:59:12 +10:00