Claiming
After Proving and waiting for the Dispute Period to end, Relayers can then execute a claim transaction which will release the funds which have been escrowed since the original bridge.
The funds will be transferred to the rightful Relayer as a reimbursement for the liquidity they provided on the relay.
Function Options
There are two versions of the claim function in FastBridgeV2. Relayers can use whichever best suits their implementation.
function claimV2(bytes memory request) external;
This version can only be executed by the
relayer
on the proof. Allows an arbitraryto
address as the recipient of funds.
function claim(bytes memory request, address to) external;
This version can be executed permissionlessly, and will transfer the funds only to the
relayer
address on the proof.
Regardless of the method used, a BridgeDepositClaimed event will be emitted.
Multicalling
As of FastBridgeV2, it is possible to batch many claim transactions together with Multicall
Next steps
Following the claim transaction, the bridge deposit funds have been reimbursed to the Relayer and are ready to be used for another relay. The bridge cycle is fully complete.