Deposit & Withdraw

function deposit(uint256 assets, address receiver) returns (uint256 shares)
function withdraw(uint256 shares, address receiver, address owner) returns (uint256 assets)

Deposit Flow

  1. User approves USDC/ETH.

  2. deposit() → mints shares.

  3. Shares = assets * totalSupply / totalAssets.

Withdraw Flow

  1. withdraw() → burns shares.

  2. Returns shares * totalAssets / totalSupply.

  3. 1% fee if current TVL > HWM.

No slippage. No IL. Pure NAV.

Last updated