mirror of
https://github.com/Routstr/routstrd.git
synced 2026-10-06 04:38:23 +00:00
fix(wallet): fund the default mint on auto-refill (#77)
This commit is contained in:
@@ -94,11 +94,9 @@ export function startAutoRefillLoop(
|
||||
`[auto-refill] Balance ${totalBalance} sats < threshold ${config.threshold}. Refilling ${config.amount} sats...`,
|
||||
);
|
||||
|
||||
// Get active mint
|
||||
const mints = await cocod.listMints();
|
||||
const mintUrl = mints[0];
|
||||
const mintUrl = await cocod.getDefaultMint();
|
||||
if (!mintUrl) {
|
||||
logger.error("[auto-refill] No active mint configured");
|
||||
logger.error("[auto-refill] No default mint configured");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user