aboutsummaryrefslogtreecommitdiffstats
path: root/dev.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-06-28 19:14:30 -0700
committerAdam Soltys <[email protected]>2026-06-28 19:14:30 -0700
commit93631253030839509551d7e1e6a995ed60e31b96 (patch)
treefa02596727bf3fb750cb5a88cbd04f63d54b19bb /dev.js
parent17f203ba3603c3f1ba9c8d14c53d9f10cccf3c81 (diff)
downloadcoinosv3-93631253030839509551d7e1e6a995ed60e31b96.tar.gz
coinosv3-93631253030839509551d7e1e6a995ed60e31b96.zip
Swaps: bound reverse amount by the provider's published limits, not a hardcoded 50k
doReverse rejected anything under a hardcoded 50,000 sats — which happens to be the regtest provider's minimum, but mainnet boltz's real minimum is 25,000 (and providers/networks differ), so valid 25k-50k mainnet swaps were refused and the max was unchecked client-side. Add SwapManager.reverseLimits() (GET /v2/swap/reverse, cached per API) and use it in the swap UI: show the real min/max range under the amount field and validate against it. Reset the cached limits when the network or provider changes. Verified: regtest min/max 50,000/40,294,967; mainnet 25,000/25,000,000. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'dev.js')
0 files changed, 0 insertions, 0 deletions