Comment on page
Learn about the key roles in Across' system.
A user is someone who bridges assets between L2s and L1 with Across. Users pay relayers and liquidity providers in order to send their tokens instantly across networks that support their token. You can find a step-by-step explainer on bridging here.
Relayers give out short-term token loans to Users in exchange for fees. Relayers fulfill deposit requests by sending the depositor their desired token on their requested “destination chain”. Relayers will send the recipient the full deposit amount minus a relayer fee, meaning that they will keep the relayer fee as an incentive for crediting the depositor funds.
Relayers have the option to request repayment on any chain, which is a feature uniquely possible to Across because of the LP pool.
Generally, relayers take on the following risks when fulfilling a deposit and are compensated accordingly by users:
- cost of capital: relayers send tokens to a user in order to fulfill a deposit and are reimbursed when their valid fill is included in a bundle (see "Dataworker" to learnmore about bundles)
- gas costs: relayers pay gas on destination chains to fulfill deposits
- software risk: an honest relayer might have a bug in its software that sends an invalid fill
- finality risk: a deposit on the origin chain might disappear if the origin chain reorganizes
A liquidity provider or LP is an actor who deposits assets into one of the pools on Across.to/pool. Liquidity Providers provide the capital that enables relayers to have flexibility about where they want to take a refund in exchange for fees. Moreover, liquidity providers provide capital that can be used to fulfill deposits in the unlikely but possible case that no relayers can fast fill the deposit. You can find the step-by-step process for liquidity providers here.
Generally, liquidity providers take on the following risks when passively providing liquidity to Across:
- cost of capital: LP's must deposit their tokens into an Across contract on mainnet
- liquidity risk: If Across is experiencing a lot of volume, then there is a chance that so much of the LP capital is reallocated to repaying relayers and fulfilling deposits that not all LP's who want to withdraw can withdraw at the current moment
Dataworkers support stability and healthy functioning of the system by refunding relayers and moving system assets between networks. Whitelisted dataworkers are in charge of proposing "bundles" to be optimistically validated by the Across system. These proposers must post a bond when proposing. Anyone can dispute an invalid bundle and earn a dispute bond, which includes part of the proposer's bond. Each bundle contains instructions for:
- Refunding relayers for valid fills
- Sending tokens to SpokePools that can be used to pay such refunds
- Withdrawing funds originating from deposits on SpokePools back to the HubPool
Each bundle has a list of "bundle end blocks" that mark the last blocks per SpokePool chain queried for that bundle. The start blocks are equal to the previous bundle's end blocks + 1. The bundle end blocks can be used to verify that the bundle's are correct for the data contained within the bundle's block range.
Finally, the bundle's summarize their instructions via merkle roots, so each bundle contains:
- bundle end blocks
- pool rebalance merkle root: instructions for net inflows/outflows to each spoke pool
- relayer refund merkle root: all relayers that need to be refunded and their aggregate refund
- slow relay merkle root: which deposits need to be slow filled because a relayer hasn't fully filled it