Depositing ETH
Calldeposit() on MakxYieldVault with ETH:
- The vault collects any pending interest from YieldPad — share price is updated before your deposit.
- Protocol
feeBpsis deducted from your ETH (if non-zero). Fee goes to protocol owner. - You receive METH shares proportional to your contribution relative to
totalAssetsbefore the deposit.
Withdrawal process
Withdrawal is a two-step process with a mandatory cooldown period. This protects against forced emergency LP liquidations and ensures the vault does not need to liquidate active positions just to service withdrawals.Step 1 — Request withdrawal
withdrawalCooldown seconds). You can only have one active withdrawal request at a time per address.
Step 2 — Redeem after cooldown
requestedAt + withdrawalCooldown has elapsed.
- Collects pending interest from YieldPad.
- Burns your shares and sends you ETH at the current share price.
- ETH out is capped at the vault’s idle balance — bonded ETH is not immediately available.
redeem() again later.
Cancel a pending request
Why a cooldown?
The vault lends ETH to active token launches. That ETH (bondAmount) is locked in Uniswap V4 LP positions and only unlocks when a launch is liquidated or the bond is repaid. If instant withdrawals were allowed, a single large depositor could force emergency liquidations of active launches — harming creators and disrupting the protocol.
The cooldown gives the vault time to accumulate idle ETH organically from:
- New deposits from other users
- Bonds repaid by token creators
- Interest payments (which increase share price, not idle ETH directly)
- Liquidation proceeds
Available vs. bonded ETH
| ETH type | Available for withdrawal |
|---|---|
| Idle ETH (vault balance) | Yes, immediately after cooldown |
| Bonded ETH (lent to launches) | No — unlocks only on repayment or liquidation |
address(vault).balance
Check bonded ETH: vault.totalBondedETH()
Check total assets: vault.totalAssets() (both combined)
Protocol fee on deposit and redeem
The vault’sfeeBps (max 1000 = 10%) is deducted from both deposits and redemptions. The fee goes to the protocol owner. Fee of 0 is also valid (no fee).