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

asb: subtract reserved monero from quote volume #245

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Einliterflasche
Copy link

This PR checks for ongoing swaps and subtracts the Monero needed for them from new quotes.

})?;
// 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).

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

Copy link

@binarybaron binarybaron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick

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

Successfully merging this pull request may close these issues.

2 participants