mirror of
https://github.com/apotdevin/thunderhub.git
synced 2026-08-13 12:33:08 +02:00
No description
* feat: circular rebalance for TA channel sat reserve Before executing a sell trade, check whether the TA channel's local sat balance is below its reserve requirement. If so, run a circular rebalance: pay a sats invoice to ourselves routing out through the BTC channel and back in through all TA channels that are below the reserve requirement, topping up the sat balance with a 50% buffer above the bare deficit so the asset HTLC anchor can proceed. * chore: rename id to accountId * chore: improve variable and parameter naming in trade resolver - Rename effectiveReserve → minRequiredBalance (it's the floor balance, not a modified reserve) - Rename taChannelPeerAlias → taChannelPartnerScidAlias throughout, and peerAlias → partnerScidAlias on the intermediate return object, to match the source field partner_scid_alias and make the SCID nature explicit - Separate empty-channels path from fetch-error path in findTaChannelsForAsset so the warning only fires on actual errors * chore: changes --------- Co-authored-by: Anthony Potdevin <potdevin.anthony@gmail.com> |
||
|---|---|---|
| .github | ||
| .husky | ||
| .vscode | ||
| docker/litd | ||
| docs | ||
| drizzle | ||
| patches | ||
| scripts | ||
| src | ||
| .dockerignore | ||
| .env | ||
| .gitignore | ||
| .nvmrc | ||
| .prettierrc | ||
| .release-please-manifest.json | ||
| AGENTS.md | ||
| CHANGELOG.md | ||
| CLAUDE.md | ||
| codegen.yml | ||
| components.json | ||
| docker-compose.yaml | ||
| Dockerfile | ||
| drizzle.config.ts | ||
| eslint.config.js | ||
| flake.lock | ||
| flake.nix | ||
| LICENSE | ||
| nest-cli.json | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| release-please-config.json | ||
| schema.gql | ||
| tsconfig.build.json | ||
| tsconfig.json | ||