Filled first, repaid after: how some cross-chain transfers settle

By Cleave Protocol

On filler routes, a third party pays you on the destination chain from its own funds and is repaid later. How that model works, and where it can stall.

Watch on YouTube

On some cross-chain routes, the tokens that arrive are not the ones that left. A stranger pays you from its own funds on the destination chain, and gets paid back later from yours. This post walks through that model, the words used for it, and the places where it can stall.

Orders and the people who fill them

ERC-7683, a draft standard for cross-chain intents, gives the vocabulary. An order is an offer of payment in exchange for the fulfilment of a set of requirements. In a cross-chain transfer, the requirement is an outcome on another chain: this much of a token, at this address, on that chain. The payment is what the user puts up on the source chain.

Specialised actors called solvers, also known as fillers, pick up orders and carry them out. The standard describes a typical lifecycle:

  1. A user expresses an intent to an application.
  2. The application creates an order for a specific protocol.
  3. The order goes to an order feed.
  4. A solver evaluates it and executes the required steps.
  5. Settlement pays the solver.

Fill first, repay after

On the routes this post is about, step 4 happens on the destination chain before settlement has run. A filler that wants the order pays the user on the destination from its own funds. Later, settlement reimburses the filler for the completed order.

That ordering explains the speed. The user does not wait for settlement. The filler does. It carries the wait for repayment, and in exchange it collects what the order offered. From the user's side, the funds arrive once a filler acts, not once the full settlement loop closes.

It also explains the different tokens. What arrives comes from the filler's own balance on the destination chain. The user's source-chain deposit funds the order. The protocol determines how and where the filler receives repayment.

Not every intent protocol works this way. ERC-7683 notes that protocols differ in whether execution is escrow-first, as here, where the user's payment is put up on the source chain before the fill; fill-first, using resource locks; or auction-based. They also differ in how settlement is verified.

When nobody fills

An order has an expiry. Fillers choose which orders to take, and an order can find no taker before it expires.

If no filler takes the order before it expires, the funds can be returned to the sender on the source chain. Two caveats matter for anyone building on top:

  • A return can take hours or longer, and it may not happen.
  • Expiry alone does not mean a refund was sent. Check the transfer status for a claim action. Some refunds require a source-chain transaction. Show the transfer as refunded only after the return is confirmed.

An app that treats "expired" as "refunded" can show users money that is not back yet.

The whole trip in one quote

A cross-chain swap can involve more than one transfer: the user holds one token, wants another, and the route in between may carry a different one. One quote from Cleave Protocol covers the swap on the way out, the crossing, and the swap on arrival.

The estimated time and the quoted amount are shown before signing, and neither is a promise of what arrives.

Filled first, repaid after.

Routes, timing and what happens when a transfer is not filled are on the Swap between chains docs page.