TODO Location
sixty_nuts/wallet.py:1588
Priority
🔴 High Priority - Core functionality for multi-mint operations
Current Code
async def rebalance_until_target(self, target_mint: str, total_needed: int) -> None:
"""Rebalance until the target mint has at least the total needed."""
raise NotImplementedError("Not implemented") # TODO: Implement
What needs to be done
- Implement automatic rebalancing between mints to ensure a target mint has sufficient balance
- Transfer proofs from other mints to the target mint until it has at least
total_needed amount
- Handle Lightning payment infrastructure requirements for cross-mint transfers
- Optimize transfers to minimize fees
Implementation approach
- Check current balance at target mint
- Calculate deficit amount
- Select source mints with available balance
- Use
transfer_balance_to_mint() to move funds
- Handle partial transfers if needed
TODO Location
sixty_nuts/wallet.py:1588Priority
🔴 High Priority - Core functionality for multi-mint operations
Current Code
What needs to be done
total_neededamountImplementation approach
transfer_balance_to_mint()to move funds