Signature
IB20Asset.sol
Description
Converts a scaled (UI) balance back to its raw representation using the current multiplier:scaledBalance * WAD_PRECISION / multiplier.
Integer division rounds toward zero. Conversions are not exactly reversible when multiplier != WAD_PRECISION: toRawBalance(toScaledBalance(x)) may return a value slightly less than x.
The canonical replacement is fromUIAmount(uiAmount), which applies the same division. Both round down, so the round-trip from raw → UI → raw can lose up to one ULP of the scaled amount only.
Parameters
Returns
Access Control
Read-only. No role required.Policy Interaction
No direct policy interaction.Example
Usage Example