diff options
| author | Adam Soltys <[email protected]> | 2026-07-02 08:59:31 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-07-02 08:59:31 -0700 |
| commit | 8029e4bd43cc425d31f50286d7ae4e94b4206ace (patch) | |
| tree | c80b374c9e312912f5b5ac7bbe7b5615cfd5e789 /src | |
| parent | 6d649f9bdd0582520e23dff4b5a967f0a125857e (diff) | |
| download | coinosv3-8029e4bd43cc425d31f50286d7ae4e94b4206ace.tar.gz coinosv3-8029e4bd43cc425d31f50286d7ae4e94b4206ace.zip | |
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) <[email protected]>
Claude-Session: https://claude.ai/code/session_01RtuRuzDQ6ffngL5wFw4f9v
Diffstat (limited to 'src')
| -rw-r--r-- | src/api.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 {} } |
