-
Notifications
You must be signed in to change notification settings - Fork 12
feat(asb): Take ongoing swaps into consideration when crafting quote #245
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
base: master
Are you sure you want to change the base?
Conversation
swap/src/asb/event_loop.rs
Outdated
})?; | ||
// 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? |
Building this branch on our public testnet asb. |
So far we are not taking the reserved volume into consideration in the They might risk the maker not locking the Monero but that'd only affect them negatively. |
…round basic Wallet functions, depends on monero#9464
This PR checks for ongoing swaps and subtracts the Monero needed for them from new quotes.