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
redeemer: a sub-floor lane that reaches capability expiry is never redeemed, so a pool owner can take up to redeem_threshold per capability lifetime for free #2836
Source: security review at b5e29ae (2026-11-05). Each claim below was re-read on disk by independent verifiers.
Every redemption path returns before any chain read when the planned set's unredeemed sum is below the floor (crates/node/src/payment_settlement.rs:3167). plan_lanes drops a lane once capability_expired (:2396), so its value leaves the aggregate for good, and on chain a late redemption pays nothing (contracts/src/PaymentPool.sol:907).
The floor defaults to 1 USDC (crates/common/src/config/mod.rs:110) and cannot be set to 0. At the default 10 µUSDC/MB (:63) that is about 100 GB.
Intake takes spending_cap and expiry from the owner-signed capability, with no minimum cap and no minimum lifetime beyond the admit margin. A pool owner can therefore:
sign a capability with a cap just under the floor and a short expiry;
receive that much and pay for it with ordinary vouchers;
let the capability expire.
The node never redeems the vouchers, and the owner reclaims the deposit. Signer keys are free, so this repeats indefinitely.
ADR 003 accepts an exposure of t "to a fresh pool"; the code makes it once per capability lifetime per node. On a busy node the loss shrinks by the honest unredeemed value packed into the same chunk.
The existing tests a_sub_floor_set_at_its_serve_cutoff_reads_nothing, shutdown_sweep_leaves_a_sub_floor_lane_unread and plan_lanes_skips_an_expired_capability each pin one half of this. Related: #2813 (the close-deadline variant).
Mark a lane whose claim is final (inside the capability expiry margin, not yet expired) and redeem it at a gas-sized floor instead of the configured threshold
Or refuse at intake a capability whose cap is below the redeem threshold, or whose lifetime is shorter than a few sweep intervals
Test: a sub-floor lane is redeemed before its capability expires
Activity