-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve usability of refund #1571
base: master
Are you sure you want to change the base?
Conversation
I'm not sure about |
Please work on an accompanying test, you could use this one as a starting point |
db.insert_latest_state(swap_id, state.clone().into()) | ||
.await?; | ||
|
||
println!("{}", refund_error); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please always use tracing for printing logs and add a message for some context.
sorry, can you unassign me? i'm a bit busy and i'm not sure if i can make this. |
Sure thing. I'll leave this open as a starting point for someone else. |
User can try to refund even if it is no longer possible. We will show plain text error rather than ugly JSON error, see #674 for more info.
Fixes #683