Signature
IB20Asset.sol
Description
ConvertsrawAmount to its UI (scaled) representation using the effective multiplier. The result is rawAmount * multiplier / 1e18, rounded down. This is part of the optional ERC-8056 Conversion extension (0x57854fc3).
Parameters
Returns
Behavior
- Uses the effective multiplier at the time of the call. If a multiplier update has been scheduled via
updateUIMultiplierandblock.timestamphas reachedeffectiveAt, the new multiplier is applied; otherwise the current multiplier is used. - Division is integer-floored, so rounding loss is at most 1 wei of the scaled amount.
- The raw balance stored on-chain is never modified by this call.