Single token representation: An ERC20 interface for any token
0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE
Precompile Type: Dynamic (unique address per wrapped token)
Related Module: x/bank (via ERC20 module integration)
Method | Gas Cost |
---|---|
name() | ~3,000 gas |
symbol() | ~3,000 gas |
decimals() | ~2,000 gas |
totalSupply() | ~2,500 gas |
balanceOf(address) | ~2,900 gas |
allowance(address,address) | ~3,000 gas |
transfer(address,uint256) | ~35,000 gas |
transferFrom(address,address,uint256) | ~40,000 gas |
approve(address,uint256) | ~30,000 gas |
deposit() | ~23,000 gas (no-op) |
withdraw(uint256) | ~9,000 gas (no-op) |
balanceOf
transfer
totalSupply
approve
/ allowance
/ transferFrom
name
/ symbol
/ decimals
deposit
withdraw