Lagoon Deposit Module
The Lagoon Deposit Module, built by Lagoon Finance, is third-party vault software a strategy vault can use to tokenize deposits. It uses ERC-7540, an extension of the ERC-4626 vault standard.
ERC-4626 defines a standard interface for tokenized vaults. ERC-7540 adds asynchronous deposits and withdrawals: a user's request is separate from its settlement. That lets a vault process entries and exits in batches. The result is simpler operations, fairer settlement pricing, and better protection against front-running and mispricing in volatile markets.
Asynchronous deposits and withdrawals
Lagoon splits both deposits and withdrawals into two phases: the request and the settlement.
1. Request phase
- Deposits. When you request a deposit, your assets move into a pending silo. No shares are minted yet, and pending assets do not earn yield. Yield starts only once the deposit is settled into the vault. You can cancel a deposit request while it is still pending in the current round, meaning until the vault's next NAV update is proposed. After that point the request is locked in and will be settled.
- Withdrawals. Withdrawal requests are also recorded in the pending silo. On Lagoon v0.5 vaults (DAMMstable, DAMMeth), withdrawal requests cannot be cancelled. This keeps settlement predictable. Lagoon v0.6 vaults (DAMMbtc) add a cancel function: a withdrawal request can be cancelled until the next NAV update is proposed, which may come before settlement.
2. Settlement and claim phase
- Settlement. An oracle provides the vault's net asset value (NAV). Whoever configures the vault chooses the oracle. It can be a centralized oracle or a decentralized oracle run by an external network. Settlement frequency is not fixed either. Whoever configures the vault decides how often to update NAV and process requests: once a day, several times a day, or even every few minutes, depending on the design. These vaults settle periodically on no fixed schedule, sometimes days to weeks apart; contact [email protected] for timing.
- Claiming. After settlement, users claim their shares (for deposits) or assets (for withdrawals). Until claimed, they are held by the vault contract for you, with no time limit. Settled shares keep earning yield while they wait to be claimed, so claiming late costs nothing. Settled withdrawal assets are fixed at the settlement NAV.
Why this model
- Batch efficiency. Settling many requests at once cuts gas costs and operational overhead.
- Fair valuation. Everyone who settles together gets the same NAV-based price.
- Security. Explicit claims protect users. The request rules (deposits can be cancelled until the next NAV update is proposed; withdrawals are final on v0.5 vaults and cancellable only until the next NAV update on v0.6) balance flexibility with predictability.
Optional synchronous flow
Lagoon is built around asynchronous flows. From version 0.5 it also supports an optional synchronous deposit: the oracle sets the vault's NAV, and while that NAV is within its time-to-live (TTL), a deposit mints shares in the same transaction.
Version 0.6 adds synchronous redemptions, so a v0.6 vault with a valid NAV behaves like a standard ERC-4626 vault, with no waiting.
These strategy vaults currently run fully asynchronous: deposits and withdrawals are settled at the next NAV update.
Whitelisting
A Lagoon vault can restrict who may enter and exit through an address whitelist:
- Whitelisted access. Only approved wallet addresses can deposit or withdraw.
- Composability preserved. The restriction applies only to entering and leaving the vault. Once minted, shares are fully transferable and tradable by any address, so they stay composable across DeFi.
- Configurable. A vault can run with or without a whitelist. It can be fully public, or limited to a private set of addresses.
A vault can be open, or limited to approved addresses. DAMMstable, DAMMeth and DAMMbtc currently run in whitelist mode.
Charges
Lagoon's vault protocol can take its own protocol fee when a settlement runs. protocolFee in the API samples is Lagoon's field, not a DAMM charge.
Any DAMM charge is defined in the terms as a software licence fee.
Lagoon v0.6 can also take a charge on entry or exit, from shares when a deposit or withdrawal settles. Older v0.5 vaults (DAMMstable, DAMMeth) can only add that through external contracts.
The vault protocol's field names for those charges stay in the API samples. They are the vault protocol's fields.
Why the software uses Lagoon
- Scalable entry and exit. Handles deposits and withdrawals for many users without bottlenecks.
- Strong risk controls. Separating request from settlement prevents mispricing and exploits in volatile markets.
- Clean separation. Lagoon plugs straight into Safe and Zodiac, and it only handles deposits, withdrawals and share accounting. It stays out of strategy execution and vault administration.
- Proven security. Lagoon has been audited several times and secures over $100M in TVL in production. That figure is Lagoon's, not a DAMM total.
Further reading
- Lagoon Finance documentation: technical specs, integration guides and developer references.
- ERC-7540: the standard behind asynchronous deposits and withdrawals.
- ERC-4626: the base vault standard that ERC-7540 extends.