Skip to content

client: treat a buyer pool the chain reads with a zero owner as gone during a funding recovery step #2665

Closed

Description

@thiras

Follow-up from #2662.

PoolFunder::chain_remaining (crates/client/src/funding.rs) reads getPool. When the owner is not this wallet, the step falls back to the run's view, and since #2662 it logs a warning. One common cause is a pool id the chain does not know: after a testnet redeploy the stored pool id can name nothing (poolId is keccak(owner, nonce) and repeats across deployments). getPool then returns a zeroed struct with owner == Address::ZERO and status == Open, because Open is enum value 0 in PaymentPool.sol.

The step then tries a topUp. That reverts NotPoolOwner, not PoolNotOpen, so the step skips the replacement path and the fetch ends "funding needed" behind an opaque revert.

Ask. In the recovery step, treat pool.owner == Address::ZERO as "pool gone" and go to open_replacement, the same as a Closing/Closed pool. Check whether the lane-build pool read (open_or_reuse_pool) already handles this case, and share the classification. Add an Asserter-mocked test next to a_full_closing_pool_is_replaced.

🤖 Generated with Claude Code

Activity

  1. self-assigned this
    on Oct 28, 2026
  2. added
    kind:bug
    prio:low
    area:client
    on Oct 28, 2026
  3. moved this from Backlog to In progress in deCDNon Oct 28, 2026
  4. moved this from In progress to Done in deCDNon Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:clientkind:bugprio:low

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions