ReferenceGas Estimates

Gas Estimates

Estimated gas costs for RevvFi operations on Base, Arbitrum, and Ethereum mainnet.

Overview

Gas costs vary significantly by network:

NetworkGas Price (typical)ETH PriceEst. Cost for 100k gas
Base0.1–1 Gwei$3,500$0.35–3.50
Arbitrum0.1–0.5 Gwei$3,500$0.35–1.75
Ethereum20–100 Gwei$3,500$7.00–35.00

Creator Operations

createLaunch

Base Gas: ~500,000–600,000 gas

ComponentGasNotes
Factory validation5,000Fee check, registry update
Token deployment150,000ERC20 constructor, minting
Bootstrapper deployment100,000Contract creation + initialization
Vaults deployment (4×)200,000CreatorVesting, Treasury, Strategic, Rewards
Approvals & transfers40,000Transfer allocations to vaults
Registry updates5,000Metadata storage

Costs at Different Networks:

NetworkGas PriceTotal CostNotes
Base1 Gwei$2.00Recommended primary network
Arbitrum0.5 Gwei$1.00Low cost option
Ethereum50 Gwei$25.00High-security option

Optimization Tips:

  • Batch-create launches if deploying multiple tokens
  • Deploy during low-gas hours on Ethereum
  • Consider Base or Arbitrum for cost efficiency

LP Operations

depositETH

Base Gas: ~80,000 gas (single deposit)

ComponentGasNotes
Precondition checks5,000State validation, time checks
Share minting20,000Storage write
Event emission10,000Log data
Remaining (misc)45,000EVM operations

Costs at Different Networks:

NetworkGas PriceCost per 10 ETHCost per 100 ETHCost per 1,000 ETH
Base1 Gwei$0.80$0.80$0.80
Arbitrum0.5 Gwei$0.40$0.40$0.40
Ethereum50 Gwei$4.00$4.00$4.00

Cost per ETH Deposited:

  • Small deposits (1-10 ETH): 0.08–0.4% overhead
  • Large deposits (100+ ETH): 0.004–0.04% overhead

Multiple Deposits: Each additional deposit by same LP costs ~80k gas (storage already warm)


launch (Permissionless)

Base Gas: ~350,000–450,000 gas

ComponentGasNotes
Launch validation10,000Check target, time, state
Uniswap approval20,000Token + WETH approvals
Uniswap addLiquidity250,000Create pair, mint LP tokens
Vault transfers (4×)40,000Transfer allocations
Registry updates10,000Launch marked complete
Incentive payment5,0000.01 ETH to caller

Costs at Different Networks:

NetworkGas PriceCost
Base1 Gwei$1.40-1.80
Arbitrum0.5 Gwei$0.70-0.90
Ethereum50 Gwei$17.50-22.50

Caller Incentive Offset: Caller receives 0.01 ETH (~$35 at current prices)

  • Net cost on Base: Profitable
  • Net cost on Arbitrum: Profitable
  • Net cost on Ethereum: Minor cost even with incentive

refundLP

Base Gas: ~60,000-80,000 gas (first LP)

First LP call:

ComponentGasNotes
Failure check10,000Verify target not met
Set failed flag5,000Storage write
Share burn10,000State update
ETH transfer20,000External call + gas stipend
Remaining10,000Events, misc

Subsequent LP calls: Same gas, but ~5k cheaper (storage already set)

Costs at Different Networks:

NetworkGas PriceFirst CallLater Calls
Base1 Gwei$0.48-0.64$0.42-0.58
Arbitrum0.5 Gwei$0.24-0.32$0.21-0.29
Ethereum50 Gwei$3.00-4.00$2.50-3.50

withdrawAsAssets

Base Gas: ~200,000-250,000 gas

ComponentGasNotes
Precondition checks10,000Time, state, shares
Share ratio calculation5,000Arithmetic
Uniswap removeLiquidity150,000Remove from pair
Asset distribution20,000ETH + token transfers
Share burning10,000Storage update
Remaining10,000Events, misc

Costs at Different Networks:

NetworkGas PriceCost
Base1 Gwei$1.40-1.80
Arbitrum0.5 Gwei$0.70-0.90
Ethereum50 Gwei$10.00-12.50

withdrawAsETH

Base Gas: ~250,000-300,000 gas

Additional vs withdrawAsAssets:

  • Uniswap token→ETH swap: ~50,000 additional gas
  • Otherwise identical flow
ComponentGasNotes
Precondition checks10,000Time, state, shares
Uniswap removeLiquidity150,000Remove from pair
Uniswap token swap50,000Route through Uniswap
ETH distribution20,000Single transfer
Share burning10,000Storage update
Remaining10,000Events, misc

Costs at Different Networks:

NetworkGas PriceCost
Base1 Gwei$1.75-2.25
Arbitrum0.5 Gwei$0.87-1.12
Ethereum50 Gwei$12.50-15.00

Governance Operations

propose

Base Gas: ~150,000 gas

ComponentGasNotes
Voting power check5,000Share balance lookup
Proposal creation50,000Storage write
Timelock calculation5,000Math
Data storage80,000Encode + store proposal data
Event emission10,000Log

Costs at Different Networks:

NetworkGas PriceCost
Base1 Gwei$0.60
Arbitrum0.5 Gwei$0.30
Ethereum50 Gwei$7.50

castVote

Base Gas: ~50,000 gas per vote

ComponentGasNotes
Voter validation5,000Share check, duplicate vote prevention
Vote recording20,000Storage update
Voting power aggregation10,000Update proposal totals
Event emission10,000Log vote
Remaining5,000Misc

Costs at Different Networks:

NetworkGas PriceCost
Base1 Gwei$0.20
Arbitrum0.5 Gwei$0.10
Ethereum50 Gwei$2.50

Note: Multiple votes per proposal each cost ~50k gas independently


executeProposal

Base Gas: ~120,000-180,000 gas (varies by proposal type)

ComponentGasNotes
Approval validation10,000Threshold check
Timelock verification5,000Check delays
Proposal execution80,000-140,000Varies by target
State update5,000Mark executed
Event emission5,000Log

By Proposal Type:

TypeGasNotes
Treasury Release140,000Transfer tokens to recipient
Strategic Release140,000Similar to treasury
Lock Reduction80,000Update single variable
Emergency Pause60,000Simple flag update

Costs at Different Networks:

NetworkGas PriceCost Range
Base1 Gwei$0.48-0.72
Arbitrum0.5 Gwei$0.24-0.36
Ethereum50 Gwei$6.00-9.00

Total Cost Examples

Scenario: 10 LPs in 100 ETH Launch (Base Network, 1 Gwei gas)

OperationParticipantsGasCostNotes
Create launchCreator550k$1.83Creator pays
Deposit ETH10 LPs × 10 ETH80k each$8.00LPs pay
LaunchAnyone400k$1.33Caller recoups via incentive
Withdraw10 LPs225k each$22.50LPs pay (~0.9% of withdraw value)
1 Governance vote5 LPs50k each$2.50LPs pay
Total$36.16Per $3.5k capital (~1% overhead)

Scenario: 100 LPs in 1,000 ETH Launch (Arbitrum, 0.5 Gwei gas)

OperationParticipantsGasCostNotes
Create launchCreator550k$0.28Creator pays
Deposit ETH100 LPs × 10 ETH80k each$4.00LPs pay
LaunchAnyone400k$0.20Caller breaks even
Withdraw100 LPs225k each$11.25LPs pay (~0.045% of withdraw value)
Total$15.73Per $35k capital (~0.045% overhead)

Gas Optimization Tips

For Creators

  1. Deploy on Base or Arbitrum first (~50-80% cheaper than Ethereum)
  2. Deploy during lower network congestion (reduces base gas price)
  3. Consider batching launches (if deploying multiple tokens)

For LPs

  1. Use ETH with lower gas price (trade off speed vs cost)
  2. Batch governance votes (combine with other activities)
  3. Withdraw in batches (if possible with multiple launches)

For Platforms

  1. Bundle deposits (if aggregating LP funds)
  2. Execute launches during quiet periods
  3. Batch governance executions

Gas Limits

Per-Transaction Limits

NetworkBlock Gas LimitTypical TxRevvFi Overhead
Base30M150k~0.5%
Arbitrum100M1M+<0.1%
Ethereum30M200k~2%

All RevvFi operations fit well within limits.


Next Steps