Skip to content

feat(platform-wallet): report the balance a pooled build can actually spend - #4582

Open
romchornyi wants to merge 6 commits into
v4.2-devfrom
feat/pooled-spendable-balance
Open

feat(platform-wallet): report the balance a pooled build can actually spend#4582
romchornyi wants to merge 6 commits into
v4.2-devfrom
feat/pooled-spendable-balance

Conversation

@romchornyi

Copy link
Copy Markdown
Contributor

Part of the CoinJoin fix set for support ticket 32081. See the merge order at the bottom.

Issue being fixed or feature implemented

core_wallet_get_balance sums every funding account the wallet has — CoinJoin included — and never
consults a reservation set. A host that gates its amount entry on it offers money the build then
refuses, and the shortfall surfaces as CorePooledInsufficientFunds only after the user has committed
to an amount.

Ticket 32081 is the shape of it: a wallet reading 94 DASH, of which 0.0054 was actually
spendable — everything else sat on the CoinJoin account, which SEND_FUNDING_SOURCES excludes by
design. The user was offered a 1 DASH send, entered it, and got

insufficient unreserved core funds across the pooled funding sources
[BIP44, BIP32, AllDashpayReceivingFunds]: available Some(538503), required Some(100000000)

The same mismatch produces asset lock coin selection is short on Transparent → Shielded, with the
identical available 538503.

What was done?

CoreWallet::pooled_spendable_balance(sources, source_index), plus
core_wallet_pooled_spendable_balance and ManagedCoreWallet.pooledSpendableBalance(...).

It resolves accounts through the same resolve_source_accounts and the same source list
finalize_transaction uses, and counts only UTXOs coin selection accepts. Hosts read it instead of
mirroring the pooling rule — the mirror is exactly what drifted: the app's own comment claims
.allSpendable pools "the same set the home balance already totals", which was never true.

Reservations are not subtracted. key-wallet keeps each account's ReservationSet private, so
reading it needs an accessor there and a pin bump. Documented at all three layers. That part is
transient — released when the spend is processed, on a definitive rejection, at the TTL, or on restart
— while the account-set difference is permanent and was the whole of the reported shortfall.

How Has This Been Tested?

Not yet exercised against a live CoinJoin-heavy wallet: the testnet wallet built for this work has
since been swept, so the state has to be rebuilt to see the ceiling change.

Breaking Changes

None. New read-only entry point; no existing behaviour changes.

Merge order

This is one of three defects behind ticket 32081, and this one must not land first: it lowers the
ceiling the amount screen shows, so a user with mixed coins sees less. That is only safe once the
sweep works and can unlock the difference.

  1. feat(key-wallet): let a build fund from only the inputs it was given rust-dashcore#994 — merged
  2. feat(platform-wallet): let a Core build fund from only the inputs it was given #4548fix(coinjoin): make the sweep's input chunking actually bound the transaction dashwallet-ios#1094 — the sweep above 500 UTXOs
  3. fix(coinjoin): offer the shielded destination from every move-funds surface dashwallet-ios#1090 — the shielded destination
  4. this PRfix(build): restore dashpay compilation dashwallet-ios#1095

Based on #4548 rather than v4.2-dev to avoid conflicting in transaction.rs; rebase once that lands.

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

…was given

The wallet-aware finalizers add every unreserved UTXO of the funding account to
the candidate pool, so seeding a subset through
`core_wallet_tx_builder_add_inputs_from_outpoints` does not restrict what gets
selected. A caller draining an account in batches that each stay under the
standard-transaction input limit therefore achieves nothing: every batch sees
the whole account and fails with a too-many-inputs error, and an account above
the cap cannot be drained at all.

That is the iOS CoinJoin sweep. A wallet with 589 mixed UTXOs reports
"Too many inputs for a standard transaction: 589 (max 500)" on every attempt
and every retry; its ~101 DASH cannot be moved by any route the app offers.

Exposes key-wallet's opt-in through the FFI and the Swift SDK, and moves the
rust-dashcore pin onto a branch carrying it.

The pin continues the existing cherry-pick lineage rather than following dev:
`chore/sync-fixes-filter-rescans-and-added-inputs` is the current pin
(4db5c367) plus dash-spv #866 and #974 — committed-filter-range rescans for
newly derived scripts, which address the launch-dependent balances seen on
heavily mixed wallets — plus the four key-wallet commits. Pinning dev instead
would drag in the sweep-event chain, whose platform-side handling is #4406's
subject and which breaks this workspace on seven non-exhaustive matches today.
…was given

The wallet-aware finalizers offer every unreserved UTXO of the funding account
alongside anything `core_wallet_tx_builder_add_inputs_from_outpoints` seeded, so
seeding a subset does not restrict what gets selected. A caller draining an
account in batches that each stay under the standard-transaction input limit
therefore achieves nothing: every batch sees the whole account and fails with a
too-many-inputs error, and an account above the cap cannot be drained at all.

That is the iOS CoinJoin sweep. Reproduced on a testnet wallet holding 700 mixed
UTXOs: "Too many inputs for a standard transaction: 700 (max 500)" on every
attempt; the reporting mainnet wallet has 589 and ~101 DASH it cannot move.

key-wallet takes the choice per funding call (dashpay/rust-dashcore#994), and the
finalizers make that call internally, so the intent is carried on the FFI builder
and read when they run. `finalize_transaction` keeps its signature and delegates
to `finalize_transaction_with_options`, so no existing caller changes.
… spend

`core_wallet_get_balance` sums every funding account the wallet has — CoinJoin
included — and never consults a reservation set. A host gating its amount entry
on it therefore offers money the build then refuses, and the shortfall surfaces
as CorePooledInsufficientFunds only after the user has committed to an amount.

Support ticket 32081 is the shape of it: a wallet reading 94 DASH, of which
0.0054 was actually spendable, everything else on the CoinJoin account the send
pool excludes by design. The same mismatch produces the asset-lock shortfall on
the Transparent to Shielded path.

`pooled_spendable_balance` answers with the accounts `finalize_transaction`
funds from, resolved through the same `resolve_source_accounts` and the same
source list, counting only UTXOs coin selection accepts. Hosts read it instead
of mirroring the pooling rule themselves — the mirror is what drifted here.

Reservations are not subtracted: key-wallet keeps each account's ReservationSet
private, so reading it needs an accessor there and a pin bump. Documented at
every layer. That part is transient — a reservation is released when its spend
is processed, on a definitive rejection, at the TTL, or on restart — while the
account-set difference is permanent and was the whole of the reported shortfall.
@coderabbitai

coderabbitai Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 13 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Team

Run ID: 38d84064-89e2-4250-9f34-e7fbbd3e2278

📥 Commits

Reviewing files that changed from the base of the PR and between 9e7e26d and bb3ea98.

📒 Files selected for processing (3)
  • packages/rs-platform-wallet-ffi/src/core_wallet/transaction_builder.rs
  • packages/rs-platform-wallet/src/wallet/core/transaction.rs
  • packages/swift-sdk/Sources/SwiftDashSDK/PlatformWallet/CoreWallet/ManagedCoreWallet.swift

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@llbartekll llbartekll left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the three files plus the key-wallet side (add_funding, select_coins_with_size, Utxo::is_spendable) to check the new figure really matches what selection accepts.

The diagnosis is right and the layering is right: .allSpendableSEND_FUNDING_SOURCES genuinely keeps CoinJoin out, and spendable_utxos(height) genuinely matches select_coins_with_size, which filters candidates by is_spendable(current_height) on every strategy. So the CoinJoin over-report this targets is real and this fixes it.

Three things I think should be settled before merge, all of the same kind — the new function is a second hand-copy of finalize_transaction_with_options' funding loop, and it has already drifted from it in ways that reintroduce the over-report the PR exists to remove:

  1. Fee is not subtracted. The doc tells hosts to gate amount entry on this, but a build needs amount + fee. A max-amount send entering the returned value verbatim fails with the same CorePooledInsufficientFunds.
  2. account_of_type is not checked, so accounts the build skips are still counted.
  3. Single-family selectors (.bip32, .coinJoin) return Ok(0) where finalize returns WalletNotFound — the mirror doesn't honour strict.

Plus a read-only query holding the manager write lock, and the doc comments of finalize_transaction and core_wallet_tx_builder_use_only_added_inputs having been captured by the new functions in both Rust files.

On the untested point — I'd push back gently on shipping this one without a test specifically because the PR's own thesis is that an unpinned mirror of the pooling rule drifts. funded_wallet_manager_dual_standard(&[700_000], &[700_000]) is already in test_support and makes the core assertion about three lines; findings 2 and 3 would both have been caught by it.

Merge-order note in the description looks right and I agree this must not land first.

let Some(managed) = info.core_wallet.accounts.funds_account_mut(&at) else {
continue;
};
total += managed

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fee isn't subtracted, so this ceiling is still unspendable as an amount.

The doc above says hosts should gate amount entry on this, but the value returned is the gross sum of spendable UTXOs. A build needs amount + fee.

select_coins_with_size passes the total_available < target_amount check with the full sum, and then accumulate_coins_with_size can't cover target + fee — so a user tapping a max/"send all" button wired to this and entering the returned value verbatim gets exactly the CorePooledInsufficientFunds this PR is removing, just relocated from the CoinJoin edge to the max-amount edge.

With the 500-UTXO sweep landing alongside (#4548), the input count and therefore the fee can be well above dust, so this isn't a rounding concern.

Either subtract an estimated fee here, or state in the doc that the figure is pre-fee and hosts must reserve headroom — but given the failure mode this is meant to prevent, I'd rather it be handled here than left as a second thing for hosts to mirror.

if !seen.insert(at) {
continue;
}
let Some(managed) = info.core_wallet.accounts.funds_account_mut(&at) else {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Diverges from finalize here: the account_of_type half of the check is missing.

finalize_transaction_with_options requires both to resolve before it funds an account:

let (Some(account), Some(managed)) = (
    wallet.accounts.account_of_type(at),
    info.core_wallet.accounts.funds_account_mut(&at),
) else { ... continue; };

This counts an account when only funds_account_mut resolves. An AccountType present in info.core_wallet.accounts but absent from wallet.accounts is added to the total and then skipped by the build — an over-report of exactly the shape the PR is fixing.

The discarded _wallet binding on line 331 is where the other half went.


let mut seen: HashSet<AccountType> = HashSet::new();
let mut total: u64 = 0;
for &preference in sources {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Single-source selectors silently return 0 instead of the strict not-found error.

finalize_transaction_with_options sets strict = sources.len() == 1 and errors with WalletNotFound when the named account is missing — pinned by single_source_missing_account_still_errors (line 866). This loop applies the skip-missing rule unconditionally.

CoreAccountTypeFFI::funding_sources() returns a one-element list for BIP44, BIP32 and CoinJoin, so pooledSpendableBalance(accountType: .bip32) on a wallet with no BIP32 account returns Ok(0). The host renders "insufficient funds"; the matching finalize call would have said "no such account". Two different answers to the same selector.

That also makes the doc's "the same accounts finalize_transaction funds from" untrue for every single-family selector — worth either taking a strict flag or narrowing the doc.

sources: &[AccountTypePreference],
source_index: u32,
) -> Result<u64, PlatformWalletError> {
let mut manager = self.wallet_manager.write().await;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Write lock for a pure read.

Nothing here mutates. Read-only equivalents exist and are what the rest of the package uses:

  • WalletManager::get_wallet_and_info (key-wallet-manager/src/accessors.rs:29)
  • ManagedAccountCollection::funds_account (key-wallet/src/managed_account/managed_account_collection.rs:581)

so this can be .read().await + get_wallet_and_info + funds_account, and the _wallet binding drops out.

It matters because of how this is meant to be called — gating amount entry means potentially one call per keystroke, each taking the exclusive manager lock against concurrent finalizers, broadcast reconciliation and SPV sync writers. Every other read-only path in the package already takes the read lock: sign_message.rs:149, broadcast.rs:136, wallet.rs:372/400, and transaction.rs:650 in this same file.

let mut seen: HashSet<AccountType> = HashSet::new();
let mut total: u64 = 0;
for &preference in sources {
for at in resolve_source_accounts(&info.core_wallet.accounts, preference, source_index)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This loop is a second copy of the one in finalize_transaction_with_options (lines ~434-447).

The PR's argument is that the host's hand-copy of the pooling rule drifted, so hosts should read it from the source of truth instead. But the new source of truth is itself a hand-copy of the funding loop — and it has already drifted twice before merge (the two comments above).

Extracting something like

fn resolved_funding_accounts(
    accounts: &ManagedAccountCollection,
    wallet: &Wallet,
    sources: &[AccountTypePreference],
    source_index: u32,
    strict: bool,
) -> Result<Vec<AccountType>, PlatformWalletError>

and driving both call sites from it makes the two impossible to desynchronise, and drops the duplicated dedup HashSet as a side effect. That seems like the depth the fix actually wants to sit at.

/// is permanent, and was the whole of the shortfall in the report that
/// prompted it (support ticket 32081: 0.0054 DASH offered as spendable
/// against a 94 DASH balance, all of it CoinJoin).
pub async fn pooled_spendable_balance(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth a test — the fixtures are already there.

mod tests in this file (line 695) has what's needed:

  • funded_wallet_manager_dual_standard(&[700_000], &[700_000]) — already used by pooled_send_spans_families_and_abandon_releases_all; asserting pooled_spendable_balance(&SEND_FUNDING_SOURCES, 0) == 1_400_000 is about three lines.
  • funded_wallet_manager_with_contact covers the DashPay leg.

Nothing currently pins this function to finalize_transaction's account set, which is the one coupling the PR exists to enforce. Both divergences I flagged would be caught by that test.

@@ -299,6 +299,61 @@ pub(crate) fn resolve_source_accounts(
impl<B: TransactionBroadcaster + ?Sized> CoreWallet<B> {
/// Consume a configured builder, atomically fund and reserve its selected

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doc comment got captured by the new function.

The insertion landed between finalize_transaction's doc comment and its signature, so "Consume a configured builder, atomically fund and reserve its selected inputs, then sign without holding the wallet-manager lock." is now the summary line of pooled_spendable_balance — a read-only getter that reserves and signs nothing — running straight on into the real description with no separating ///.

finalize_transaction (line 357) is left with no doc at all.

/// each stay under the standard-transaction input limit needs this, or every
/// batch sees the whole account and fails with a too-many-inputs error.
///
/// The balance a build funded by `account_type` could actually select from — the

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same capture here.

The doc block starting at line 629 ("Fund the build from the inputs core_wallet_tx_builder_add_inputs_from_outpoints supplied, and nothing else" … "fails with a too-many-inputs error") belongs to core_wallet_tx_builder_use_only_added_inputs, which now sits at line 674 with only the boilerplate # Safety note.

This one leaks further than the Rust-side twin: cbindgen emits these into the generated C header the Swift SDK imports, so the public header will describe a balance getter in terms of batched-drain funding, while use_only_added_inputs — new in the base PR, and whose entire rationale lived in that block — ships with no explanation at all.

@thepastaclaw

thepastaclaw commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

🕓 Ready for review — 50 ahead in queue (commit bb3ea98)
Queue position: 51/51 · 2 reviews active
ETA: start ~15:46 UTC · complete ~16:40 UTC (median 54m across 30 recent reviews; 2 slots)
Queued 47s ago · Last checked: 2026-09-03 16:51 UTC

…resolver

Review found the new balance call had already drifted from the funding loop it
was meant to be the truth for — the point of the PR, reproduced inside it.

`resolved_funding_accounts` now names the accounts, and both
`finalize_transaction_with_options` and `pooled_spendable_balance` are driven
from it. Three divergences go with it:

- the balance counted an account that resolved only on the managed side, while
  funding requires both halves and skips otherwise, so it over-reported exactly
  the shape this PR removes;
- single-source selectors returned Ok(0) where funding errors WalletNotFound,
  giving two answers to the same selector — the strict rule, including the empty
  SET selector case, now lives in the resolver;
- the dedup set existed twice.

The balance also takes the read lock rather than the write lock: nothing here
mutates, and gating amount entry means a call per keystroke against concurrent
finalizers and sync writers.

The fee is documented rather than subtracted. Doing it here means re-declaring
key-wallet's input and output sizes in this crate, which is the duplication the
call exists to remove; the estimate belongs beside FeeRate and
MAX_STANDARD_TX_INPUTS.
@romchornyi

Copy link
Copy Markdown
Contributor Author

All five addressed in 96c8be1, four by code and one by documentation.

The duplication one was the right frame — the call meant to end the host's hand-copy was itself a hand-copy, and had drifted twice before merge. resolved_funding_accounts(accounts, wallet, sources, source_index, strict) now names the accounts and both finalize_transaction_with_options and pooled_spendable_balance are driven from it. The other two findings disappear as a consequence rather than being patched:

  • the account_of_type half is inside the resolver, so the balance can no longer count an account funding would skip;
  • strict lives there too, including the empty SET-selector case that had its own check in finalize, so single-source selectors give one answer.

The duplicated dedup HashSet went with it, as you predicted.

Read lock — done, get_wallet_and_info + funds_account, and the _wallet binding is now used rather than discarded.

The fee I documented instead of subtracting, and I want to be explicit that this is a judgement call rather than agreement. Subtracting it here means re-declaring key-wallet's per-input and per-output sizes in this crate — the same duplication this call exists to remove, and the thing your last comment argues against. The estimate belongs beside FeeRate and MAX_STANDARD_TX_INPUTS; putting it there needs a key-wallet change and a pin bump, which I did not want to fold into this PR.

What the doc now says: the figure is gross, a build needs amount + fee, and hosts must keep reserving headroom as they already do against the wallet-wide figure this replaces. So the fee behaviour is unchanged by this PR — only the account set is. That leaves your max-amount edge real but not newly introduced; if you would rather it be closed here and now, say so and I will do the key-wallet side.

909 platform-wallet tests pass, single_source_missing_account_still_errors included.

🤖 Generated with Claude Code

@thepastaclaw

Copy link
Copy Markdown
Collaborator

Thanks — I rechecked 96c8be1. The shared resolver is the right fix: it removes the duplicate funding loop, restores the keys-side account check and strict single-source behavior, and the getter now uses the read path.

A few pieces from the review are still outstanding, though:

  • The two doc captures are unchanged. In the Rust API, “Consume a configured builder…” still documents pooled_spendable_balance, while finalize_transaction has no doc block (current head). In the FFI, the batched-drain block still documents core_wallet_pooled_spendable_balance, while core_wallet_tx_builder_use_only_added_inputs retains only the safety boilerplate (current head).
  • I still can’t find a test that calls pooled_spendable_balance; the 909 passing tests validate the existing suite, but do not pin this new getter to the funding set. The small dual-standard assertion from the review would cover the core contract and guard the shared resolver wiring.
  • I’m okay with documenting the fee rather than duplicating key-wallet’s estimator in this PR, but that warning currently exists only on the Rust method. The FFI and Swift host-facing docs still say to gate amount entry on the value without saying it is gross/pre-fee or that amount + fee must fit. Please carry the warning through those layers as well.

Could you address those three points? After that, the review findings look covered from my side.

@thepastaclaw

Copy link
Copy Markdown
Collaborator

One additional status note: GitHub now reports this branch as conflicting with its base (feat/core-tx-builder-only-added-inputs). Please resolve/rebase that conflict together with the requested doc/test follow-up; I’ll recheck the updated head.

Base automatically changed from feat/core-tx-builder-only-added-inputs to v4.2-dev September 3, 2026 11:57
@github-actions github-actions Bot added this to the v4.2.0 milestone Sep 3, 2026
#4548 landed as a squash, so this branch's copies of its commits no longer
match by hash and both files conflicted. Resolved by taking v4.2-dev on every
line the two share: the aliasing-safe read (ffi.reservation_only, not through
the consumed raw pointer) and the setter doc that now names both finalizers.
The pooled-balance entry point moves below the setter instead of splitting its
doc comment, where the stacking had wedged it. 938 lib tests pass.
Review asked for this and for the doc capture; both were still open.

The getter had no test at all, which is odd for a function whose entire
justification is that it must not drift from finalize_transaction's account
set - the drift it replaces is a host-side hand-copy of the same rule. Three
couplings are now pinned: the pooled selector sums both standard families
(1_400_000 from the dual fixture), a DashPay contact account contributes
through AllDashpayReceivingFunds, and a single-source miss errors with
WalletNotFound exactly as single_source_missing_account_still_errors requires
of finalize, rather than answering Ok(0) that a host renders as insufficient
funds. A fourth pins the ticket itself: a wallet holding only CoinJoin reports
0 spendable, which is the 94-DASH-against-0.0054 gap from 32081 in miniature.

Verified the strictness leg kills its mutant (strict -> false gives Ok(0)).

Also return the doc line the insertion captured: finalize_transaction's summary
had become the first line of pooled_spendable_balance's doc, leaving finalize
undocumented and describing a read-only getter as reserving and signing. The
FFI-side twin of this was resolved in the v4.2-dev merge.
@romchornyi

Copy link
Copy Markdown
Contributor Author

Re-walked all eight comments. Six were already addressed; two were still open and are fixed now in bb3ea98.

Still open → fixed:

  • The test. You were right that nothing pinned this function to finalize_transaction's account set — odd for a function whose whole justification is that it must not drift from it. Four couplings now: the pooled selector sums both standard families (1_400_000 from funded_wallet_manager_dual_standard, as you suggested); a DashPay contact contributes through AllDashpayReceivingFunds; a single-source miss errors WalletNotFound exactly as single_source_missing_account_still_errors requires of finalize, rather than Ok(0); and a CoinJoin-only wallet reports 0 spendable — ticket 32081's 94-DASH-against-0.0054 gap in miniature. I checked the strictness leg kills its mutant (strictfalse gives Ok(0)) rather than merely passing.
  • The Rust-side doc capture. finalize_transaction's summary line was still the first line of pooled_spendable_balance's doc, leaving finalize undocumented and describing a read-only getter as reserving and signing. Returned. The FFI twin of this got resolved in the v4.2-dev merge — the stacking had wedged the balance getter inside use_only_added_inputs's doc block, so both now sit where they belong and the generated C header describes the right function.

Already addressed in earlier rounds (flagging so you can check I read them the way you meant):

  • account_of_type half missing, single-source strictness, and the duplicated loop — all three collapsed into the resolved_funding_accounts helper you sketched; both call sites now drive from it, so they cannot desynchronise, and the duplicate dedup HashSet went with it.
  • Write lock for a pure read — now .read().await + get_wallet_and_info + funds_account, and the _wallet binding is gone.
  • The fee. I took the doc option rather than subtracting: the estimate needs key-wallet's per-input and per-output sizes, and re-declaring those here is the same duplication this call exists to remove — it belongs beside MAX_STANDARD_TX_INPUTS and FeeRate. The doc now says gross, not net of fee in those words, with the reasoning and the note that hosts must keep reserving headroom exactly as they did against the wallet-wide figure this replaces. If you'd rather have the number than the caveat, that is a key-wallet change and I'll open it there.

940 lib tests pass, clippy clean on both crates. The branch also carries the v4.2-dev merge (c002d33) that #4548's squash made necessary — conflicts resolved toward v4.2-dev on both shared lines, including the aliasing-safe ffi.reservation_only read this branch still had in its old form.

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants