Acrossv2 partial fills allowed relayers to fund portions of the same transfer
Acrossv2 partial fills let several relayers fund portions of one cross-chain transfer using their combined destination balances. No individual relayer needed enough capital for the whole payment. Each valid contribution advanced the same transfer, although available tokens and enabled routes still limited execution. V2 is deprecated, and V3 removed this partial-fill capability.
A recipient could therefore hold part of a transfer while more remained outstanding. The contract recorded progress for the deposit, wallet receipts reflected fees, and relayers depended on a separate reimbursement process.
The short version: A V2 recipient could receive funds in several contributions while the bridge tracked the remaining amount against the same deposit.
Smaller contributions widened participation in relaying
A relayer with limited destination funds could participate by covering part of a V2 deposit. Another contributor could supply more of the outstanding amount. This allowed a transfer to draw on participating relayers' combined balances, expanding capacity beyond what the largest individual balance could support.
Usable capacity still required the correct destination asset and an enabled route for the deposited token. Partial-fill support did not make unrelated balances available to the transfer. The benefit concerned funds that relayers actually supplied, with availability and willingness to fill determining how much arrived.
Could another relayer continue the same transfer?
Another relayer could continue a V2 transfer by supplying destination funds against the same valid deposit and relay details. The sender did not need a separate origin deposit for every contribution. Several destination payments could therefore belong to one original transfer.
The origin chain and deposit ID identified the originating deposit. Its relay details also specified the recipient, destination token, amount, and fees. Matching a deposit number without its chain context could confuse unrelated deposits. Correct matching mattered both for cumulative progress and for each contributor's repayment eligibility.
A partial fill connected the deposit record with destination delivery
The V2 implementation examined in OpenZeppelin's May 11, 2022 audit handled destination filling separately from the origin deposit. A successful nonzero fill updated progress, delivered assets, and emitted its event within one transaction. The route first had to permit the deposited token and destination chain.
| Stage | Control of funds and progress |
|---|---|
| Origin deposit | The sender committed tokens to the origin SpokePool on an enabled route. |
| Contribution limit | The relayer chose the maximum destination amount it would supply. |
| Remaining amount calculation | The destination SpokePool calculated the contribution against the outstanding amount and applicable fees. |
| Progress update | The contract added the before-fee contribution to its cumulative fill record. |
| Destination payment | The fill transferred the relayer-funded assets to the designated recipient. |
| Fill event | The contract emitted FilledRelay with the contribution and cumulative progress. |
| V3 required a complete fill of each intent, so this partial-progress sequence described V2. | |
While cumulative progress remained below the original deposit amount, another valid contribution could follow. Completion required the full before-fee amount to register as filled. The origin deposit record alone did not establish delivery to the recipient.
Acrossv2 partial fills - Could relayers split transfers?
- A partial fill connected the deposit record with destination delivery
- Cumulative fill progress differed from wallet receipts
- What happened when relayers left a V2 transfer unfinished?
- Each filled portion carried its applicable fees
Cumulative fill progress differed from wallet receipts
The original audited V2 SpokePool recorded cumulative fill progress before fees. That accounting kept the original deposit amount and its accumulated fills on the same basis. Wallet receipts reflected the amount delivered after applicable deductions.
The fill event distinguished individual and cumulative amounts
One contribution
In that implementation,
fillAmount
described the contribution credited by an individual fill. It used the before-fee basis, so interpreting it as the exact amount added to the recipient's wallet would overlook deductions.
All contributions so far
The event's
totalFilledAmount
described cumulative credited progress for the relay. Several events could report that growing total. Adding those cumulative totals together would count earlier contributions again and overstate progress.
The recipient's receipt reflected fee deductions
A fully filled deposit could deliver less than its original amount because fees reduced the destination payment. Comparing gross recorded progress directly with net receipts could make those deductions appear to be missing funds.
What happened when relayers left a V2 transfer unfinished?
V2 included a protocol-funded slow-relay path for deposits that fast relayers had not fully filled. That path could supply the remaining amount, less applicable fees, using destination SpokePool funds. Execution required the relevant validated settlement information, an inclusion proof, and sufficient token liquidity.
The original audited design did not reserve a separate pool balance for every recipient. Competing valid claims on spoke liquidity could prolong waits for extremely illiquid, centrally held tokens. Whether that exposure arose depended on which tokens the system admitted and the available liquidity.
A first partial receipt established progress, without establishing when the remaining funds would arrive.
Each filled portion carried its applicable fees
V2 separated relayer fees from liquidity provider fees. The relayer component included capital and execution costs, while the LP component compensated the liquidity pool. These deductions affected the destination amount associated with each filled portion. Sharing the funding among relayers did not remove either component.
V2 required relayers to supply the realized LP fee, calculated from HubPool utilization at the deposit's quote time. The protocol's off-chain rules determined whether that fee made the relay valid. Contributor count alone did not specify a discount or a fixed total charge; pricing followed the applicable fee terms.
A rejected fill differed from successful partial delivery
A successful contribution reduced the outstanding obligation, while a rejected fill supplied no additional share. In the original implementation, the contract rejected another fill once the recorded relay amount reached completion. An unsuccessful attempt therefore did not necessarily mean that the original transfer remained unfinished.
Destination execution also differed from repayment eligibility. Off-chain validation could reject a relay that used invalid deposit details, leaving its contributor without reimbursement. A destination payment alone did not establish that the protocol accepted every detail of the relayer's claim.
V3 required complete fills of individual intents
V3 removed partial fills and required each intent to fill completely or remain unfilled. Its relayer interface used
fillV3Relay()
, and
FilledV3Relay
replaced the V2 fill event. Monitoring code therefore needed to interpret the event for the applicable protocol version.
The V3 composable callback also removed the
fillCompleted
parameter because partial completion no longer applied. A V2 transfer could legitimately accumulate several contributions; V3's complete-fill rule did not preserve that progression within a single intent.
Acrossv2 partial fills: quick answers
Could the same relayer make more than one partial fill?
The original V2 fill logic allowed the same relayer to contribute again while the relay remained incomplete. It tracked cumulative progress by relay identity, without requiring a different contributor for each fill.
Did relayers have to contribute equal portions?
V2 did not require equal-sized contributions. Each relayer could specify a maximum amount to send, allowing different balances to fund different shares of the transfer. The outstanding obligation limited the final contribution.
Could a relayer's spending limit exceed the outstanding amount?
A relayer could set a limit above the outstanding amount. The original V2 implementation capped the actual contribution at the remainder and calculated its destination payment after applicable fees.
Did a relayer's ERC-20 approval count as a partial fill?
A relayer's ERC-20 approval gave the destination SpokePool spending permission. Delivery required successful execution of the fill and its destination transfer. An allowance alone did not establish that the recipient had received funds.
How did a signed fee increase affect unfinished V2 fills?
V2 allowed a depositor-signed fee update to authorize a subsequent fill with a revised relayer fee. The updated-fee fill retained the original relay hash, preserving its connection to existing cumulative progress.
Were partial fills the same mechanism as netting?
Partial fills divided the funding of one transfer among contributions, while netting offset flows moving in opposite directions. Both belonged to V2, but they addressed different funding relationships. A split transfer did not require a matching transfer in the opposite direction.