Skip to main content

Signature

IB20Asset.sol

Description

Equivalent to toUIAmount(balanceOf(account)). Returns the caller-visible share count after applying the current multiplier: balanceOf(account) * uiMultiplier() / WAD_PRECISION. The raw ERC-20 balance is unchanged. Only the displayed value scales with the multiplier. balanceOfUI(account) from the ERC-8056 Balances extension returns the same value; integrators should prefer the ERC-8056 name.
  • While a pending multiplier update exists (effectiveAt() > block.timestamp), this function still uses the current multiplier, not the scheduled one.
  • After block.timestamp >= effectiveAt(), the new multiplier takes effect automatically on read: no transaction or event fires at maturation.
  • Integer division rounds down. Rounding loss is confined to the scaled view and is at most one unit of the scaled amount when uiMultiplier() != WAD_PRECISION.
  • This function applies only to B20 Asset. B20 Stablecoin has no multiplier.

Parameters

Returns

Access Control

Read-only. No role required.

Policy Interaction

No direct policy interaction.

Example

Usage Example