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-7538 proposes introducing a multiplier field for representing token balances in flexible units through metadata.
This article translates, summarizes, and expands on the following proposal.
More EIP explainers:
Overview
Background
ERC-20 and ERC-1155 are Ethereum token standards that define common interfaces for managing and transferring digital assets.
- ERC-20 generally represents one fungible asset per token contract.
- ERC-1155 supports multiple token types within a single contract, including fungible and non-fungible assets such as game items.
For ERC-20, see the following article.
For ERC-1155, see the following article.
ERC-1046 proposes a common metadata mechanism for exposing additional information about tokens.
For ERC-1046, see the following article.
ERC-1046: Extending ERC-20 token metadata
Proposed mechanism
ERC-7538 introduces a multiplier field to the metadata schema of compatible tokens, including ERC-20 and ERC-1155 tokens.
The multiplier adjusts how the underlying integer token quantity is represented to users.
For example, applying a multiplier of 0.01 to an underlying balance of 1,000 produces a displayed balance of 10.
This allows applications to represent quantities in meaningful units without changing the underlying integer balance.
Why is this useful?
A configurable multiplier gives developers greater flexibility when designing token interfaces and economic systems.
The proposal extends token metadata so that user-facing representations can be adjusted independently of the underlying token accounting.
Motivation
Many projects need both fungible and non-fungible tokens.
Token types
Fungible tokens represent interchangeable units, such as currency or points. Non-fungible tokens represent individually identifiable assets, such as artwork or collectibles.
Existing limitations
Existing standards support many use cases but may not directly express every desired denomination or display convention.
Fractional units
Token contracts generally operate on integer quantities. ERC-20 already supports fractional display through its optional decimals convention, but some applications need units other than powers of ten or comparable display conventions for other token types.
Inflation and deflation over time
Some economic systems require the relationship between underlying token units and displayed quantities to change over time.
A mutable multiplier could represent such changes at the presentation layer. It does not, by itself, change on-chain balances, total supply, market value, or contractual redemption rights.
Transfers in nonstandard increments
Applications may want users to enter quantities such as 0.5 units even though the contract processes integer amounts.
A compatible application can convert a displayed quantity into an underlying integer amount when the quantity is exactly representable.
Why does this matter?
Flexible denomination can be useful for games, digital artwork, and other digital asset systems.
It allows applications to present finer-grained quantities and adjust the relationship between accounting units and user-facing units.
The proposal addresses representation rather than introducing fractional EVM arithmetic. Token transfer amounts must still comply with the underlying contract's integer-based interface.
Specification
Tokens using the multiplier field must expose metadata conforming to the MultiplierMetadata schema through the relevant token metadata URI.
What is a token URI?
A token URI identifies the location of a token's metadata, commonly a JSON document.
What is MultiplierMetadata?
MultiplierMetadata defines a metadata field called multiplier that describes how the underlying token quantity should be converted into its user-facing representation.
interface MultiplierMetadata {
/**
* The positive multiplier for generating user-facing representation.
* Defaults to 1 if undefined.
* This is an EXACT VALUE, base 10. Beware of floating-point error!
**/
multiplier: string | undefined;
/**
* Decimals are no longer supported
**/
decimals: never;
}Multiplier
Purpose
The multiplier determines the relationship between a raw token quantity and its displayed representation.
The displayed quantity is calculated by multiplying the underlying integer quantity by the multiplier.
Default value
If multiplier is undefined, its default value is 1, meaning that no scaling is applied.
Representation
The multiplier is an exact base-10 value represented as a string.
Applications should parse and calculate it using exact decimal or rational arithmetic rather than binary floating-point arithmetic, which can introduce rounding errors.
No decimals support
The metadata schema does not support the conventional decimals field. The multiplier replaces that mechanism for describing the user-facing quantity.
Contract method restriction
Under the proposal, a token using multiplier must not expose a method named decimals.
Using both conventions could create ambiguity about how a client should scale raw balances.
The metadata multiplier changes how quantities are displayed without requiring the underlying token balance to change. Applications must interpret the scaling consistently when displaying balances or constructing transfers.
Rationale
Representing numerical values as strings
Accurate numeric representation is important when dealing with token quantities.
Binary floating-point calculations can introduce rounding errors. Representing the multiplier as a decimal string preserves its exact textual value and allows compatible clients to use suitable arbitrary-precision arithmetic.
A string representation alone does not guarantee accurate arithmetic; the client must parse and calculate the value correctly.
Multiplier instead of decimals
The conventional ERC-20 decimals mechanism scales raw quantities by a power of ten.
A multiplier allows more general scaling factors. This can support alternative denominations, changing display units, and quantities such as 0.5 where the corresponding raw amount is an integer.
The mechanism does not automatically implement monetary inflation, deflation, or token rebasing. Any such economic behavior must be defined separately.
ERC-1046 and gas efficiency
ERC-1046 provides a metadata foundation for describing the multiplier.
Applying the scaling in client software can avoid introducing additional on-chain arithmetic solely for display purposes. Any actual gas savings depend on the underlying implementation and the operations performed.
Overall design
The proposal combines exact decimal representation with flexible metadata-based scaling. Its main benefit is the ability to present token quantities in application-specific units while retaining integer-based accounting.
Compatibility
The multiplier convention is incompatible with the simultaneous use of a decimals method or metadata field under the proposed schema.
Clients that assume conventional ERC-20 decimals behavior may require additional integration work to interpret multiplier-based tokens correctly.
Security
Inaccurate multiplier handling
Incorrect parsing or calculation of a multiplier can introduce rounding errors and discrepancies between displayed quantities and raw transaction amounts.
Applications must ensure that conversions are exact where required and explicitly handle quantities that cannot be represented as integer token units.
Positive multiplier values
The multiplier must be strictly positive. Zero and negative values are invalid.
Invalid values could prevent users from interpreting balances or constructing meaningful transfers.
Very large or very small multipliers
Extreme scaling factors can create presentation and precision challenges for wallets.
Applications should preserve sufficient precision, communicate quantities accurately, and avoid misleading truncation.
A multiplier must be positive and processed using exact arithmetic. Wallets should also account for metadata integrity and possible changes to the scaling factor, particularly when users authorize transfers based on displayed amounts.
Citation
Gavin John (@Pandapip1), "ERC-7538: Multiplicative Tokens [DRAFT]," Ethereum Improvement Proposals, no. 7538, October 2023. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-7538.
Conclusion
ERC-7538 proposes a metadata multiplier for flexible token denomination. By separating raw integer accounting from user-facing quantities, it allows compatible applications to represent token amounts using scaling factors beyond conventional decimal-place settings.
Questions are welcome via Twitter @cardene777.
Other publications:



