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
fix(sdk-coin-sol): account for tx fee in max spendable calculation
The Solana fee payer is charged the transaction fee on top of the
transfer amount. The server-side maximumSpendable API was returning
balance minus the rent-exempt reserve without subtracting the
transaction fee, so submitting that amount left an unsendable dust
residue equal to approximately one transaction fee.
Add Sol.getMaximumSpendable() which queries the Solana node for the
current balance, builds a representative transfer, fetches the fee via
getFeeForMessage, and returns balance - fee. Add an optional
getMaximumSpendable hook on BaseCoin/IBaseCoin so any coin can supply
its own computation. Update wallet.ts sweep() to use the coin-level
result when available, falling back to the BitGo API.
Ticket: COIN-88
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
0 commit comments