Function: toUIAmount()
toUIAmount(
amount:bigint,uiMultiplier:bigint):bigint
Defined in: utils.ts:438
Converts a raw token amount to its ERC-8056 UI amount (e.g. shares), rounding down. Both amounts are in the token's base units.
Parameters
| Parameter | Type | Description |
|---|---|---|
amount | bigint | Raw amount, as the token transfers it. |
uiMultiplier | bigint | The token's UI multiplier (TokenUIMultiplier.uiMultiplier). |
Returns
bigint
The UI amount: amount * uiMultiplier / 1e18.