What you can do
| supply | Deposit an asset into a market vault to earn interest | approve the asset to the vault, then vault.deposit(amount, receiver); the caller receives vault shares |
| withdraw | Withdraw supplied assets | vault.withdraw(amount, receiver, owner) or vault.redeem(shares, receiver, owner); reverts if the account would be unhealthy |
| borrow | Borrow an asset against collateral vault shares | in one EVC.batch: enableController(account, borrowVault), enableCollateral(account, collateralVault), then borrowVault.borrow(amount, receiver). Deposit collateral into the collateral vault first. Check health with the AccountLens before borrowing. |
| repay | Repay debt in a market | approve the asset to the vault, then vault.repay(amount, account). Repaying the full debt with the debtOf amount clears the debt. |
| toggle-collateral | Use or stop using a vault's shares as collateral | EVC.enableCollateral(account, vault) or EVC.disableCollateral(account, vault) |
| check-position | Read collateral, debt and health for an account | AccountLens.getAccountEnabledVaultsInfo(evc, account) on Ethereum, or getAccountLiquidityInfo for the health figures |
| find-markets | List market vaults on a chain | eVaultFactory.getProxyListLength() then getProxyListSlice(start, end); read VaultLens.getVaultInfoFull(vault) for each market |
Each market is isolated. Bad debt in one market does not spread to others, but depositors in a market can lose funds if its oracle, collateral or curator setup fails.
Market parameters, oracles and interest rate models are set per vault by its governor. Read the vault configuration before depositing.
Borrowing needs the account's controller and collateral to be enabled on the EVC. A missed step makes the borrow revert.
Positions can be liquidated when health drops below 1. Keep a margin and check health after price moves.
Contracts
Read any function, or build a write and sign it. Amounts are in base units (1 USDC = 1000000).Ethereum Vault Connector (EVC)other on ethereum0x0C9a3dd6b8F28529d72d7f9cE918D493519EE383
write batch((address,address,uint256,bytes)[])
Run several calls in one transaction and check account health once at the end. Each item is (targetContract, onBehalfOfAccount, value, data). Use it to deposit, enable a controller and enable collateral in one go. Approve the asset to the vault first.
write call(address,address,uint256,bytes)
Forward one call to a vault as an account. Arguments: target vault, onBehalfOf account, value (0 for ERC20 markets), calldata. The account must be the caller or an operator it has authorized.
write enableController(address,address)
Mark a vault as the controller for an account, which is the vault the account borrows from. Arguments: account, vault. Required before borrowing. An account can have only one controller at a time.
write enableCollateral(address,address)
Allow a vault's shares to count as collateral for an account. Arguments: account, vault. The account must hold shares of that vault.
write disableCollateral(address,address)
Stop counting a vault's shares as collateral. Arguments: account, vault. Reverts if the account would be unhealthy afterwards.
write disableController(address)
Remove the controller for an account once its debt in that vault is zero. Argument: account.
write setAccountOperator(address,address,bool)
Authorize or revoke an operator for an account. Arguments: account, operator, authorized flag. Only grant this to contracts or wallets you trust, since an operator can move the account's positions.
read getControllers(address)
Returns the controller vault list for an account. Argument: account.
read getCollaterals(address)
Returns the collateral vault list for an account. Argument: account.
eVaultFactoryfactory on ethereum0x29a56a1b8214D9Cf7c5561811750D5cBDb45CC8e
write createProxy(address,bool,bytes)
Deploy a new market vault. Arguments: desired implementation (the eVaultImplementation address), upgradeable flag, trailing data that encodes the market asset, oracle and unit of account. Follow the Euler docs for the exact trailing data layout.
read getProxyListLength()
Number of market vaults deployed by this factory.
read getProxyListSlice(uint256,uint256)
List market vault addresses by index range. Arguments: start, end. Use this to enumerate markets.
read isProxy(address)
True if an address is a market vault deployed by this factory.
read getProxyConfig(address)
Config of a market vault from this factory: upgradeable flag, implementation address and trailing data (the market asset, oracle and unit of account). Argument: proxy address.
eVault implementation (template, not a market)vault on ethereum0x8Ff1C814719096b61aBf00Bb46EAd0c9A529Dd7D
write deposit(uint256,address)
Supply assets to a market vault and receive vault shares. Arguments: asset amount, receiver. Approve the market asset to the vault first.
write withdraw(uint256,address,address)
Withdraw assets from a market vault. Arguments: asset amount, receiver, owner. Reverts if the withdrawal would leave the owner unhealthy.
write redeem(uint256,address,address)
Burn vault shares for assets. Arguments: share amount, receiver, owner.
write borrow(uint256,address)
Borrow the market asset against collateral. Arguments: asset amount, receiver. The caller's account must have this vault enabled as its controller and the collateral vault enabled as collateral. Use EVC batch to set that up in one transaction.
write repay(uint256,address)
Repay debt in the market asset. Arguments: asset amount, receiver (the account whose debt is repaid). Approve the asset to the vault first.
write liquidate(address,address,uint256,uint256)
Liquidate an unhealthy account. Arguments: violator account, collateral vault, repay amount, minimum collateral to seize. Repay amount must be approved first.
read debtOf(address)
Current debt of an account in this vault, in asset units.
read maxWithdraw(address)
Maximum assets the owner can withdraw right now, limited by cash and health.
read balanceOf(address)
Vault share balance of an account.
read convertToAssets(uint256)
Convert a share amount to asset units at the current exchange rate.
read totalAssets()
Total assets managed by the vault, including outstanding debt.
read asset()
The underlying ERC20 asset of the market.
read LTVList()
Vaults this vault accepts as collateral. Read LTVFull or LTVBorrow for each one before borrowing.
AccountLensother on ethereum0x2C5C13e4600AAbf77c1FdaA7b63d2D654DdFf7C5
read getAccountEnabledVaultsInfo(address,address)
Enabled controller and collateral vaults for an account, with balances and debts. Arguments: evc, account. Use this to see a full position in one call.
read getAccountLiquidityInfo(address,address)
Collateral value, liability value and health for an account in one controller vault. Arguments: account, vault (the controller vault).
VaultLensother on ethereum0x4A7Bc3bf4db4dD6eEE1b2c27A7C9e35A6fD14bDE
read getVaultInfoFull(address)
Full market data for a vault: asset, supply, borrows, rates, caps, oracle and collateral settings. Argument: vault.
read getVaultInfoDynamic(address)
Live market data for a vault: cash, totals, interest rates and prices. Argument: vault.
Ethereum Vault Connector (EVC)other on base0x5301c7dD20bD945D2013b48ed0DEE3A284ca8989
write batch((address,address,uint256,bytes)[])
Run several vault calls in one transaction on Base. Same rules as on Ethereum: approve assets to the vault first, and check account health at the end of the batch.
write enableController(address,address)
Set the borrowing vault for an account on Base. Arguments: account, vault.
write enableCollateral(address,address)
Enable a vault's shares as collateral on Base. Arguments: account, vault.
eVaultFactoryfactory on base0x7F321498A801A191a93C840750ed637149dDf8D0
read getProxyListSlice(uint256,uint256)
List Base market vault addresses by index range. Arguments: start, end.
read isProxy(address)
True if an address is a market vault deployed by this factory on Base.
Ethereum Vault Connector (EVC)other on arbitrum0x6302ef0F34100CDDFb5489fbcB6eE1AA95CD1066
write batch((address,address,uint256,bytes)[])
Run several vault calls in one transaction on Arbitrum. Approve assets to the vault first.
write enableController(address,address)
Set the borrowing vault for an account on Arbitrum. Arguments: account, vault.
write enableCollateral(address,address)
Enable a vault's shares as collateral on Arbitrum. Arguments: account, vault.
eVaultFactoryfactory on arbitrum0x78Df1CF5bf06a7f27f2ACc580B934238C1b80D50
read getProxyListSlice(uint256,uint256)
List Arbitrum market vault addresses by index range. Arguments: start, end.
read isProxy(address)
True if an address is a market vault deployed by this factory on Arbitrum.
Ethereum Vault Connector (EVC)other on avalanche0xddcbe30A761Edd2e19bba930A977475265F36Fa1
write batch((address,address,uint256,bytes)[])
Run several vault calls in one transaction on Avalanche. Approve assets to the vault first.
write enableController(address,address)
Set the borrowing vault for an account on Avalanche. Arguments: account, vault.
write enableCollateral(address,address)
Enable a vault's shares as collateral on Avalanche. Arguments: account, vault.
eVaultFactoryfactory on avalanche0xaf4B4c18B17F6a2B32F6c398a3910bdCD7f26181
read getProxyListSlice(uint256,uint256)
List Avalanche market vault addresses by index range. Arguments: start, end.
Ethereum Vault Connector (EVC)other on hyperevm0xceAA7cdCD7dDBee8601127a9Abb17A974d613db4
write batch((address,address,uint256,bytes)[])
Run several vault calls in one transaction on HyperEVM. Approve assets to the vault first. ABI not verified on Sourcify, so confirm the layout against the Euler docs before use.
eVaultFactoryfactory on hyperevm0xcF5552580fD364cdBBFcB5Ae345f75674c59273A
read getProxyListSlice(uint256,uint256)
List HyperEVM market vault addresses by index range. Arguments: start, end.
Ethereum Vault Connector (EVC)other on monad0x7a9324E8f270413fa2E458f5831226d99C7477CD
write batch((address,address,uint256,bytes)[])
Run several vault calls in one transaction on Monad. Approve assets to the vault first. ABI not verified on Sourcify, so confirm the layout against the Euler docs before use.
eVaultFactoryfactory on monad0xba4Dd672062dE8FeeDb665DD4410658864483f1E
read getProxyListSlice(uint256,uint256)
List Monad market vault addresses by index range. Arguments: start, end.