Skip to content

client: right after a proactive refill, the pacer sends reactive top-ups of a few µUSDC (approve + topUp each) #2296

Closed

Description

@altanoruc

Summary

Right after the proactive refill from #2291 restores a pool to the working deposit, the reactive pacer can fire PaceDecision::TopUp(working_deposit − remaining_deposit) for a few µUSDC. Each such top-up costs an approve tx plus a topUp tx (about 8 s each on Arbitrum Sepolia), stalls the lane that asked, and uses up one of the MAX_TOPUP_ATTEMPTS = 3 reactive top-ups a run is allowed. Nothing sets a minimum amount: BudgetPacer::decide (pacer.rs ~L211) tops up whenever additional > 0.

Evidence (testnet, 2026-10-02, CLI 41b6830d, Mistral 9194000d…, run 1 of a 5-run batch)

08:26:31.49  fetch: buyer pool 0xdb5db181… low on deposit (586111 µUSDC remaining of 19414618 deposited); topping up 9413889 µUSDC
08:26:39.69  buyer_pool: issued USDC approval … approve_value=9413889
08:26:47.48  buyer_pool: topped up buyer payment pool … credited=9413889 tx=0xbc091f06…
08:26:47.98  source_set: a lane faulted … provider=0xEE08…8B6d (hel1) offset=147456 len=147456 landed=0 fault=Unaffordable error=gap [147456, +147456) of blob cannot be funded …
08:26:56.81  buyer_pool: issued USDC approval … approve_value=2
08:27:04.56  buyer_pool: topped up buyer payment pool … credited=2 tx=0xac92dfef…
08:27:16.59  buyer_pool: issued USDC approval … approve_value=8
08:27:24.31  buyer_pool: topped up buyer payment pool … credited=8 tx=0xe7cfbced…
08:27:24.47  bundle pull: 339721b9…: 601 B in 16.6s (36 B/s)
  • The two small top-ups did not log low on deposit, so they came from the reactive path (driver.rs PaceDecision::TopUp), not from refill_if_low.
  • 0.5 s after the 9.41 USDC credit, a lane on hel1 classed a 147 KiB gap as Unaffordable while the pool held about 10 USDC. That lane's pacer state probably still carried the deposit from before the credit.
  • Small files waited behind the extra transactions: a 601 B file took 16.6 s, and a 7.71 KiB file took 30.8 s.
  • It happened only at the start of the first run after the refill. The rest of the 5 runs (about 250 GB) had no further top-ups.

Expected

  • A reactive top-up whose additional is far below a useful amount should not go on-chain. Options: re-read the shared deposit before deciding, or set a minimum such as low_water or the next voucher's cost.
  • A lane built before a refill landed should see the new deposit, and should not report the gap as Unaffordable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions