Skip to content

Instantly share code, notes, and snippets.

@Signor1
Last active May 7, 2025 13:02
Show Gist options
  • Select an option

  • Save Signor1/99a93a07bb65fede0b6519514303751c to your computer and use it in GitHub Desktop.

Select an option

Save Signor1/99a93a07bb65fede0b6519514303751c to your computer and use it in GitHub Desktop.
Proposed Transaction Fee Formula for Strimz

(Example: If N = 10, Fee = $0.30 + ($0.15 × 3.16) ≈ $0.77)


Real-World EVM Example

Assume:

  • Base Fee = $0.30 (covers gas for 1 contract call).
  • Variable Fee = $0.15 (your profit margin).
Number of Addresses (( N )) Fee Calculation Total Fee
1 $0.30 + ($0.15 × √1) = $0.45 $0.45
5 $0.30 + ($0.15 × √5) ≈ $0.64 $0.64
20 $0.30 + ($0.15 × √20) ≈ $0.97 $0.97
100 $0.30 + ($0.15 × √100) = $1.80 $1.80

Why This Works

  1. No Free Tier: Even small payrolls (e.g., 1 address) generate revenue.
  2. Sub-Linear Growth: Fees scale with ( \sqrt{N} ), so doubling ( N ) increases fees by ~40% (not 100%).
    • Example: 4 addresses → $0.30 + ($0.15 × 2) = $0.60
      16 addresses → $0.30 + ($0.15 × 4) = $0.90 (4x addresses, 1.5x fees).
  3. Profit Stability:
    • Base Fee covers gas volatility.
    • Variable Fee ensures margins grow with usage.

Adjust Base Fee and Variable Fee based on your target EVM chain’s gas costs (e.g., higher fees for Ethereum, lower for Polygon).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment