Contents
Overview
Vault Bridge enables chains and apps to generate native yield on TVL by putting bridged assets to work.
The protocol is comprised of:
- One primary chain ("Layer X")
- Many secondary chains ("Layer Y")
TL;DR
Select assets are bridged from Layer X to Layer Y. These assets are deposited into Vault Bridge Token contract on Layer X, which mints and bridges vbToken to Layer Y. Deposited assets are used to generate yield on Layer X, while bridged vbTokens are used in DeFi on Layer Y. Generated yield gets distributed to chains and apps participating in the revenue sharing program.
Native Converter contract can be deployed on Layer Y to enable acquisition of vbToken on Layer Y without having to bridge from Layer X. Accumulated backing in Native Converter on Layer Y gets migrated to Layer X and deposited into Vault Bridge Token contract.
Vault Bridge Token
A Vault Bridge Token is:
- ERC-20 token
- ERC-4626 vault
- Unified Bridge extension
Assets in high demand with available yield strategies, such as WETH and USDC, can get their versions of vbTokens. The underlying asset is deposited into Vault Bridge Token contract, and vbToken is minted in a 1:1 ratio. The same can be withdrawn by burning vbToken. Vault Bridge Token contract doubles a pseudo bridge, so vbToken can be minted and bridged, or claimed and redeemed, in a single call. Deposited underlying assets are put into an external, ERC-4626 compatible vault ("yield vault") where they generate yield. Yield is distributed to chains and apps that participate in the revenue sharing program. Vault Bridge Token contracts also includes functionality that enables minting of vbToken directly on Layer Y via Native Converter, with backing migration to Layer X via Migration Manager.
Migration Manager
The Migration Manager is:
- Vault Bridge Token dependency
vbTokens can be minted directly on Layer Y. In order for an underlying asset that backs vbToken minted on Layer Y to be deposited in Vault Bridge Token contract on Layer X, backing is migrated to Layer X via Native Converter and Migration Manager. Migration Manager completes migrations by interacting with Vault Bridge Token contract. All vbTokens share the same Migration Manager contract.
Custom Token
A Custom Token is:
- ERC-20 token
Bridged vbToken can be upgraded to Custom Token on Layer Y. This enables custom behavior, such as bridged vbETH to integrate WETH9 interface, replacing WETH on Layer Y.
Native Converter
A Native Converter is:
- Vault Bridge Token extension
- Unified Bridge extension
Native Converter can be deployed on Layer Y to enable minting of vbToken directly on Layer Y by converting the bridged underlying asset, in a 1:1 ratio. The same can be deconverted to by burning bridged vbToken. Accumulated backing in Native Converter on Layer Y can be migrated to Layer X to be deposited into Vault Bridge Token contract via Migration Manger. For this reason, liqudity for deconverting to the bridged underlying token on Layer Y is guaranteed only up to a certain percentage. Native Converter doubles a bridge extension, so vbToken can be deconverted and bridged in a single call.
Get Started
Getting started should be easy as Vault Bridge Token contracts follow the ERC-4626 interface. Variants of the standard ERC-4626 functions include depositAndBridge
and claimAndRedeem
. Please see Documentation for more information.
If your chain is part of Agglayer, you can start using the official vbTokens immediately. Please note that you will get vbToken when bridging, not the underlying token, therefore activity should be incentivized in vbToken. You must participate in the revenue sharing program in order to receive yield. Contact our team if interested in revenue sharing.
If your chain is not part of Agglayer, you can start using the official vbTokens immediately. Please note that you will need to use a third-party bridge to bridge vbTokens to your chain, and Native Converter functionality will not be supported. You must participate in the revenue sharing program in order to receive yield. Contact our team if interested in revenue sharing.
Full support for non-Agglayer chains, third-party bridges, as well as non-EVM chains is coming soon. Contact our team to register interest.
Documentation
- General Documentation
- Technical Reference
- In addition to General Documentation and Technical Reference, the source code is 100% documented and you are encouraged to check it out.
Deployments
Usage
Clone:
git clone git@github.com:agglayer/vault-bridge.git
Install:
forge soldeer install & npm install
Build:
forge build
Test:
forge test
Coverage:
forge coverage --ir-minimum --report lcov && genhtml -o coverage lcov.info
License
This codebase is licensed under Source Available License.
Your use of this software constitutes acceptance of these license terms.