> ## Documentation Index
> Fetch the complete documentation index at: https://base-a060aa97-docs-sync-code-change-04d645a.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# IB20Asset.toScaledBalance

> Generated B20 reference for toScaledBalance(uint256).

<Warning>
  **Deprecated.** `toScaledBalance` is retained in `IB20Asset` for backward compatibility but is superseded by the ERC-8056 Conversion extension function `toUIAmount(uint256)`. Prefer `toUIAmount` in new integrations.
</Warning>

## Signature

```solidity theme={null}
function toScaledBalance(uint256 rawBalance) external view returns (uint256);
```

| Field               | Value                      |
| ------------------- | -------------------------- |
| Selector            | `0x04f04c99`               |
| Canonical signature | `toScaledBalance(uint256)` |

## Description

**DEPRECATED.** Converts a raw balance to its scaled view: `rawBalance * multiplier / WAD_PRECISION`. Retained (dialable) for backward compatibility as an alias of `toUIAmount`. Prefer the ERC-8056 Conversion extension `toUIAmount(uint256)` in new code.

**Parameters**

| Name         | Type      | Description                |
| ------------ | --------- | -------------------------- |
| `rawBalance` | `uint256` | Raw token amount to scale. |

**Returns**

| Type      | Description                               |
| --------- | ----------------------------------------- |
| `uint256` | Scaled balance at the current multiplier. |

## Access control

Read-only; no role required.

## Policy interaction

No direct policy interaction.

## Example

```solidity Title Deprecated usage — prefer toUIAmount theme={null}
// Deprecated — retained for backward compatibility only.
uint256 scaled = IB20Asset(target).toScaledBalance(rawBalance);

// Preferred ERC-8056 canonical form:
uint256 scaled = IB20Asset(target).toUIAmount(rawBalance);
```
