Skip to content
Merged
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
22 changes: 11 additions & 11 deletions src/pages/protocol/tips/tip-1010.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ The parameters defined in this TIP represent the initial mainnet configuration a

## Base Fee

**Value**: `2 × 10^10` wei (20 gwei)
**Value**: `2 × 10^10`

**Rationale**:
- A standard TIP-20 transfer costs approximately 50,000 gas
- At 20 gwei base fee: `50,000 × 20 × 10^9 = 10^15 wei = 0.001 USD` (assuming 1 ETH = $1000 for unit conversion reference)
- This targets approximately **0.1 cent per TIP-20 transfer**
- Fee calculation: `gas_used × base_fee / 10^12` (the 10^12 denominator is an adjustment Tempo uses when setting gas fees; see [fee units](/protocol/fees/spec-fee#fee-units))
- At this base fee: `50,000 × 2 × 10^10 / 10^12 = 1000` microdollars, or `1000 / 10^6 = $0.001` (0.1 cent per transfer)

**Note**: The base fee may fluctuate based on network demand through the existing EIP-1559-style mechanism. This value represents the target equilibrium base fee.
**Note**: This is a fixed base fee; Tempo does not use EIP-1559 to adjust the base fee. However, if blocks are full, transactions may need to include a priority fee to be included, which could result in transfers costing more than $0.001.

## Payment Lane Gas Limit

Expand Down Expand Up @@ -93,19 +93,19 @@ The parameters defined in this TIP represent the initial mainnet configuration a

| Parameter | Value | Purpose |
|-----------|-------|---------|
| Base fee | `2 × 10^10` wei (20 gwei) | Target 0.1 cent per TIP-20 transfer |
| Base fee | `2 × 10^10` | Target 0.1 cent per TIP-20 transfer |
| Total block gas limit | 500,000,000 gas/block | Shared capacity; supports ~20,000 TPS for payments |
| General gas limit | 30,000,000 gas/block | General contract interactions |
| Transaction gas cap | 30,000,000 gas | Allow max-size contract deployment |

## Economic Analysis

### Fee Revenue Projections
### Cost of Attack

At full payment lane utilization:
- 10,000 transfers per block × 50,000 gas × 20 gwei = 10^16 wei per block
- At 2 blocks/second: 2 × 10^16 wei/second = ~$0.02/second (at reference pricing)
- Daily: ~$1,728 in base fees from payment lane alone
To fill up the payment lane at the base fee, an attacker would need to spend:
- 10,000 transfers per block × $0.001 per transfer = $10 per block
- At 2 blocks/second: $20/second
- Daily: ~$1,728,000

### Cost Per Operation

Expand Down Expand Up @@ -145,7 +145,7 @@ These parameters are configured at the chainspec level and applied during block

1. **Base fee targeting**: Verify that at equilibrium, TIP-20 transfers cost approximately 0.1 cent
2. **Payment lane capacity**: Verify that 10,000 TIP-20 transfers can be included in a single block
3. **General gas limit**: Verify that general transactions are correctly bounded by the 25M gas limit
3. **General gas limit**: Verify that general transactions are correctly bounded by the 30M gas limit
4. **Transaction gas cap**: Verify that transactions exceeding 30M gas are rejected
5. **Contract deployment**: Verify that a 24KB contract can be deployed within the transaction gas cap
6. **Lane separation**: Verify that payment lane and general transactions are independently tracked