From 8029e4bd43cc425d31f50286d7ae4e94b4206ace Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 2 Jul 2026 08:59:31 -0700 Subject: Add coinos (swap.coinos.io) mainnet Boltz preset Production Boltz service now live on cs at swap.coinos.io (dedicated mainnet CLN, chain = coinos production bc on desk over Tailscale). Add it as a selectable provider. Mainnet default stays on public Boltz Exchange until our node has channel liquidity. Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_01RtuRuzDQ6ffngL5wFw4f9v --- src/api.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/api.js') diff --git a/src/api.js b/src/api.js index 64ff331..a170584 100644 --- a/src/api.js +++ b/src/api.js @@ -146,6 +146,7 @@ function nk(base, net) { return net === 'mainnet' ? base : `${base}:${net}`; } export const BOLTZ_PRESETS = [ { id: 'local', label: 'Local (regtest)', api: '/boltz', ws: 'ws://localhost:9004/v2/ws' }, { id: 'staging', label: 'coinos staging (mutinynet)', api: 'https://swap-staging.coinos.io', ws: 'wss://swap-staging.coinos.io/v2/ws' }, + { id: 'coinos', label: 'coinos (swap.coinos.io)', api: 'https://swap.coinos.io', ws: 'wss://swap.coinos.io/v2/ws' }, { id: 'boltz', label: 'Boltz Exchange', api: 'https://api.boltz.exchange' }, { id: 'middleway', label: 'Middle Way', api: 'https://api.middle-way.space' }, { id: 'zeus', label: 'ZEUS Swaps', api: 'https://swaps.zeuslsp.com/api' }, @@ -165,6 +166,8 @@ export function setBoltzCustom({ api, ws }) { export function getBoltzProviderId() { try { const id = localStorage.getItem(BOLTZ_PROVIDER_KEY); if (id && BOLTZ_PRESETS.some((p) => p.id === id)) return id; } catch {} const net = getNetwork(); // default per network + // Mainnet defaults to public Boltz Exchange until our own swap.coinos.io + // node ('coinos') has channel liquidity; flip this to 'coinos' once funded. return net === 'regtest' ? 'local' : net === 'mutinynet' ? 'staging' : 'boltz'; } export function setBoltzProviderId(id) { try { localStorage.setItem(BOLTZ_PROVIDER_KEY, id); } catch {} } -- cgit v1.2.3