CANTORFI VAULT GUIDE

The ERC-4626 vault standard, explained

An ERC-4626 vault is a smart contract that takes one ERC-20 asset and issues shares, themselves an ERC-20, that represent a proportional claim on everything the vault holds. The standard fixes the function names and the accounting, so any application can deposit into any compliant vault and read what a share is worth without custom code.

Explainer · CantorFi vaults use a custom receipt, not ERC-4626
01

Deposit, mint, withdraw, redeem

The standard defines four entry and exit functions. deposit takes an amount of assets and returns shares; mint takes a number of shares and pulls the assets needed. withdraw takes an amount of assets out; redeem burns a number of shares. Preview functions return what each call would do before it is sent.

  • asset(): the token the vault accepts
  • totalAssets(): everything the vault manages
  • convertToShares and convertToAssets: the current exchange rate
  • previewDeposit, previewMint, previewWithdraw, previewRedeem
02

Why the share price goes up

Yield is not paid out. When the vault earns, totalAssets grows while the number of shares stays the same, so each share converts to more assets. A holder's balance does not change; its value does. That makes vault shares easy to hold and to use as collateral elsewhere.

03

The known weakness: share inflation

The first depositor into an empty vault can deposit a tiny amount, then send assets directly to the vault to inflate the price of a share. The next depositor's amount rounds down to zero shares and is captured. Vaults defend against this with virtual shares and a decimals offset, or with a seed deposit made at deployment.

04

When a vault does not use ERC-4626

The standard assumes that everything a depositor owns is in the share price. A lending vault where interest is claimed separately, or where receipts must not circulate freely, does not fit.

CantorFi's vaults issue a custom receipt, CVT, with restricted transfers and interest claimed apart. It is deliberately not an ERC-4626 share, and an integration written for ERC-4626 must not assume that it is.

Deployment boundary

Testnet evidence is not mainnet performance.

CantorFi's current public deployment is a Base Sepolia developer preview with temporary governance. Test balances, rates, volume, fees and positions have no economic value and must not be reported as production TVL, revenue, liquidity or guaranteed return.

FAQ

Questions about ERC-4626 vault

01What is an ERC-4626 vault?

A contract that accepts one ERC-20 asset and issues ERC-20 shares representing a proportional claim on the vault's holdings, with standard functions to deposit, withdraw and read the share price.

02Is an ERC-4626 share an ERC-20 token?

Yes. Shares are ERC-20 tokens, so they can be transferred and used in other protocols.

03What is the difference between deposit and mint?

deposit fixes the assets you put in and returns the shares; mint fixes the shares you want and takes the assets required.

04Are CantorFi vaults ERC-4626?

No. They issue a custom receipt called CVT, with restricted transfers and separately claimed interest.