What you can do
| deposit-to-vault | Deposit the collateral token into a vault | approve the vault to spend the collateral token, then Vault.deposit(onBehalfOf, amount); returns the deposited amount and minted active shares |
| withdraw-from-vault | Start a withdrawal | Vault.withdraw(claimer, amount) or Vault.redeem(claimer, shares); the collateral becomes claimable after the next epoch |
| claim-withdrawal | Claim collateral after an epoch ends | Vault.claim(recipient, epoch) for one epoch, or Vault.claimBatch(recipient, epochs[]) for several. Check the withdrawal shares and epoch first |
| find-vaults | Find vaults and their collateral | vault addresses are not in this registry; use VaultFactory.isEntity(address) to check an address, and the Symbiotic app or subgraph to list vaults |
Withdrawals are not instant. They become claimable only after the epoch passes, so funds are locked for at least one epoch.
Collateral can be slashed by networks and operators that the vault delegates to. Read the vault's delegator and slasher settings before depositing.
Each vault is a separate contract with its own collateral token, owner and fee settings. Check the vault owner and the collateral token address for every vault you use.
The vault interface is in the symbioticfi/core repo at commit 83a3a9ab8febe868896780a68345dbf820d843ff. The deployed vault implementations change with versions, so use lastVersion and implementation to pick the right one.
Contracts
Read any function, or build a write and sign it. Amounts are in base units (1 USDC = 1000000).VaultFactoryfactory on ethereum0xAEb6bdd95c502390db8f52c8909F703E9Af6a346
write create(uint64,address,bytes)
Create a new vault. Arguments: version (vault version number from lastVersion), owner (address that owns the vault), data (ABI-encoded initialization parameters for that version, including the collateral token). Returns the new vault address.
read lastVersion()
Latest vault version that can be created.
read implementation(uint64)
Implementation address for a vault version. Argument: version.
read isEntity(address)
True when an address is a vault created by this factory.
NetworkRegistryregistry on ethereum0xC773b1011461e7314CF05f97d95aa8e92C1Fd8aA
write registerNetwork()
Register the calling address as a network. Takes no arguments.
read isEntity(address)
True when an address is a registered network.
read totalEntities()
Number of registered networks.
NetworkMiddlewareServiceother on ethereum0xD7dC9B366c027743D90761F71858BCa83C6899Ad
write setMiddleware(address)
Set the middleware contract for the calling network. Argument: middleware address.
read middleware(address)
Middleware contract of a network. Argument: network address.
AdapterRegistryregistry on ethereum0x788823C9579A049D986eB76718bC758C0998594a
ProtocolFeeRegistryregistry on ethereum0x9983edCD02f57b8b94bD8dE9D18E614dFB964d6D
WithdrawalQueueFactoryfactory on ethereum0x6f80fd397120164e44d23B9334910C8dE41Ce4ce
UniversalDelegatorFactoryfactory on ethereum0xB5eFf01403C0dD3aDa1010919791d6EB82F6a84C