On Sepolia testnet, the vault uses MockUSDC (a test ERC-20 with 6 decimals). You can mint test tokens
from the MockUSDC contract. All USDC values in this guide refer to raw 6-decimal units unless otherwise
noted.
Depositing
There are two ways to deposit into the vault:- deposit(assets, receiver)
Specify the exact USDC amount to deposit. The vault calculates and mints the proportional number of
shares based on the current share price.Parameters:
assets— USDC amount in raw units (e.g.,1000000000for 1,000 USDC)receiver— address that receives the minted share tokens
Prerequisites
Before depositing, you must approve the PoolVault to spend your USDC:How Shares Are Calculated
When you deposit, the number of shares minted is determined by the current pool equity and total supply:totalSupply is zero (first deposit), shares are minted 1:1 with the deposit amount.
Your deposit does not change the share price. Both the numerator (pool equity) and denominator (total
supply) increase proportionally. Other LPs are not diluted by new deposits.
Withdrawing
There are two ways to withdraw from the vault:- withdraw(assets, owner, receiver)
Specify the exact USDC amount to withdraw. The vault calculates and burns the required shares.Parameters:
assets— USDC amount to withdraw in raw unitsowner— address whose shares will be burnedreceiver— address that receives the USDC
Utilization Restriction
Withdrawals are restricted by the pool’s utilization cap. You cannot withdraw if doing so would push the pool’s notional utilization abovemaxUtilizationBps (default: 80%).
maxWithdrawable returns 0 and no withdrawals
are possible until positions close and utilization decreases.
Why restrict withdrawals?
Why restrict withdrawals?
The utilization cap prevents bank-run dynamics. Without it, LPs could withdraw all liquidity during
adverse market conditions, leaving the pool unable to settle matured positions or absorb trader losses.
The cap ensures a minimum reserve ratio is always maintained relative to open exposure.
What if I need to withdraw urgently?
What if I need to withdraw urgently?
You can always withdraw up to the
maxWithdrawable amount. If utilization is high and your full
balance exceeds the withdrawable amount, you can make partial withdrawals as positions close and
utilization decreases. There is no lock-up period — only the utilization constraint.Does the allowlist affect withdrawals?
Does the allowlist affect withdrawals?
No. The LP allowlist only restricts deposits. Any shareholder can always withdraw their shares,
subject only to the utilization cap.
Checking Withdrawable Amount
Before initiating a withdrawal, query the maximum withdrawable amount:ERC-4626 Rounding
The ERC-4626 standard specifies thatredeem rounds down when converting shares to assets. This means
the actual USDC received may be up to 1 wei less than the theoretical value.
Full Deposit and Withdraw Flow
Hold shares
Your shares represent proportional ownership of pool equity. Share price changes as traders
trade, positions settle, and fees are collected.
Check withdrawable amount
Call
poolVault.maxWithdraw(yourAddress) to see how much you can currently withdraw given the
utilization cap.Related Pages
ERC-4626 Vault
Understand how the vault operates as counterparty to all trader positions.
Pool Utilization
Deep dive into utilization measurement and withdrawal restrictions.