xmr-btc-swap/swap
Daniel Karzel ea76ae5821
Return proper error to CLI for all expected scenarios
When a CLI requests a spot price have some errors that are expected, where we can provide a proper error message for the CLI:
- Balance of ASB too low
- Buy amount sent by CLI exceeds maximum buy amount accepted by ASB
- ASB is running in maintenance mode and does not accept incoming swap requests

All of these errors returns a proper error to the CLI and prints a warning in the ASB logs.
Any other unexpected error will result in closing the channel with the CLI and printing an error in the ASB logs.
2021-05-07 14:52:51 +10:00
..
src Return proper error to CLI for all expected scenarios 2021-05-07 14:52:51 +10:00
tests Add resume-only mode for the ASB 2021-05-07 14:52:51 +10:00
Cargo.toml Added some proptests. 2021-05-07 10:24:41 +10:00