Skip to main content
The source file that documented this function (docs/B20/Asset.md) has been removed as part of a documentation restructure. The content below reflects the last verified state of this function’s behavior.

Signature

IB20Asset.sol

Description

Converts uiAmount to its raw token representation at the effective multiplier. The result is integer-floored, so a round-trip through toUIAmountfromUIAmount can lose up to one ULP of the scaled amount.

Parameters

Returns

Behavior

  • Applies the currently effective multiplier (see uiMultiplier()).
  • Division rounds down; the raw result may be one ULP less than the exact quotient.
  • Part of the ERC-8056 optional Conversion extension (0x57854fc3).