-
Notifications
You must be signed in to change notification settings - Fork 9
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
asb: subtract reserved monero from quote volume #245
base: master
Are you sure you want to change the base?
Conversation
})?; | ||
// From our full balance we need to subtract any Monero that is 'reserved' for ongoing swaps | ||
// (where the Bitcoin has been (or is being) locked but we haven't sent the Monero yet). | ||
|
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.
Consider adding a TODO comment that this is "naive" to some degree due to the 20min lock of outputs / utxo issue
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.
Nitpick
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.
feedback
Can you also print how much is missing, and recommend refilling the wallet? |
This PR checks for ongoing swaps and subtracts the Monero needed for them from new quotes.