Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: Wrapping Tokens
---

In MiniEVM Rollup, every bridged token is wrapped to 18 decimals, regardless of token or bridge type. This enforces a single decimal format and avoids issues caused by decimal differences. Wrapping is handled by the [Wrapper precompile](https://github.com/initia-labs/minievm/blob/main/x/evm/contracts/erc20_wrapper/ERC20Wrapper.sol) in MiniEVM. Initia bridge handles tokens with 6 decimals, so wrapped tokens with 18 decimals are unwrapped to 6 decimals before they are bridged to L1.

When you bridge 6 decimals token from Initia L1 to an EVM rollup, it is converted into an 18 decimals ERC‑20 token.

<Frame>
![Wrapping Tokens](/images/evm/wrapping-erc20-tokens.png)
</Frame>

Unwrapping tokens is the reverse process, where you convert the 18 decimals ERC-20 token back to the original 6 decimals token on Initia L1.

<Frame>
![Unwrapping Tokens](/images/evm/unwrapping-erc20-tokens.png)
</Frame>
1 change: 1 addition & 0 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@
"developers/developer-guides/vm-specific-tutorials/evm/creating-erc20s/creating-custom-erc20s"
]
},
"developers/developer-guides/vm-specific-tutorials/evm/wrapping-tokens",
"developers/developer-guides/vm-specific-tutorials/evm/update-fee-token",
"developers/developer-guides/vm-specific-tutorials/evm/connect-oracles",
"developers/developer-guides/vm-specific-tutorials/evm/ibc-hooks"
Expand Down
Binary file added images/evm/unwrapping-erc20-tokens.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/evm/wrapping-erc20-tokens.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.