Core Vaults Integration Guide
Reference for integrating deposit and redemption flows with Mellow Core Vaults, including contract ABIs, supported networks, fees, errors, and events, with TypeScript examples.
1. Architecture Overview
Core Components
Component
Role
Deposit Lifecycle
Async queue
Step 1 — User calls deposit(assets, referral, merkleProof)
└─► Request stored as a timestamped checkpoint in DepositQueue
Step 2 — Handle Report submitted handleReport(priceD18, depositTimestamp)
└─► Processes all requests older than the configured depositInterval
└─► Shares are allocated lazily using a Fenwick tree (computed at claim time)
Step 3 — User calls DepositQueue.claim(account)
└─► Share amount computed, deposit fee deducted, shares transferred to userSync queue
Redemption Lifecycle
2. Supported Networks
Chain ID
Network
3. Vault Discovery
4. TypeScript Interfaces & Constants
5. ABIs
5.1 Deposit Queue ABI
5.2 Redeem Queue ABI
5.3 ERC20 ABI (subset — for approval)
5.4 Vault ABI (subset — for share balance lookup)
5.5 ShareManager ABI (subset)
6. Deposit
Overview
Steps
Code Example
7. Cancel Deposit
Overview
Steps
Code Example
8. Claim Deposit
Overview
Steps
Code Example
9. Redeem
Overview
Steps
Code Example
10. Claim Redeem
Overview
Steps
Code Example
11. Fees
Fee Type
When Applied
Effect on Integrator
12. Error Reference
Error
Contract
When it occurs
What to do
13. Events Reference
Event
Contract
Emitted when
Example: watching for claim events with viem
14. Integration with Para
Last updated

