Skip to content
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

Swaps fail on the ASB side with "not enough money" and don't necessarily continue #1564

Open
guardian-beach opened this issue Feb 24, 2024 · 0 comments

Comments

@guardian-beach
Copy link

Describe the bug
The swap backend asb starts a swap, and appears to discover midway through that it does not have enough money to complete the swap, probably due to price fluctuations.

Instead of refunding or cancelling the swap, asb simply waits. In many cases, only when asb is restarted does it start showing messages about cancelling or refunding.

Lost/trapped Funds
Unclear. Taker funds may be stuck until asb restarts, or a timelock expires.

Debug logs

{"timestamp":"2024-02-22T03:08:22.410444973Z","level":"INFO","fields":{"message":"Advancing state","state":"btc is locked","rate":"0.0024472 BTC"},"span":{"id":"f00-b4r","name":"swap"},"spans":[{"id":"f00-b4r","name":"swap"}]}
{"timestamp":"2024-02-22T03:08:23.147506204Z","level":"ERROR","fields":{"error":"JSON-RPC request failed with code -17: not enough money"},"span":{"id":"f00-b4r","name":"swap"},"spans":[{"id":"f00-b4r","name":"swap"}]}
{"timestamp":"2024-02-22T03:08:23.147607349Z","level":"ERROR","fields":{"message":"Swap failed: JSON-RPC request failed with code -17: not enough money: JSON-RPC request failed with code -17: not enough money","swap_id":"f00-b4r"}}

Platform (please complete the following information):

  • ASB
  • Software Version 0.12.3
  • Operating System: Debian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant