Vault Share Units in 2027: Convert ERC-4626 Shares Into Asset Exposure
What Matters
A vault balance is useful only when its units are explicit. Record the raw share integer, the share token’s decimals, the underlying asset and that asset’s decimals. Then distinguish a conversion record from an exit preview and an owner-specific limit. A correctly formatted number still needs a correctly identified asset.
The Signal
The largest mistake in a share worksheet can be a decimal mismatch, not a small rounding difference. In the hypothetical example below, formatting a six-decimal asset return with eighteen decimals understates the quantity by a trillion times. Exact arithmetic cannot rescue the wrong unit label.
DN Alpha Thesis
Build the exposure record in two stages: preserve the contract’s raw quantities, then normalize each quantity using its own token precision. Keep accounting exposure, estimated redemption output and exit constraints in separate fields. This produces a record that a second person can reproduce without treating a displayed vault balance as spendable cash.
2027 edition. Evidence checked: 27 November 2026. The edition year is a planning label. It does not imply that 2027 conditions have been observed. All worksheet defaults and numerical rates in the worked examples are invented.
1. A share count needs an asset bridge
Suppose a dashboard says “1.000000000000000001 shares.” That is a quantity of the share token. To describe the underlying exposure, the record also needs a conversion result in the underlying token’s units. Neither field supplies a dollar valuation by itself.
The decimal convention is simple: a token’s human-readable quantity is its raw integer divided by ten raised to its decimal count. The ERC-20 specification describes this display convention. It is not a promise that every token uses eighteen decimals or that a data source has labeled them correctly.
Use two independent equations:
- Displayed shares = raw shares ÷ 10share decimals.
- Displayed assets = returned raw assets ÷ 10asset decimals.
The second numerator must come from the conversion record you intend to represent. Dividing a share balance by the asset’s decimal scale does not perform a share-to-asset conversion. Multiplying an already raw balance by its decimal scale again introduces a second error.
A useful working table therefore has a quantity column, a unit column and an evidence column. “1.25” without “underlying asset units, from this return value at this observation” is incomplete. Keeping those labels costs little; repairing an unlabeled spreadsheet after several transfers costs much more.
2. A deployed reference: sDAI on Ethereum
This article uses an identified deployment to ground the unit discussion. The official Sky sDAI repository associates commit 665879762f8b5df5d234463f45d1d6a49bd4fbeb with Ethereum mainnet sDAI at 0x83F20F44975D03b1b09e64809B757c47f942BEeA. That is the reference deployment here, not a recommendation to hold it.
The pinned SavingsDai implementation declares eighteen share decimals. Its asset is obtained through the configured DaiJoin adapter. Its conversion uses an accumulated rate, chi, scaled by RAY = 10^27; the share-to-asset path divides shares × chi by RAY. The source updates the rate calculation for elapsed time when needed. This is an implementation-specific formula, not a universal vault formula.
On the research date, the verified sDAI contract page exposed the DaiJoin constructor address. The verified adapter’s constructor record linked it to DAI at 0x6B175474E89094C44Da98b954EedeAC495271d0F. The verified DAI source declares eighteen asset decimals. Sky’s archived DAI developer guide independently identifies that address and precision.
This establishes a documented deployment and unit pair. It does not establish a current exchange rate, yield, market price or available withdrawal. No block-pinned rate call or funded transaction was performed for this article. Equal decimal counts also do not establish one share equals one asset: decimal precision and the conversion relationship answer different questions.
3. Keep conversion, preview and maximum in their own columns
The ERC-4626 standard gives these methods different meanings:
| Method | Input or subject | Output unit | Role in this record |
|---|---|---|---|
convertToAssets | Raw shares | Raw assets | Idealized conversion, rounded down; excludes fees |
previewRedeem | Raw shares | Raw assets | Redemption estimate including applicable withdrawal fees; ignores redemption limits |
maxRedeem | Owner | Raw shares | Owner-specific redemption limit |
maxWithdraw | Owner | Raw assets | Owner-specific withdrawal limit |
For a manually collected record, retain the method name alongside every return value. Do not rename the conversion column “cash available.” Do not fill a missing preview with the conversion value merely because both use asset units. The worksheet below leaves missing values unknown.
Our existing vault withdrawal checks explain how to compare a proposed exit with the appropriate limit. This article supplies the earlier unit-normalization step. Its maximum field formats an entered share limit; it deliberately does not decide whether a proposed transaction will execute.
4. Worked example: eighteen share decimals, six asset decimals
Consider an invented vault, unrelated to the sDAI deployment. Your record contains 1000000000000000001 raw shares and a conversion return of 1250000 raw assets. You have separately established eighteen share decimals and six asset decimals for this example.
| Record | Raw integer | Correct display |
|---|---|---|
| Share quantity | 1000000000000000001 | 1.000000000000000001 shares |
| Conversion return | 1250000 | 1.25 underlying assets |
| Incorrect asset display using eighteen decimals | 1250000 | 0.00000000000125 — wrong scale |
The raw return did not change between the last two rows. The error came entirely from choosing the wrong divisor. Conversely, treating the full raw share integer as a human-readable share quantity would wildly overstate the balance.
Now suppose a separate, matching preview record contains 1248750 raw assets. Its display is 1.24875 assets. Conversion minus preview is 1,250 raw asset units, or 0.00125 assets. That subtraction is a useful reconciliation item. It does not prove a fee schedule: the records’ method, inputs and observation context still need checking.
If an entered maximum is 1000000000000000000 raw shares, its display is one share. It belongs in the share column. Adding it to 1.25 assets would combine unlike quantities. None of these entries proves that a destination has received anything.
5. Exact rounding: inspect the remainder
The worksheet’s second mode is a deliberately simple rational fixture. It lets you test integer rounding independently of any live contract. Define a raw-asset multiplier N and a positive raw-share divisor D, then calculate:
- Product = raw shares × N.
- Floor = integer quotient of product ÷ D.
- Remainder = product modulo D.
- Ceiling = floor, plus one if the remainder is nonzero.
Use the earlier raw share quantity with N = 1,250,000 and D = 1,000,000,000,000,000,000. The floor is 1,250,000 raw assets. The remainder is 1,250,000 divided by D of one raw asset unit. Because that fraction is nonzero, the mathematical ceiling is 1,250,001 raw assets.
With six asset decimals, those outputs display as 1.25 and 1.250001. The gap is exactly one raw asset unit, not one whole token. If you change the share input to exactly 1,000,000,000,000,000,000, division is exact and the ceiling equals the floor.
The ceiling is a mathematical comparison, not a claim about what a redemption should return. Its purpose is to expose the fraction that a floor discards. An apparently tiny displayed difference can matter when testing whether software preserved one raw unit.
For a second invented fixture using the sDAI implementation’s scale, set both decimal counts to eighteen, N to 1250000000000000000000000000 and D to 1000000000000000000000000000. For 1000000000000000001 raw shares, the floor is 1250000000000000001 raw assets, displayed as 1.250000000000000001. The ceiling is one raw unit higher. The assumed 1.25 relationship is illustrative; it was not read from sDAI.
6. Why a generic assets-divided-by-shares formula can mislead
The OpenZeppelin ERC-4626 guide describes implementation choices involving virtual assets, virtual shares and additional share precision. It also discusses rounding and fee-aware previews. Those choices make implementation details relevant to a conversion reconstruction.
Therefore, “shares × total assets ÷ total supply” should not be silently substituted for an observed conversion result. A worksheet using that expression needs an independently established reason why it reproduces the particular contract’s formula at the recorded state. A convenient ratio is not evidence of equivalence.
The rational mode here makes the assumption visible: you supply both N and D, and the output is labeled a fixture. It does not fetch totals, infer virtual offsets or emulate a vault. That boundary is useful when reviewing an integration: first test the mathematics you intend, then establish whether the contract actually uses it.
7. Use the DN Vault Share and Asset Unit Worksheet
Recorded-output mode formats the raw values you provide. Optional blanks remain unknown. A conversion-minus-preview difference appears only after you declare matching context and supply both outputs. That declaration is part of your record, not independent verification by this page.
Fixture mode instead calculates an exact floor, ceiling and remainder. Its numerator and denominator are expressed in raw-unit terms. Do not enter a human token price into those fields without deriving the corresponding raw-unit relationship.
DN Vault Share and Asset Unit Worksheet
Hypothetical example, ready to edit. Use values and evidence from one consistent context. Blank optional records remain unknown.
Synthetic defaults use 18 share decimals and 6 asset decimals; they are not sDAI data. Raw amounts stay exact integer strings. Decimals are reader inputs, limited here to 0–36; the worksheet does not verify native precision. Recorded values require their original chain, addresses, block, method and arguments. Fixture rate units are raw assets per raw share, not a human token price. Preview and maximum remain separate. No live contract, wallet, account, transaction, asset price, withdrawal availability or receipt is checked.
The arithmetic preserves integer strings, including values beyond ordinary floating-point integer precision. The worksheet accepts unsigned decimal raw values up to uint256 and decimal counts from zero to thirty-six. The precision range is a local worksheet limit. It uses wide intermediate arithmetic and is not an EVM execution or overflow simulator.
8. Make the observation reproducible
For an actual exposure record, retain the chain, vault address, underlying asset address, token precisions, raw input, method, raw output and observation context. Include the owner for owner-specific methods and the caller where relevant. Keep evidence of how each field was obtained.
The Ethereum JSON-RPC reference describes eth_call and its block parameter. Pinning related reads to a recorded block can make comparisons reproducible. A label such as “latest” by itself does not preserve which state separate requests actually observed. Save the block identity and the read responses with the worksheet.
This page does not make those calls. Its download captures a user-entered scenario; it cannot authenticate the source of the numbers. An analyst can attach independently obtained read evidence to that record. A blank or failed observation should remain unresolved, rather than being replaced with the last plausible value.
When reporting, show share quantity and underlying exposure separately. If you also calculate a currency valuation, add a distinct price source, timestamp and valuation convention. A later ledger close has further requirements; see wallet records to a closed ledger. For the separate question of where a quoted yield is lost to costs, use the yield leakage framework.
9. Compare two snapshots without inventing a return
A normalized exposure record also makes changes easier to investigate. Imagine an earlier record showing ten shares and 12.5 underlying assets. A later record shows twelve shares and 15.12 underlying assets. The asset-exposure increase is 2.62 units, but the share quantity changed too. Calling the full increase “yield” would skip the movement in the position itself.
Start by asking whether the records concern the same chain, vault and underlying asset. Then reconcile the share change using the relevant movement records. Only after those checks should you investigate how the conversion relationship changed. A spreadsheet can accurately subtract two amounts while its explanation of that difference remains unsupported.
Keep both snapshots intact. Do not overwrite the earlier raw return with a newer conversion and leave the old date attached. If you intentionally restate an old share quantity using a newer conversion context, label the result as a new scenario. It answers a different question from what the earlier observation recorded.
These examples describe recordkeeping logic. They do not allocate an actual vault’s performance, establish a realized gain or replace the cash-flow and valuation work needed for a financial return calculation.
Frequently asked questions
Do eighteen share decimals and eighteen asset decimals imply a one-to-one exchange?
No. They establish display precision. The conversion relationship is another input. The hypothetical eighteen-decimal fixture above demonstrates equal precision with more than one asset unit per share.
Can I use one returned conversion value as a universal price?
Treat it as the output for its recorded input and context. Scaling a rounded sample to another quantity can lose information. Preserve the actual raw input associated with each return, and validate any interpolation model separately.
Does a zero formatted amount mean the position is empty?
Inspect the raw integer and the display precision first. A presentation that hides small fractions can show zero even when a raw amount is nonzero. This worksheet retains every supported decimal place and does not round the display to a convenient number of digits.
Is conversion minus preview always a withdrawal fee?
No. The worksheet calls it a difference. A mismatch in inputs or observation context is enough to undermine the comparison. Even a matching record needs implementation and fee evidence before the difference is assigned an economic label.
Does the mathematical ceiling tell me what to request from the vault?
No. The fixture demonstrates integer rounding. Its ceiling is not an executable quote or an instruction to change a transaction amount. The actual implementation and method govern a contract interaction.
Methodology and limitations
We reviewed the official ERC-20 and ERC-4626 specifications, the sDAI deployment record and pinned source, the verified sDAI-to-DaiJoin-to-DAI deployment chain, OpenZeppelin’s implementation guidance and Ethereum’s call documentation on 27 November 2026. Local worksheet checks covered unequal decimal counts, exact and fractional division, unknown values, mismatched records, signed differences, large integers and uint256 boundaries.
The documented deployment is a source-inspection reference. This research did not measure a current rate, audit contract security, test a funded exit or verify a reader’s balances. Hypothetical outputs describe arithmetic under entered assumptions. They do not establish a market valuation, legal claim, current liquidity or delivered proceeds.
Disclosure
No affiliate links are included. This article is an educational explanation of units and evidence, not a recommendation to deposit into, redeem from or trade a particular vault.
Download the source register and example
Keep the reviewed source register (JSON) and the hypothetical worked example (JSON). The worksheet buttons also download your entered scenario and its source register.