Overview
Using vault shares in DeFi
How Truss vault shares, as a standard ERC-20 token, can be used as collateral to borrow against, and the conditions a lending market must meet.
A vault share is a standard ERC-20 token, so the investment is itself a token. A holder can post shares as collateral wherever a lending market accepts them, and borrow against them. That gives the holder liquidity without redeeming, and without giving up the position. This page sets out what a lending market needs to know to accept them. It makes no claim that borrowing against shares is safe or available anywhere.
Key points
- Shares move like any ERC-20 token. Where a holder policy is bound, every address that receives them must pass it.
- A market prices a share with
convertToAssets, which is already net of fees. While the NAV is stale, that view keeps answering the last fresh price.- A liquidator that takes shares leaves through the vault's request queue, or the instant path where it is open.
- On a vault deployed with forced transfers, shares a market holds can be moved out of it.
What a lending market needs
Shares have 18 decimals. They transfer at any time, including while the vault is paused.
A vault may bind a holder policy, a contract that decides who may hold shares. When one is bound, it is asked about
every address shares arrive at, and never about the sender. The market's contract must pass it, and so must every
address the market sends shares to, such as liquidators and the helpers they route through. Otherwise a liquidation
reverts at the transfer. A vault without a holder policy lets any address hold shares. Read holderPolicy() to see
which applies.
These docs name no market that accepts any vault's shares. That is for the market and the vault owner.
Pricing the share
convertToAssets(shares) gives what shares are worth in USDC. It is net of the fees accrued but not yet paid, so it
is the price a buyer of shares should read.
The price comes from the vault's NAV (net asset value), what everything it holds is worth in USDC. When an input to
it is stale, such as a lapsed price feed or a late attestation, the views keep answering the price the vault last
measured fresh, scaled to the supply now. That price has no age limit, and it can step back to an older figure. The
vault's nav() view says whether the NAV is stale, and gives observedAt, when its oldest input was observed. A
market that needs a recent price applies its own limit to observedAt.
The share-price views revert at two moments: while an attested sub-account's figure is known to be wrong and waits for its NavGuardian, and inside one of the vault's own calls. A market's price reader should treat a revert as no price.
Liquidations
A liquidator that receives shares holds a position in the vault, not USDC. To turn it into USDC it can:
- open a redemption request and wait for a settler to fill it;
- execute the request on the instant path, where the vault has it open, within the path's limits; or
- sell the shares, or the pending request, to someone else.
A redemption waits for settlement, so a market should size its limits to the time a large exit can take. Where a withdrawal policy is bound, a liquidator it refuses cannot redeem at all, though it can still pass the shares on.
When forced transfers are on
A vault can be deployed with forced transfers, for lost keys and court orders. On such a vault the VaultAdmin and
every vault manager can move shares out of any address at once, except the vault and its silo. Shares a market holds
as collateral can be moved out from under its accounting, which leaves it short. The setting is fixed when the vault
is deployed. Read forcedTransfersEnabled() before accepting a vault's shares.
Where to read more
| Page | What it covers |
|---|---|
| Vault policies | The holder and withdrawal policies, and where each is asked |
| Forced transfers | What a forced transfer can move, and who can make one |
| Reading vault state | The views a market reads, including nav() |
| Withdrawals | How a redemption request is settled and claimed |
| Instant withdrawals | When a redemption can be paid at once |