Skip to content

Commit 0e36b89

Browse files
Add todo for better XMR management
1 parent b3badc7 commit 0e36b89

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

swap/src/asb/event_loop.rs

+4
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,10 @@ where
481481

482482
// From our full balance we need to subtract any Monero that is 'reserved' for ongoing swaps
483483
// (where the Bitcoin has been (or is being) locked but we haven't sent the Monero yet).
484+
//
485+
// TODO: Better manage monero funds. Currently we store all Monero in one UTXO, then the change
486+
// address is blocked for 10 blocks before we can use it again.
487+
// We should distribute the monero funds into multiple UTXOs, to avoid blocking large amounts of the total balance.
484488

485489
let reserved: Amount = self
486490
.db

0 commit comments

Comments
 (0)