What you can do
| deposit | Deposit an accepted asset into a Liquid vault and receive shares | For ERC-20 assets: approve the Teller, then call Teller.deposit(asset, amount, minimumMint). Shares are minted to msg.sender. Or use depositWithPermit to skip the approval. |
| check share price | Read the value of one share | Accountant.getRate() (base asset) or getRateInQuote(quoteToken). Multiply by the share balance and divide by the Accountant decimals. |
| check balance | Read how many vault shares an account holds | BoringVault.balanceOf(account). Value = shares x getRate() / 10^decimals. |
| request withdrawal | Ask the queue to redeem shares for an asset | Approve the BoringOnChainQueue for the shares, then call requestOnChainWithdraw(asset, amountOfShares, discount, secondsToDeadline). A solver fills the request later. |
Withdrawals are not instant. They go through a queue that a solver fills, so the exit can take time and depends on solver liquidity.
The strategy is set by the vault manager. Allocations can change, and the vault can lose value in a bad strategy.
The Accountant can pause. getRateSafe and getRateInQuoteSafe revert while paused, and deposits and withdrawals may stop.
Access to the Teller and queue is set by the vault RolesAuthority. A wallet without permission cannot deposit or request a withdrawal.
Contracts
Read any function, or build a write and sign it. Amounts are in base units (1 USDC = 1000000).Liquid ETH BoringVault (share token)vault on ethereum0xf0bb20865277aBd641a307eCe5Ee04E79073416C
read balanceOf(address)
Vault share balance of an account. The BoringVault is also the ERC-20 share token.
read totalSupply()
Total vault shares outstanding.
read decimals()
Decimals of the share token. Use it to format balances.
read name()
Share token name.
read symbol()
Share token symbol.
write approve(address,uint256)
Approve a spender, such as the withdraw queue, to move shares. Needed before requestOnChainWithdraw on the queue.
write transfer(address,uint256)
Send vault shares to another address.
Liquid ETH Tellerrouter on ethereum0x9AA79C84b79816ab920bBcE20f8f74557B514734
write deposit(address,uint256,uint256)
Deposit depositAmount of depositAsset and mint shares to msg.sender. Approve the Teller for ERC-20 assets first. minimumMint is the slippage floor: the call reverts if fewer shares would be minted. Reverts if the asset is not supported or the caller lacks permission under the vault RolesAuthority. msg.value is for native ETH deposits only.
write depositWithPermit(address,uint256,uint256,uint256,uint8,bytes32,bytes32)
Same as deposit, but uses an EIP-2612 permit for approval: (asset, amount, minimumMint, deadline, v, r, s). Saves one approval transaction for tokens that support permit.
read accountant()
Returns the Accountant contract that prices shares for this vault.
read vault()
Returns the BoringVault this Teller mints shares for.
Liquid ETH Accountantother on ethereum0x0d05D94a5F1E76C18fbeB7A13d17C8a314088198
read getRate()
Share price in the vault base asset, scaled by the Accountant decimals. Read it to value a share balance.
read getRateSafe()
Same as getRate, but reverts if the Accountant is paused. Use it when a stale or paused price must not be used.
read getRateInQuote(address)
Share price expressed in a quote asset, for example WETH. Argument: quote token address.
read getRateInQuoteSafe(address)
Same as getRateInQuote, but reverts if the Accountant is paused.
read decimals()
Decimals used by getRate and the quote functions.
read vault()
Returns the BoringVault this Accountant prices.
read base()
Returns the base asset the share price is quoted in.
Liquid ETH BoringOnChainQueue (withdraw queue)other on ethereum0x0D2dF071207E18Ca8638b4f04E98c53155eC2cE0
write requestOnChainWithdraw(address,uint128,uint16,uint24)
Request a withdrawal: (asset, amountOfShares, discount, secondsToDeadline). The queue takes the shares, so approve the queue for the shares first. A solver fills the request later. Returns a request id (bytes32). Check the queue status before relying on timing.
read boringVault()
Returns the BoringVault whose shares this queue accepts.
Liquid USD BoringVault (share token)vault on ethereum0x08c6F91e2B681FaF5e17227F2a44C307b3C1364C
read balanceOf(address)
Vault share balance of an account. The BoringVault is also the ERC-20 share token.
read totalSupply()
Total vault shares outstanding.
read decimals()
Decimals of the share token. Use it to format balances.
write approve(address,uint256)
Approve a spender, such as the withdraw queue, to move shares.
write transfer(address,uint256)
Send vault shares to another address.
Liquid USD Tellerrouter on ethereum0x4DE413a26fC24c3FC27Cc983be70aA9c5C299387
write deposit(address,uint256,uint256)
Deposit depositAmount of depositAsset and mint shares to msg.sender. Approve the Teller for ERC-20 assets first. minimumMint is the slippage floor. Reverts if the asset is not supported or the caller lacks permission under the vault RolesAuthority.
write depositWithPermit(address,uint256,uint256,uint256,uint8,bytes32,bytes32)
Same as deposit, but uses an EIP-2612 permit: (asset, amount, minimumMint, deadline, v, r, s).
read accountant()
Returns the Accountant contract that prices shares for this vault.
read vault()
Returns the BoringVault this Teller mints shares for.
Liquid USD Accountantother on ethereum0xc315D6e14DDCDC7407784e2Caf815d131Bc1D3E7
read getRate()
Share price in the vault base asset, scaled by the Accountant decimals.
read getRateSafe()
Same as getRate, but reverts if the Accountant is paused.
read getRateInQuote(address)
Share price expressed in a quote asset. Argument: quote token address.
read getRateInQuoteSafe(address)
Same as getRateInQuote, but reverts if the Accountant is paused.
read decimals()
Decimals used by getRate and the quote functions.
read vault()
Returns the BoringVault this Accountant prices.
read base()
Returns the base asset the share price is quoted in.
Liquid USD BoringOnChainQueue (withdraw queue)other on ethereum0x38FC1BA73b7ED289955a07d9F11A85b6E388064A
write requestOnChainWithdraw(address,uint128,uint16,uint24)
Request a withdrawal: (asset, amountOfShares, discount, secondsToDeadline). Approve the queue for the shares first. A solver fills the request later. Returns a request id (bytes32).
read boringVault()
Returns the BoringVault whose shares this queue accepts.