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.
Background
ERC-7535 extends ERC-4626 to support native assets such as ETH. This article explains how an ERC-4626-style vault receives and pays out native ETH, what changes for integrators, and what implementers need to consider.
This explanation is based on the specification linked below.
ERC-7535 was in Review on January 14, 2024, when the Japanese article was written. It has since reached Final.
I also cover other EIPs in the proposal index.
Overview
ERC-7535 extends the existing Ethereum vault standard, ERC-4626. It keeps the function interface while changing the behavior needed to treat Ether or another native asset as the underlying asset.
ERC-4626 defines how to manage tokenized assets. For example, a vault can represent an investment fund through shares that give holders a claim on the fund's assets.
The extension lets developers retain the ERC-4626 framework while managing Ether or another chain's native asset directly in the contract. This makes it easier to build financial products and services around native assets, with more flexibility in how assets move through the vault.
For background on ERC-4626, see the accompanying article.
[ERC-4626] How tokenized vault shares work
Motivation
A standard for tokenized Ether vaults is especially useful for liquid staking tokens, which represent staked ETH through fungible ERC-20 wrappers. Users can stake ETH through a vault that issues a fungible share token they can hold or use elsewhere.
The proposal brings the same benefits as ERC-4626, a common contract interface for managing assets and providing liquidity. Keeping its function interface gives the extension as much compatibility as possible with existing tools and protocols.
Developers get a reusable framework for tokens associated with ETH staking. The share token acts as an ERC-20 wrapper around the vault's staking position. Integrating with tools already built for ERC-4626 can reduce the amount of new code and make it easier for users to work with the shares.
The native-asset extension uses ERC-4626's existing framework to simplify the management of tokens associated with ETH staking and make asset management more flexible on Ethereum.
Specification
ERC-7535 vaults must implement ERC-4626, including its ERC-20 share-token interface, with the behavioral overrides below for asset, deposit, and mint.
Changes from ERC-4626
- Asset amounts are denominated in wei of Ether, replacing ERC-20 balance units for the underlying.
- Transfers use native Ether transfers via
sendorcallin place of ERC-20transfercalls. - Approvals for transferring the underlying via ERC-20
transferFromare omitted. - The
depositandmintmethods arepayable, so they can receive Ether and change state. - The
depositmethod usesmsg.valueas its primary input and may ignore theassetsparameter.
These changes let tokenized vaults handle Ether directly while preserving the ERC-4626 and ERC-20 interfaces. Integrators can reuse tooling that works at the interface level, with native-asset handling where the behavior differs.
Methods
asset
- Function name:
asset. - Type: function.
- State mutability:
view.
The method takes no inputs and returns an address named assetTokenAddress. It must return 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE.
ERC-7528 defines this sentinel address as a way to identify Ether. Token addresses normally point to the contracts that manage those tokens. This special value identifies Ether itself, which has no ERC-20 token contract.
The return value tells integrators that the underlying asset is native ETH. It should be interpreted as the ERC-7528 sentinel rather than as an address to call.
deposit
- Function name:
deposit. - Type: function.
- State mutability:
payable.
The method issues vault shares for Ether deposited.
- The call accepts Ether because the method is
payable. - The amount of Ether sent,
msg.value, is the primary input for calculating the returned number of shares. The vault may ignoreassets. - The vault must emit a
Depositevent. - The call must revert if the entire
msg.valuecannot be deposited, for example because of a deposit limit or slippage.
Inputs and output:
assets(uint256): The amount of Ether requested for deposit. The implementation may ignore this input.receiver(address): The recipient of the shares.shares(uint256, return value): The number of shares issued for the Ether deposited.
Use deposit when the input is an amount of Ether. The vault uses the value attached to the transaction to determine the number of shares, and reverts if it cannot deposit the full amount.
mint
- Function name:
mint. - Type: function.
- State mutability:
payable.
The method issues exactly the requested number of shares in exchange for a deposit of Ether.
- The call accepts Ether because the method is
payable. - The vault must emit a
Depositevent. - The call must revert if it cannot mint all requested shares, for example because of a deposit limit, slippage, or insufficient Ether attached in
msg.value.
Inputs and output:
shares(uint256): The exact number of shares to mint.receiver(address): The recipient of the shares.assets(uint256, return value): The amount of Ether deposited in exchange for the shares minted.
Use mint when the input is an exact number of shares. The call must revert if the vault cannot issue that amount.
Events
Event usage follows ERC-4626.
Wrapped ETH
An ERC-4626 vault with an ERC-20 Wrapped ETH token as its asset cannot also implement ERC-7535 for that asset. The latter applies when the underlying is native ETH.
Rationale
The design aims to retain the ERC-4626 interface while specifying only the behavioral differences necessary for native assets.
Keeping the assets input to deposit
The standard preserves the assets input and makes its use optional. Because msg.value must fund the deposit anyway, it serves as the primary amount. Enforcing equality between both values adds gas for a redundant check. Allowing both values to influence the outcome when they differ can produce surprises.
Allowing msg.value to differ from assets in mint
A caller can attach more Ether than the vault needs. If the method required msg.value to equal the returned assets exactly, such calls would revert unnecessarily. The vault implementer decides whether to refund or retain the excess. Depositors should send as close to the expected amount as possible.
Implementation differences from ERC-4626
The specification does not prescribe how to handle fallback or __default__ methods, extra payable vault functions, or Ether forcibly sent to the contract. These implementation-level differences accommodate native assets in place of an ERC-20 underlying.
The extension preserves the interface existing ERC-4626 tools use while giving implementers room to handle Ether and other native assets directly.
Ignoring the assets parameter on deposit
A deposit must attach Ether in msg.value, making that value the natural primary input. Using assets as well can require a strict equality check, which adds gas. An implementation could require assets to be 0, but that would also cost gas to enforce. The standard therefore permits ignoring the parameter.
Allowing a mint when msg.value does not equal the returned assets
A user might send slightly more ETH than required. Requiring the attached value to match the reported cost in assets would revert otherwise valid calls. The vault can either retain the excess or send it back. Users should supply as close to the exact amount as they can.
This gives vault implementers flexibility and reduces the chance that a user pays gas for an unnecessary revert.
Backwards compatibility
ERC-7535 preserves ERC-4626's function interface and general vault model. Because ETH is not an ERC-20 token, some implementation behavior changes. For example, msg.value takes priority over assets in deposit.
The specification lists no known compatibility issues with other standards. Native ETH support extends the range of use cases for ERC-4626-style vaults, but integrators still need to account for the native funding behavior.
Security considerations
ERC-4626's security considerations still apply. Using ETH as the vault asset brings additional concerns.
Using call and send
The specification calls for care when transferring Ether via call because executing code at the recipient can expose reentrancy risks beyond those expected when transferring a trusted ERC-20 token. It recommends considering send, which forwards a small gas stipend. That recommendation is specific to the proposal. A small stipend is not a general substitute for safe accounting, and callers still need to handle transfer failures.
Forced ETH transfers
SELFDESTRUCT can transfer ETH into a vault without using its deposit functions. Vault implementers should verify that these transfers cannot disrupt accounting. They should also check that any other payable methods do not interfere with how assets and shares are counted.
See the following resource for background on the SELFDESTRUCT opcode.
For more on how SELFDESTRUCT behaves, see the following article.
https://chaldene.net/solidity-selfdestruct
Using Wrapped ETH
An existing ERC-4626 system can consider sticking to ERC-20 assets and using a Wrapped ETH token as its underlying rather than implementing ERC-7535. The differences between the two standards can increase implementation complexity and security review costs.
Use cases focused on native ETH, such as a vault that wraps ETH or issues a liquid staking token, are a more natural fit for ERC-7535. In these use cases, ETH is the underlying and the wrapping or staking position is represented by the shares.
Citation
Joey Santoro (@joeysantoro), “ERC-7535: Native Asset ERC-4626 Tokenized Vault,” Ethereum Improvement Proposals, no. 7535, October 2023. Available at https://eips.ethereum.org/EIPS/eip-7535
Conclusion
ERC-7535 adapts ERC-4626 for native assets such as Ether. It preserves the familiar interface and changes the funding and transfer behavior to accommodate ETH.
If you have questions, feel free to reach out by direct message.
I also publish elsewhere.



