Introduction
Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.
I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.
I also build and publish a variety of tools, libraries, and open-source projects.
ERC-6229 proposes a tokenized vault extension that temporarily restricts deposits and withdrawals while allowing users to schedule operations for settlement after a lock period.
This article explains the following proposal, with additional context and examples.
My other articles cover EIPs, BIPs, SLIPs, CAIPs, ENSIPs, RFCs, and ACPs.
Overview
ERC-6229 extends ERC-4626, the tokenized vault standard, with a lock period during which ordinary deposit and redemption operations are unavailable.
ERC-4626 provides methods for users, including EOAs and smart contracts, to deposit and withdraw assets subject to the vault's applicable limits. Some investment strategies, however, require a period during which capital remains committed and the vault cannot reliably settle new transactions at a current share price.
For background on ERC-4626, see:
ERC-4626: Understanding tokenized vaults and shares
Rather than simply rejecting every request during such a period, ERC-6229 lets users schedule deposits and redemptions. The requested operations can then be settled once the vault is unlocked.
Motivation
ERC-4626 offers a flexible framework for managing assets. Continuous entry and exit, however, may be unsuitable for certain vault strategies.
For example, unexpected withdrawals during a DeFi strategy could force the vault to unwind positions before the strategy is complete. New capital entering during the same period may also complicate allocation, valuation, or accounting and expose participants to unintended risks.
A vault may therefore need to suspend immediate deposits and withdrawals temporarily while completing its internal operations. ERC-6229 standardizes lock-state queries and provides a way to schedule future settlement.
This allows vault operators to conduct strategies under defined restrictions while users can submit requests during the lock period. Whether the resulting system is safe and fair depends on the vault's actual strategy, valuation, and settlement rules.
Specification
Required standards
An ERC-6229 vault implements the following standards.
| Standard | Role |
|---|---|
| ERC-4626 | Basic tokenized vault operations, including deposits, withdrawals, and conversion between assets and shares. |
| ERC-20 | Fungible token interface implemented by the vault shares. |
ERC-6229 adds lock periods and scheduled operations to the existing vault interface.
Terminology
| Term | Meaning |
|---|---|
| asset | The underlying ERC-20 token accepted and managed by the vault, such as USDC or WETH. |
| share | An ERC-20 vault token representing a proportional claim on the managed assets. |
| locked | A period during which ordinary deposits and withdrawals are unavailable, potentially while a strategy is running. |
| unlocked | A state in which ordinary ERC-4626 operations are available, subject to applicable vault limits. |
| round | An identifier that increments whenever the vault enters the locked state. |
The round identifier associates scheduled deposits and redemptions with particular lock periods.
View functions
isLocked
// 現在のボールトのロック状態を返す
function isLocked() external view returns (bool isLocked);Reports whether the vault is currently locked.
When the result is true, ordinary deposits and withdrawals are unavailable. When false, users can perform ordinary ERC-4626 operations subject to the vault's other restrictions.
The implementation determines how the lock state changes. External applications can use this function to determine whether they should present immediate operations or scheduling methods.
Return value
- isLocked: True when the vault is locked; otherwise false.
vaultRound
// 現在のボールトのラウンド番号を返す
function vaultRound() external view returns (uint256 vaultRound);Returns the current vault round. The round starts at zero and increments by one each time a new lock period begins.
The identifier lets applications associate scheduled operations with the round in which they were registered. It is not an arbitrary administrative counter to be changed independently of lock transitions.
Return value
- vaultRound: Current round identifier.
Methods
scheduleDeposit
// ロック期間中の入金予約を登録する
function scheduleDeposit(uint256 assets) external;Registers a deposit request while the vault is locked. The specified amount of underlying assets is transferred to the vault immediately, but shares are not yet minted.
The shares are issued after the lock is lifted through settleDeposits. Calling scheduleDeposit while the vault is unlocked must fail.
Parameter
- assets: Amount of underlying assets scheduled for deposit and transferred to the vault when the request is registered.
scheduleRedeem
// ロック期間中のシェアの償還予約を登録する
function scheduleRedeem(uint256 shares) external;Registers a redemption request while the vault is locked. The user transfers the specified shares to the vault immediately, but the corresponding underlying assets are not yet paid out.
The redemption is settled through settleRedemptions after the lock ends. Calling scheduleRedeem while unlocked must fail, as must an operation that cannot successfully transfer the required shares.
Parameter
- shares: Amount of shares transferred to the vault for subsequent redemption.
settleDeposits
// ロック解除後に予約された入金を処理し、新しいシェアを発行する
function settleDeposits(address depositor) external returns (uint256 newShares);Processes scheduled deposits after the vault is unlocked and mints the corresponding shares to the designated depositor.
The operation settles the depositor's pending assets using the applicable settlement share price. It can only be called while unlocked and must fail when there is no pending deposit to settle.
The applicable pricing policy is important when requests remain pending across several rounds, as discussed in the security section.
Parameter
- depositor: Address whose scheduled deposits are being settled.
Return value
- newShares: Number of newly minted shares.
settleRedemptions
// ロック解除後に予約された償還を処理し、資産を払い戻す
function settleRedemptions(address redeemer) external returns (uint256 burnShares, uint256 redeemAssets);Processes scheduled redemptions after the vault is unlocked. It calculates the assets payable for the shares submitted by the specified redeemer under the applicable settlement price.
The vault burns the scheduled shares and transfers the corresponding assets to the redeemer. This operation is only available while unlocked and must fail when there is no pending redemption.
Parameter
- redeemer: Address whose scheduled redemptions are being settled.
Return values
- burnShares: Amount of shares burned.
- redeemAssets: Amount of underlying assets paid to the redeemer.
getScheduledDeposits
// 指定ユーザーの予約された入金総額を返す
function getScheduledDeposits(address depositor) external view returns (uint256 totalAssets);Returns the total underlying assets associated with a user's pending deposits.
The query is available regardless of the lock state. The specification requires that this query not revert.
Parameter
- depositor: Address whose pending deposits are being queried.
Return value
- totalAssets: Total amount of scheduled deposit assets.
getScheduledRedemptions
// 指定ユーザーの予約された償還シェア総量を返す
function getScheduledRedemptions(address redeemer) external view returns (uint256 totalShares);Returns the total shares associated with a user's pending redemptions. Like getScheduledDeposits, this query must not revert and lets applications inspect outstanding requests.
Parameter
- redeemer: Address whose pending redemptions are being queried.
Return value
- totalShares: Total amount of scheduled redemption shares.
Events
ScheduleDeposit
event ScheduleDeposit(
address indexed sender,
uint256 assets,
uint256 round
);Emitted when scheduleDeposit successfully registers a deposit request during a lock period.
Parameters
- sender: Address submitting the request.
- assets: Amount of assets scheduled for deposit.
- round: Round in which the request was registered.
ScheduleRedeem
event ScheduleRedeem(
address indexed sender,
uint256 shares,
uint256 round
);Emitted when scheduleRedeem successfully registers a redemption request during a lock period.
Parameters
- sender: Address submitting the redemption request.
- shares: Amount of shares scheduled for redemption.
- round: Round in which the request was registered.
SettleDeposits
event SettleDeposits(
address indexed depositor,
uint256 newShares,
uint256 round
);Emitted when settleDeposits successfully settles a pending deposit after the vault is unlocked.
Parameters
- depositor: Address receiving the shares.
- newShares: Amount of newly issued shares.
- round: Round associated with the settled request.
SettleRedemptions
event SettleRedemptions(
address indexed redeemer,
uint256 burnShares,
uint256 redeemAssets,
uint256 round
);Emitted when settleRedemptions successfully settles a pending redemption after the vault is unlocked.
Parameters
- redeemer: Address receiving the underlying assets.
- burnShares: Amount of shares burned.
- redeemAssets: Amount of underlying assets paid out.
- round: Round associated with the settled request.
Rationale
The ERC-4626 extension intentionally defines a small interface.
Here, an interface means the common set of functions and events through which users and other contracts interact with a vault.
The proposal does not prescribe when a lock period starts or ends, nor does it specify which investment strategy operates during the lock. Those decisions differ significantly between protocols.
ERC-6229 instead defines the shared concepts: whether the vault is locked, how requests can be scheduled, and how they can be settled after unlocking.
The specification does not define a scheduled withdrawal function that fixes an exact amount of underlying assets to be withdrawn. During a lock period, the share price needed to calculate the corresponding number of shares may not be available or appropriate for settlement.
A request for a fixed asset withdrawal would therefore introduce uncertainty about the number of shares required and the applicable conversion rate.
ERC-6229 avoids this ambiguity by accepting two types of scheduled operations: a deposit request denominated in underlying assets, and a redemption request denominated in shares. The corresponding share issuance or asset payout is calculated later using the applicable settlement price.
Compatibility
ERC-6229 defines how the following ERC-4626 functions behave during lock periods.
- deposit
- mint
- withdraw
- redeem
These methods issue or burn shares based on the vault's asset-to-share conversion rules. While the vault is locked, its share price may not be suitable for immediate settlement.
Accordingly, these four methods must revert when isLocked returns true. Users can use scheduleDeposit or scheduleRedeem instead.
When integrating ERC-6229 into an existing ERC-4626 implementation, developers should also ensure that the standard's maximum-operation queries accurately reflect unavailable operations. Adding a revert check to the four state-changing functions alone does not necessarily establish full ERC-4626 compliance.
Security considerations
The timing of scheduled deposit and redemption settlement is particularly important.
A user may register a request during one lock period but not settle it immediately after the vault unlocks. If several rounds pass before settlement, the price applied to the request may differ from the price originally expected.
For example, a user schedules a deposit during round one but leaves the request pending until after round three. If settlement uses the price at the end of round three rather than the price associated with round one, the result may unfairly favor either the depositor or existing vault shareholders.
ERC-6229 leaves the exact solution to the implementation. Different approaches may suit different strategies and risk tolerances.
| Approach | Description |
|---|---|
| Require settlement before the next lock | Prevent the vault from entering another lock period until all pending deposits and redemptions have been settled. |
| Settle outstanding requests at the lock transition | Process pending requests when entering a new lock period, without waiting for each user to call a settlement function. |
| Record a settlement price for each round | Store the share price associated with the end of each round and associate requests with their original rounds. Later settlement uses the recorded price. |
Each approach has trade-offs.
- Requiring every request to be settled before locking can simplify accounting, but outstanding requests may prevent the vault from starting a new strategy.
- Settling outstanding requests at a transition may make settlement timing less predictable for users. Processing an unbounded number of requests in one transaction may also exceed practical gas limits.
- Recording prices for each round offers flexibility but requires additional storage and accounting logic, increasing implementation complexity and potentially gas costs.
ERC-6229 does not mandate one of these approaches. Implementers should select and document a settlement policy suited to the protocol's strategy, user experience, and security requirements.
They should also distinguish pending deposit assets from assets already attributable to issued shares, so that pending deposits are not inadvertently counted twice during share-price calculation.
Conclusion
ERC-6229 extends tokenized vaults with lock periods and scheduled deposits and redemptions. The extension helps coordinate user requests with strategies that require temporarily restricting immediate entry and exit. Correct settlement pricing, accounting, and liquidity management remain essential to the vault's implementation.
If you have questions, feel free to contact me on Twitter.
You can also find my work on the following sites.



