You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Onchain sendAll payments are not accounting for fees #270
If they cannot support this, we should fetch the estimated fee and subtract from the wallet balance to get the proper amount. Note, if this fee differs from the fee used by Ibex, this may either fail or not sweep the entire balance.
Priority pass 2026-10-10: rank 4 of 13. OnChainPaymentSendAll still passes the full balance to IBEX (onchain-payment-send-all.ts, send-on-chain.ts) and there is no sendAll flag in the IBEX client, so send-max on-chain fails outright. Fix: estimate fee, subtract, send with a tolerance.
Submitted in PR #521. New helper Wallets.getSendAllOnChainAmount asks IBEX for the on-chain fee for the payout address and sends balance - fee instead of the whole balance, so the sweep lands instead of being rejected for a fee charged on top. If the estimate is unavailable, empty, or covers the whole balance, it falls back to the previous full-balance behaviour. Covered by new unit tests (fee subtraction, fractional cents, all fallback branches) plus a resolver wiring test. jest: 47 suites / 519 tests pass. Handle: nul-quill. Payout wallets: Solana USDC BdznDjc4xwt5Y6WJT5UnrFQzDptka8YnC9oqmmkKpwkd, TRC20 TNEHCVwR2aPMrj5AKfWCQ2rFL3bEDQmsg7.
Activity
linear commentedon Feb 4, 2026
ENG-31
[-]`` is not accounting for fees[/-][+]Onchain `sendAll` payments are not accounting for fees[/+]islandbitcoin commentedon Oct 10, 2026
Priority pass 2026-10-10: rank 4 of 13. OnChainPaymentSendAll still passes the full balance to IBEX (onchain-payment-send-all.ts, send-on-chain.ts) and there is no sendAll flag in the IBEX client, so send-max on-chain fails outright. Fix: estimate fee, subtract, send with a tolerance.
nul-quill commentedon Oct 11, 2026
Submitted in PR #521. New helper Wallets.getSendAllOnChainAmount asks IBEX for the on-chain fee for the payout address and sends balance - fee instead of the whole balance, so the sweep lands instead of being rejected for a fee charged on top. If the estimate is unavailable, empty, or covers the whole balance, it falls back to the previous full-balance behaviour. Covered by new unit tests (fee subtraction, fractional cents, all fallback branches) plus a resolver wiring test. jest: 47 suites / 519 tests pass. Handle: nul-quill. Payout wallets: Solana USDC BdznDjc4xwt5Y6WJT5UnrFQzDptka8YnC9oqmmkKpwkd, TRC20 TNEHCVwR2aPMrj5AKfWCQ2rFL3bEDQmsg7.