Economic Units
Tempo uses two primary units for fee accounting:Attodollars (aUSD)
Attodollars are the base unit for gas pricing:- Precision: 10⁻¹⁸ USD (18 decimal places)
- Usage: Gas price denomination (
baseFeein attodollars per gas) - Symbol: aUSD
Microdollars (μUSD)
Microdollars are the standard unit for TIP-20 token amounts:- Precision: 10⁻⁶ USD (6 decimal places)
- Usage: TIP-20 token balances and transfers
- Symbol: μUSD
- Equivalent: 1 TIP-20 token unit = 1 microdollar = 0.000001 USD
Conversion
To convert between gas cost and TIP-20 token amounts:- Gas consumed: 50,000 gas
- Base fee: 2,000 aUSD/gas
- Fee in attodollars: 50,000 × 2,000 = 100,000,000 aUSD = 10⁸ aUSD
- Fee in microdollars: 10⁸ / 10¹² = 100 μUSD = 0.0001 USD = 0.01 cents
Base Fee Mechanism
Tempo uses an EIP-1559-style dynamic base fee that adjusts based on block utilization. Unlike Ethereum, the base fee is denominated in attodollars rather than a native token.Target Utilization
The protocol targets 50% block utilization:- Block gas limit: 30,000,000 gas
- Target gas per block: 15,000,000 gas
Adjustment Formula
The base fee adjusts each block using:- Full blocks (100% usage): Base fee increases by ~6.25% per block
- Target blocks (50% usage): Base fee remains constant
- Empty blocks (0% usage): Base fee decreases by 6.25% per block
Base Fee Floor
The base fee has a minimum floor to prevent spam attacks:The base fee floor provides a critical security property: creating 1 TB of state costs at least $25 million (at floor prices), making large-scale spam attacks economically infeasible.
Transaction Cost Examples
Assuming the target base fee of 2,000 aUSD/gas:TIP-20 Transfer (Existing Address)
- Base transaction cost: 21,000 gas
- TIP-20 operation: 24,000 gas
- Storage update (existing slot): 5,000 gas
TIP-20 Transfer (New Address)
- Base operations: 50,000 gas
- New storage slot (balance): 250,000 gas
Transferring to a new address does not charge the account creation fee (250,000 gas). That fee only applies when the recipient first uses their account (sends a transaction). See State Creation Costs below.
First Transaction from New Account
- Transfer operation: 50,000 gas
- Account creation (nonce write): 250,000 gas
Contract Deployment
- Account creation: 250,000 gas
- Contract code: 1,000 bytes × 1,000 gas/byte = 1,000,000 gas
- Contract metadata (keccak + codesize): 500,000 gas
State Creation Costs
Tempo significantly increases the cost of state-creating operations to protect against adversarial state growth. These costs are defined in TIP-1000.New Storage Slot
Operation: SSTORE from zero to non-zero valueAccount Creation
Operation: First transaction from an address (nonce 0→1)Contract Code Storage
Per-byte cost:Attack Cost Analysis
At the target base fee (2,000 aUSD/gas):| State Size | Cost to Create |
|---|---|
| 1 GB | $50,000 |
| 10 GB | $500,000 |
| 100 GB | $5,000,000 |
| 1 TB | $50,000,000 |
| 10 TB | $500,000,000 |
Gas Limit
Tempo increases the per-transaction gas limit to accommodate large contract deployments:Priority Fees
Tempo does not currently support priority fees (tips to validators). All fees are calculated using the base fee only:Economic Stability
The attodollar denomination provides several advantages:Predictable Costs
Developers can reason about transaction costs in dollar terms without tracking volatile token prices:Stable Fee Markets
Because stablecoins maintain a fixed dollar value, base fee adjustments directly reflect network congestion rather than token price volatility.Cross-Token Compatibility
All USD-denominated TIP-20 tokens share the same economic model. A transaction costing 100 μUSD costs the same whether paid in pathUSD, USDC, USDT, or any other USD stablecoin (before AMM conversion fees).Reference: Gas Costs
Base Operations
| Operation | Gas Cost |
|---|---|
| Base transaction | 21,000 |
| TIP-20 transfer operation | ~24,000 |
| TIP-20 approval | ~46,000 |
| Contract call (simple) | ~25,000 |
State Operations
| Operation | Gas Cost |
|---|---|
| SSTORE (existing slot, non-zero → non-zero) | 5,000 |
| SSTORE (existing slot, non-zero → zero) | -15,000 (refund) |
| SSTORE (new slot, zero → non-zero) | 250,000 |
| Account creation (first nonce write) | 250,000 |
| Contract code (per byte) | 1,000 |
| Contract creation overhead | 500,000 |
TIP-20 Operations
| Operation | Gas Cost (approx) |
|---|---|
| transfer (existing address) | 50,000 |
| transfer (new address) | 300,000 |
| transferFrom (existing) | 55,000 |
| approve | 46,000 |
| mint (new balance) | 275,000 |
| burn | 25,000 |
Next Steps
Fee AMM
Learn how automatic stablecoin conversion works
Stablecoin Fees
Guide to paying gas in USD stablecoins
TIP-1000 Specification
Full specification of state creation cost increases