SatoshiPortal / boltz-rust

Boltz client rust crate
https://docs.boltz.exchange
30 stars 16 forks source link

Fix the calculation of Boltz fees #31

Closed ok300 closed 3 months ago

ok300 commented 3 months ago

When calculating the Boltz service fees:

This is the case for both submarine and reverse submarine swaps.

This can be checked by manually entering values in https://boltz.exchange and observing the calculated Boltz fee:

Similar tests can be done with the reverse direction (normal submarine swaps).

Therefore, this PR:

i5hi commented 3 months ago

Hey @ok300 Thanks for the PR! Logic and code looks good.

It fails the linting tests. I'll take care of it for now. For successive PRs make sure you run rust fmt ;)